Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix missing plot title in bode_plot() with display_margins #1121

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.

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

Conversation

murrayrm
Copy link
Member

@murrayrm murrayrm commented Feb 3, 2025

Small PR to fix a bug where setting display_margins=True in bode_plot() caused the title to disappear. The bug was caused by overwriting the ax variable...

Also added logic to allow the grid to be turned back on (it defaults to off if display_margins is True).

Unit tests included that catches the previous bug and verifies new functionality.

@coveralls
Copy link

coveralls commented Feb 3, 2025

Coverage Status

coverage: 94.752% (+0.02%) from 94.731%
when pulling 0b12203 on murrayrm:fix_bode_margins_title-02Feb2025
into 9fb84cb on python-control:main.

@murrayrm murrayrm merged commit f73e893 into python-control:main Feb 3, 2025
24 checks passed
@murrayrm murrayrm added this to the 0.10.2 milestone Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants