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(
1560
1560
)
1561
1561
)
1562
1562
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
1564
1565
if new_obj .yref == None or new_obj .yref == "y" :
1565
1566
if len (refs ) == 1 and secondary_y :
1566
1567
raise ValueError (
@@ -4062,12 +4063,10 @@ def _process_multiple_axis_spanning_shapes(
4062
4063
# however, in the case of a single plot, xref and yref MAY not be
4063
4064
# specified, IF they are not specified we specify them here so the following routines can work
4064
4065
# (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 :
4066
4067
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 :
4069
4069
self .layout [layout_obj ][- 1 ].update (yref = "y" )
4070
- # self.layout[layout_obj][-1].update(yref='y')
4071
4070
new_layout_objs = tuple (
4072
4071
filter (
4073
4072
lambda x : x is not None ,
You can’t perform that action at this time.
0 commit comments