Skip to content

Commit 18abcb6

Browse files
Run ruff format
1 parent a3188de commit 18abcb6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

plotly/matplotlylib/renderer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def draw_bar(self, coll):
300300
) # TODO ditto
301301
if len(bar["x"]) > 1:
302302
self.msg += " Heck yeah, I drew that bar chart\n"
303-
(self.plotly_fig.add_trace(bar),)
303+
self.plotly_fig.add_trace(bar)
304304
if bar_gap is not None:
305305
self.plotly_fig["layout"]["bargap"] = bar_gap
306306
else:
@@ -498,7 +498,7 @@ def draw_marked_line(self, **props):
498498
marked_line["x"] = mpltools.mpl_dates_to_datestrings(
499499
marked_line["x"], formatter
500500
)
501-
(self.plotly_fig.add_trace(marked_line),)
501+
self.plotly_fig.add_trace(marked_line)
502502
self.msg += " Heck yeah, I drew that line\n"
503503
elif props["coordinates"] == "axes":
504504
# dealing with legend graphical elements

plotly/matplotlylib/tests/test_renderer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from . import plt
44

5+
56
def test_plot_bgcolor_defaults_to_white():
67
plt.figure()
78
plt.plot([0, 1], [0, 1])

0 commit comments

Comments
 (0)