Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Run ruff format
  • Loading branch information
robertoffmoura committed Oct 9, 2025
commit 9e6fea89019e453e81a147386a44f5243ae149b2
10 changes: 8 additions & 2 deletions plotly/matplotlylib/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,16 @@ def open_axes(self, ax, props):
self.axis_ct += 1
# set defaults in axes
xaxis = go.layout.XAxis(
anchor="y{0}".format(self.axis_ct), zeroline=False, ticks="inside", linecolor="black"
anchor="y{0}".format(self.axis_ct),
zeroline=False,
ticks="inside",
linecolor="black",
)
yaxis = go.layout.YAxis(
anchor="x{0}".format(self.axis_ct), zeroline=False, ticks="inside", linecolor="black"
anchor="x{0}".format(self.axis_ct),
zeroline=False,
ticks="inside",
linecolor="black",
)
# update defaults with things set in mpl
mpl_xaxis, mpl_yaxis = mpltools.prep_xy_axis(
Expand Down
1 change: 1 addition & 0 deletions plotly/matplotlylib/tests/test_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def test_multiple_traces_native_legend():
assert plotly_fig.data[2].mode == "lines+markers"



def test_axis_linecolor_defaults_to_black():
fig, ax = plt.subplots()
ax.plot([0, 1], [0, 1])
Expand Down