Skip to content

Commit 87885a0

Browse files
authored
Better use of property color cycle for twin-plot (#40)
1 parent 52530d9 commit 87885a0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/mplsignal/freq_plots.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,15 @@ def _plot_h(
228228
frequency_scale=frequency_scale,
229229
magnitude_scale=magnitude_scale,
230230
fs=fs,
231-
color='C0',
231+
color=ax[0]._get_lines.get_next_color(),
232232
**kwargs,
233233
)
234234

235-
phase_color = 'C1' if style == 'twin' else 'C0'
235+
phase_color = (
236+
ax[0]._get_lines.get_next_color()
237+
if style == 'twin'
238+
else ax[1]._get_lines.get_next_color()
239+
)
236240

237241
_phase_plot_z(
238242
ax[1],

0 commit comments

Comments
 (0)