Skip to content

Commit

Permalink
Add dB-phase-degrees
Browse files Browse the repository at this point in the history
  • Loading branch information
mph- committed Jul 26, 2024
1 parent 9d3649a commit ed78f49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lcapy/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def plot_frequency(obj, f, plot_type=None, **kwargs):

V = obj.evaluate(f)

types = ['dB-phase', 'dB-radians', 'dB-phase-degrees',
types = ['dB-phase', 'dB-radians', 'dB-phase-radians', 'dB-phase-degrees',
'dB-degrees', 'mag-phase', 'magnitude-phase',
'mag-phase-degrees', 'magnitude-phase-degrees',
'real-imag', 'mag', 'magnitude', 'phase', 'radians',
Expand All @@ -427,7 +427,7 @@ def plot_frequency(obj, f, plot_type=None, **kwargs):
if plot_type is None:
plot_type = 'dB-phase'

if plot_type in ('dB_phase', 'dB-phase', 'dB-radians'):
if plot_type in ('dB_phase', 'dB-phase', 'dB-radians', 'dB-phase-radians'):
plot1_type = 'dB'
plot2_type = 'radians'
elif plot_type in ('dB_phase_degrees', 'dB-phase-degrees',
Expand Down Expand Up @@ -579,9 +579,9 @@ def plot_bode(obj, f, phase='radians', **kwargs):

if 'plot_type' not in kwargs:
if phase == 'degrees':
kwargs['plot_type'] = 'dB-phase-degrees'
kwargs['plot_type'] = 'dB-degrees'
elif phase == 'radians':
kwargs['plot_type'] = 'dB-phase-radians'
kwargs['plot_type'] = 'dB-radians'
elif phase is None:
kwargs['plot_type'] = 'dB'
else:
Expand Down

0 comments on commit ed78f49

Please sign in to comment.