File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -807,6 +807,8 @@ def _maybe_right_yaxis(self, ax):
807
807
808
808
if (sec_true or has_sec ) and not hasattr (ax , 'right_ax' ):
809
809
orig_ax , new_ax = ax , ax .twinx ()
810
+ new_ax ._get_lines .color_cycle = orig_ax ._get_lines .color_cycle
811
+
810
812
orig_ax .right_ax , new_ax .left_ax = new_ax , orig_ax
811
813
812
814
if len (orig_ax .get_lines ()) == 0 : # no data on left y
@@ -2146,6 +2148,8 @@ def on_right(i):
2146
2148
if on_right (0 ):
2147
2149
orig_ax = ax0
2148
2150
ax0 = ax0 .twinx ()
2151
+ ax0 ._get_lines .color_cycle = orig_ax ._get_lines .color_cycle
2152
+
2149
2153
orig_ax .get_yaxis ().set_visible (False )
2150
2154
orig_ax .right_ax = ax0
2151
2155
ax0 .left_ax = orig_ax
@@ -2163,6 +2167,8 @@ def on_right(i):
2163
2167
if on_right (i ):
2164
2168
orig_ax = ax
2165
2169
ax = ax .twinx ()
2170
+ ax ._get_lines .color_cycle = orig_ax ._get_lines .color_cycle
2171
+
2166
2172
orig_ax .get_yaxis ().set_visible (False )
2167
2173
axarr [i ] = ax
2168
2174
You can’t perform that action at this time.
0 commit comments