Skip to content

Commit 60cd4f7

Browse files
Run ruff format
1 parent c65428b commit 60cd4f7

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

plotly/matplotlylib/tests/test_renderer.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,17 @@ def test_multiple_traces_native_legend():
8686
assert plotly_fig.data[2].mode == "lines+markers"
8787

8888

89+
8990
def test_axis_mirror_with_spines_and_ticks():
9091
"""Test that mirror=True when both spines and ticks are visible on both sides."""
9192
fig, ax = plt.subplots()
9293
ax.plot([0, 1], [0, 1])
9394

9495
# Show all spines
95-
ax.spines['top'].set_visible(True)
96-
ax.spines['bottom'].set_visible(True)
97-
ax.spines['left'].set_visible(True)
98-
ax.spines['right'].set_visible(True)
96+
ax.spines["top"].set_visible(True)
97+
ax.spines["bottom"].set_visible(True)
98+
ax.spines["left"].set_visible(True)
99+
ax.spines["right"].set_visible(True)
99100

100101
# Show ticks on all sides
101102
ax.tick_params(top=True, bottom=True, left=True, right=True)
@@ -112,8 +113,8 @@ def test_axis_mirror_with_ticks_only():
112113
ax.plot([0, 1], [0, 1])
113114

114115
# Hide opposite spines
115-
ax.spines['top'].set_visible(False)
116-
ax.spines['right'].set_visible(False)
116+
ax.spines["top"].set_visible(False)
117+
ax.spines["right"].set_visible(False)
117118

118119
# Show ticks on all sides
119120
ax.tick_params(top=True, bottom=True, left=True, right=True)
@@ -145,13 +146,13 @@ def test_axis_mirror_mixed_configurations():
145146
ax.plot([0, 1], [0, 1])
146147

147148
# X-axis: spines and ticks on both sides (mirror="ticks")
148-
ax.spines['top'].set_visible(True)
149-
ax.spines['bottom'].set_visible(True)
149+
ax.spines["top"].set_visible(True)
150+
ax.spines["bottom"].set_visible(True)
150151
ax.tick_params(top=True, bottom=True)
151152

152153
# Y-axis: spine only on one side (mirror=False)
153-
ax.spines['right'].set_visible(False)
154-
ax.spines['left'].set_visible(True)
154+
ax.spines["right"].set_visible(False)
155+
ax.spines["left"].set_visible(True)
155156
ax.tick_params(left=True, right=True)
156157

157158
plotly_fig = tls.mpl_to_plotly(fig)

0 commit comments

Comments
 (0)