Skip to content

fix rlocus plotting problem in Jupyter notebooks + comments, PEP8 #503

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
merged 1 commit into from
Jan 14, 2021

Conversation

murrayrm
Copy link
Member

@murrayrm murrayrm commented Jan 9, 2021

This PR resolves issue #464. I added some comments to the code along the way as I was trying to sort out what was going wrong. No easy unit tests for this one, I think, since it seems like the issue is restricted to Jupyter notebooks and has to do with the way they generate plots (I guess).

Before (need to zoom way in to see the plot)
jupyter_bug-before

After:
jupyter_bug-after

@murrayrm murrayrm linked an issue Jan 9, 2021 that may be closed by this pull request
@coveralls
Copy link

coveralls commented Jan 9, 2021

Coverage Status

Coverage increased (+11.03%) to 87.675% when pulling 4b88452 on murrayrm:fix_rlocus_jupyter into a82b520 on python-control:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+10.9%) to 87.537% when pulling 4b88452 on murrayrm:fix_rlocus_jupyter into a82b520 on python-control:master.

@bnavigator
Copy link
Contributor

LGTM.

Could you post before-after pictures here?

The coveralls increase by 11% is a lie, because the last Travis run on master failed with server errors.

Uncovered line: https://coveralls.io/builds/36205925/source?filename=control%2Frlocus.py#L247. At least call the plot function with a dtime sys once?

Maybe https://matplotlib.org/devel/testing.html#writing-an-image-comparison-test is also worth a try.

@murrayrm murrayrm merged commit 8194b1d into python-control:master Jan 14, 2021
@murrayrm murrayrm deleted the fix_rlocus_jupyter branch January 14, 2021 07:04
@murrayrm murrayrm added this to the 0.9.0 milestone Mar 20, 2021
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.

root_locus() plot figure size issue - ipynotebook
3 participants