Skip to content

Commit 555902b

Browse files
committed
MAINT: removing references to singular_values_plot configurations
1 parent 38dfeda commit 555902b

1 file changed

Lines changed: 7 additions & 16 deletions

File tree

control/freqplot.py

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,15 +1030,6 @@ def gangof4_plot(P, C, omega=None, **kwargs):
10301030
#
10311031

10321032

1033-
# Default values for Bode plot configuration variables
1034-
_singular_values_plot_default = {
1035-
'singular_values_plot.dB': False, # Plot singular values in dB
1036-
'singular_values_plot.deg': True, # Plot phase in degrees
1037-
'singular_values_plot.Hz': False, # Plot frequency in Hertz
1038-
'singular_values_plot.grid': True, # Turn on grid for gain and phase
1039-
}
1040-
1041-
10421033
def singular_values_plot(syslist, omega=None,
10431034
plot=True, omega_limits=None, omega_num=None,
10441035
*args, **kwargs):
@@ -1062,10 +1053,10 @@ def singular_values_plot(syslist, omega=None,
10621053
Default value (1000) set by config.defaults['freqplot.number_of_samples'].
10631054
dB : bool
10641055
If True, plot result in dB.
1065-
Default value (False) set by config.defaults['singular_values_plot.dB'].
1056+
Default value (False) set by config.defaults['freqplot.dB'].
10661057
Hz : bool
10671058
If True, plot frequency in Hz (omega must be provided in rad/sec).
1068-
Default value (False) set by config.defaults['singular_values_plot.Hz']
1059+
Default value (False) set by config.defaults['freqplot.Hz']
10691060
10701061
Returns
10711062
-------
@@ -1078,7 +1069,7 @@ def singular_values_plot(syslist, omega=None,
10781069
----------------
10791070
grid : bool
10801071
If True, plot grid lines on gain and phase plots. Default is set by
1081-
`config.defaults['singular_values_plot.grid']`.
1072+
`config.defaults['freqplot.number_of_samples']`.
10821073
10831074
Examples
10841075
--------
@@ -1098,13 +1089,13 @@ def singular_values_plot(syslist, omega=None,
10981089

10991090
# Get values for params (and pop from list to allow keyword use in plot)
11001091
dB = config._get_param(
1101-
'freqplot', 'dB', kwargs, _singular_values_plot_default, pop=True)
1092+
'freqplot', 'dB', kwargs, _freqplot_defaults, pop=True)
11021093
Hz = config._get_param(
1103-
'freqplot', 'Hz', kwargs, _singular_values_plot_default, pop=True)
1094+
'freqplot', 'Hz', kwargs, _freqplot_defaults, pop=True)
11041095
grid = config._get_param(
1105-
'freqplot', 'grid', kwargs, _singular_values_plot_default, pop=True)
1096+
'freqplot', 'grid', kwargs, _freqplot_defaults, pop=True)
11061097
plot = config._get_param(
1107-
'singular_values_plot', 'plot', plot, True)
1098+
'freqplot', 'plot', plot, True)
11081099
omega_num = config._get_param('freqplot', 'number_of_samples', omega_num)
11091100

11101101
# If argument was a singleton, turn it into a tuple

0 commit comments

Comments
 (0)