File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/python/plotly/plotly Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1560,7 +1560,8 @@ def _add_annotation_like(
15601560 )
15611561 )
15621562
1563- # If the new_object was created with an yref specified, the specified yref should be used otherwise assign the xref and yref from the layout_keys
1563+ # If new_obj was created with yref specified, the specified yref
1564+ # should be used, otherwise assign xref and yref from layout_keys
15641565 if new_obj .yref == None or new_obj .yref == "y" :
15651566 if len (refs ) == 1 and secondary_y :
15661567 raise ValueError (
@@ -4062,12 +4063,10 @@ def _process_multiple_axis_spanning_shapes(
40624063 # however, in the case of a single plot, xref and yref MAY not be
40634064 # specified, IF they are not specified we specify them here so the following routines can work
40644065 # (they need to append " domain" to xref or yref). If they are specified, we leave them alone.
4065- if self .layout [layout_obj ][- 1 ].xref == None :
4066+ if self .layout [layout_obj ][- 1 ].xref is None :
40664067 self .layout [layout_obj ][- 1 ].update (xref = "x" )
4067- # self.layout[layout_obj][-1].update(xref="x")
4068- if self .layout [layout_obj ][- 1 ].yref == None :
4068+ if self .layout [layout_obj ][- 1 ].yref is None :
40694069 self .layout [layout_obj ][- 1 ].update (yref = "y" )
4070- # self.layout[layout_obj][-1].update(yref='y')
40714070 new_layout_objs = tuple (
40724071 filter (
40734072 lambda x : x is not None ,
You can’t perform that action at this time.
0 commit comments