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

Commitda37239

Browse files
Run ruff format
1 parent2a42707 commitda37239

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
@@ -299,7 +299,7 @@ def draw_bar(self, coll):
299299
)# TODO ditto
300300
iflen(bar["x"])>1:
301301
self.msg+=" Heck yeah, I drew that bar chart\n"
302-
(self.plotly_fig.add_trace(bar),)
302+
self.plotly_fig.add_trace(bar)
303303
ifbar_gapisnotNone:
304304
self.plotly_fig["layout"]["bargap"]=bar_gap
305305
else:
@@ -503,7 +503,7 @@ def draw_marked_line(self, **props):
503503
marked_line["x"]=mpltools.mpl_dates_to_datestrings(
504504
marked_line["x"],formatter
505505
)
506-
(self.plotly_fig.add_trace(marked_line),)
506+
self.plotly_fig.add_trace(marked_line)
507507
self.msg+=" Heck yeah, I drew that line\n"
508508
elifprops["coordinates"]=="axes":
509509
# 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 .importplt
44

5+
56
deftest_lines_markers_legend_plot():
67
x= [0,1]
78
y= [0,1]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp