Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9e6fea8

Browse files
Run ruff format
1 parent08b9e44 commit9e6fea8

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
assertplotly_fig.data[2].mode=="lines+markers"
8787

8888

89+
8990
deftest_axis_linecolor_defaults_to_black():
9091
fig,ax=plt.subplots()
9192
ax.plot([0,1], [0,1])

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp