Skip to content

Commit 85745d7

Browse files
Run ruff format
1 parent 674d40e commit 85745d7

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
@@ -86,6 +86,7 @@ def test_multiple_traces_native_legend():
8686
assert plotly_fig.data[2].mode == "lines+markers"
8787

8888

89+
8990
def test_non_arithmetic_progression_xtickvals():
9091
xticks = [0.01, 0.53, 0.75]
9192
plt.figure()
@@ -96,6 +97,7 @@ def test_non_arithmetic_progression_xtickvals():
9697

9798
assert plotly_fig.layout.xaxis.tickvals == tuple(xticks)
9899

100+
99101
def test_non_arithmetic_progression_xticktext():
100102
xtickvals = [0.01, 0.53, 0.75]
101103
xticktext = ["Baseline", "param = 1", "param = 2"]

0 commit comments

Comments
 (0)