GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Nyquist plot improvements by murrayrm · Pull Request #534 · python-control/python-control

Nyquist plot improvements #534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
murrayrm merged 8 commits into python-control:master from murrayrm:improve_nyquist
Feb 12, 2021

Uh oh!

There was an error while loading. Please reload this page.

Merged

Nyquist plot improvements #534

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
8 commits
Select commit Hold shift + click to select a range
85faffa
add mirror_style keyword for nyquist
murrayrm Feb 6, 2021
1888854
update arrow styles for nyquist
murrayrm Feb 6, 2021
6de5e91
update MATLAB interface to bode, nyquist
murrayrm Feb 6, 2021
2021a75
improvements to Nyquist contour tracing
murrayrm Feb 6, 2021
b859aec
updated examples and small tweaks to docs
murrayrm Feb 6, 2021
1d9fc80
update descfcn module for compatibility
murrayrm Feb 8, 2021
078e028
small fixes based on @sawyerbfuller, @bnavigator comments
murrayrm Feb 8, 2021
e0521b9
add mplcleanup to fix nichols error
murrayrm Feb 11, 2021
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

8 changes: 7 additions & 1 deletion 8 control/config.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ def reset_defaults():
# System level defaults
defaults.update(_control_defaults)

from .freqplot import _bode_defaults, _freqplot_defaults
from .freqplot import _bode_defaults, _freqplot_defaults, _nyquist_defaults
defaults.update(_bode_defaults)
defaults.update(_freqplot_defaults)
defaults.update(_nyquist_defaults)

from .nichols import _nichols_defaults
defaults.update(_nichols_defaults)
Expand Down Expand Up @@ -138,9 +139,11 @@ def use_fbs_defaults():
The following conventions are used:
* Bode plots plot gain in powers of ten, phase in degrees,
frequency in rad/sec, no grid
* Nyquist plots use dashed lines for mirror image of Nyquist curve

"""
set_defaults('bode', dB=False, deg=True, Hz=False, grid=False)
set_defaults('nyquist', mirror_style='--')


# Decide whether to use numpy.matrix for state space operations
Expand Down Expand Up @@ -239,4 +242,7 @@ def use_legacy_defaults(version):
# time responses are only squeezed if SISO
set_defaults('control', squeeze_time_response=True)

# switched mirror_style of nyquist from '-' to '--'
set_defaults('nyqist', mirror_style='-')

return (major, minor, patch)
5 changes: 3 additions & 2 deletions 5 control/descfcn.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,9 @@ def describing_function_plot(

"""
# Start by drawing a Nyquist curve
H_real, H_imag, H_omega = nyquist_plot(H, omega, plot=True, **kwargs)
H_vals = H_real + 1j * H_imag
count, contour = nyquist_plot(
H, omega, plot=True, return_contour=True, **kwargs)
H_omega, H_vals = contour.imag, H(contour)

# Compute the describing function
df = describing_function(F, A)
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.