Skip to content

Commit f07ef5a

Browse files
committed
complete documentation of default_frequency_range
1 parent 64c9adb commit f07ef5a

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

control/freqplot.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,13 +386,23 @@ def default_frequency_range(syslist, Hz=None, number_of_samples=None, feature_pe
386386
----------
387387
syslist : list of LTI
388388
List of linear input/output systems (single system is OK)
389-
389+
Hz: boolean
390+
If True, the limits (first and last value) of the frequencies
391+
are set to full decades in Hz so it fits plotting with logarithmic
392+
scale in Hz otherwise in rad/s. Omega is always returned in rad/sec.
393+
number_of_samples: int
394+
Number of samples to generate
395+
feature_periphery_decade: float
396+
Defines how many decades shall be included in the frequency range on
397+
both sides of features (poles, zeros).
398+
Example: If there is a feature, e.g. a pole, at 1Hz and feature_periphery_decade=1.
399+
then the range of frequencies shall span 0.1 .. 10 Hz.
400+
The default value is read from config.bode_feature_periphery_decade.
401+
390402
Returns
391403
-------
392404
omega : array
393405
Range of frequencies in rad/sec
394-
number_of_samples: int
395-
Number of samples to generate
396406
397407
Examples
398408
--------

0 commit comments

Comments
 (0)