@@ -444,7 +444,7 @@ def plot( data, **kwargs ):
444
444
lo = math .log (max (math .fabs (np .nanmin (lows )),1e-7 ),10 ) - 0.5
445
445
hi = math .log (max (math .fabs (np .nanmax (highs )),1e-7 ),10 ) + 0.5
446
446
447
- panels ['mag' ] = [None ]* len (panels ) # create 'mag' column
447
+ panels ['mag' ] = [None ]* len (panels ) # create 'mag'nitude column
448
448
449
449
panels .at [config ['main_panel' ],'mag' ] = {'lo' :lo ,'hi' :hi } # update main panel magnitude range
450
450
@@ -465,6 +465,9 @@ def plot( data, **kwargs ):
465
465
if panid == 'main' : panid = 0 # for backwards compatibility
466
466
elif panid == 'lower' : panid = 1 # for backwards compatibility
467
467
468
+ if apdict ['y_on_right' ] is not None :
469
+ panels .at [panid ,'y_on_right' ] = apdict ['y_on_right' ]
470
+
468
471
#--------------------------------------------------------------#
469
472
# Note: _auto_secondary_y() sets the 'magnitude' column in the
470
473
# `panels` dataframe, which is needed for automatically
@@ -805,6 +808,9 @@ def _valid_addplot_kwargs():
805
808
806
809
'secondary_y' : { 'Default' : 'auto' ,
807
810
'Validator' : lambda value : isinstance (value ,bool ) or value == 'auto' },
811
+
812
+ 'y_on_right' : { 'Default' : None ,
813
+ 'Validator' : lambda value : isinstance (value ,bool ) },
808
814
809
815
'ylabel' : { 'Default' : None ,
810
816
'Validator' : lambda value : isinstance (value ,str ) },
0 commit comments