Skip to content

Commit 128dd25

Browse files
Run ruff format
1 parent d813535 commit 128dd25

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

plotly/matplotlylib/mpltools.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,10 @@ def prep_ticks(ax, index, ax_type, props):
513513

514514
if formatter == "LogFormatterMathtext":
515515
axis_dict["exponentformat"] = "e"
516-
elif formatter == "FuncFormatter" and props["axes"][index]["tickformat"] is not None:
517-
to_remove = ["dtick" "tickmode"]
516+
elif (
517+
formatter == "FuncFormatter" and props["axes"][index]["tickformat"] is not None
518+
):
519+
to_remove = ["dticktickmode"]
518520
for key in to_remove:
519521
if key in axis_dict:
520522
axis_dict.pop(key)

plotly/matplotlylib/tests/test_renderer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from . import plt
44

5+
56
def test_non_arithmetic_progression_xtickvals():
67
xticks = [0.01, 0.53, 0.75]
78
plt.figure()
@@ -12,6 +13,7 @@ def test_non_arithmetic_progression_xtickvals():
1213

1314
assert plotly_fig.layout.xaxis.tickvals == tuple(xticks)
1415

16+
1517
def test_non_arithmetic_progression_xticktext():
1618
xtickvals = [0.01, 0.53, 0.75]
1719
xticktext = ["Baseline", "param = 1", "param = 2"]

0 commit comments

Comments
 (0)