Skip to content

Commit

Permalink
Better use of property color cycle for twin-plot (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscargus authored Sep 20, 2023
1 parent 52530d9 commit 87885a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/mplsignal/freq_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,15 @@ def _plot_h(
frequency_scale=frequency_scale,
magnitude_scale=magnitude_scale,
fs=fs,
color='C0',
color=ax[0]._get_lines.get_next_color(),
**kwargs,
)

phase_color = 'C1' if style == 'twin' else 'C0'
phase_color = (
ax[0]._get_lines.get_next_color()
if style == 'twin'
else ax[1]._get_lines.get_next_color()
)

_phase_plot_z(
ax[1],
Expand Down

0 comments on commit 87885a0

Please sign in to comment.