Skip to content

Commit 9e6fea8

Browse files
Run ruff format
1 parent 08b9e44 commit 9e6fea8

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

plotly/matplotlylib/renderer.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,16 @@ def open_axes(self, ax, props):
154154
self.axis_ct += 1
155155
# set defaults in axes
156156
xaxis = go.layout.XAxis(
157-
anchor="y{0}".format(self.axis_ct), zeroline=False, ticks="inside", linecolor="black"
157+
anchor="y{0}".format(self.axis_ct),
158+
zeroline=False,
159+
ticks="inside",
160+
linecolor="black",
158161
)
159162
yaxis = go.layout.YAxis(
160-
anchor="x{0}".format(self.axis_ct), zeroline=False, ticks="inside", linecolor="black"
163+
anchor="x{0}".format(self.axis_ct),
164+
zeroline=False,
165+
ticks="inside",
166+
linecolor="black",
161167
)
162168
# update defaults with things set in mpl
163169
mpl_xaxis, mpl_yaxis = mpltools.prep_xy_axis(

plotly/matplotlylib/tests/test_renderer.py

Lines changed: 1 addition & 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_axis_linecolor_defaults_to_black():
9091
fig, ax = plt.subplots()
9192
ax.plot([0, 1], [0, 1])

0 commit comments

Comments
 (0)