@@ -153,10 +153,16 @@ def open_axes(self, ax, props):
153
153
self .axis_ct += 1
154
154
# set defaults in axes
155
155
xaxis = go .layout .XAxis (
156
- anchor = "y{0}" .format (self .axis_ct ), zeroline = False , ticks = "inside" , linecolor = "black"
156
+ anchor = "y{0}" .format (self .axis_ct ),
157
+ zeroline = False ,
158
+ ticks = "inside" ,
159
+ linecolor = "black" ,
157
160
)
158
161
yaxis = go .layout .YAxis (
159
- anchor = "x{0}" .format (self .axis_ct ), zeroline = False , ticks = "inside" , linecolor = "black"
162
+ anchor = "x{0}" .format (self .axis_ct ),
163
+ zeroline = False ,
164
+ ticks = "inside" ,
165
+ linecolor = "black" ,
160
166
)
161
167
# update defaults with things set in mpl
162
168
mpl_xaxis , mpl_yaxis = mpltools .prep_xy_axis (
@@ -299,7 +305,7 @@ def draw_bar(self, coll):
299
305
) # TODO ditto
300
306
if len (bar ["x" ]) > 1 :
301
307
self .msg += " Heck yeah, I drew that bar chart\n "
302
- ( self .plotly_fig .add_trace (bar ), )
308
+ self .plotly_fig .add_trace (bar )
303
309
if bar_gap is not None :
304
310
self .plotly_fig ["layout" ]["bargap" ] = bar_gap
305
311
else :
@@ -497,7 +503,7 @@ def draw_marked_line(self, **props):
497
503
marked_line ["x" ] = mpltools .mpl_dates_to_datestrings (
498
504
marked_line ["x" ], formatter
499
505
)
500
- ( self .plotly_fig .add_trace (marked_line ), )
506
+ self .plotly_fig .add_trace (marked_line )
501
507
self .msg += " Heck yeah, I drew that line\n "
502
508
elif props ["coordinates" ] == "axes" :
503
509
# dealing with legend graphical elements
0 commit comments