Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update shared axes processing in plot_time_response#1040

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

murrayrm
Copy link
Member

This PR updates the way that tickmarks are labeled on shared axes in time response plots, in response to a comment from@slivingston in#1034. Tickmark labels are now omitted on shared axes, consistent with frequency response plots.

To allow tickmark labels to be added, two new keyword arguments are included intime_response_plot:sharex andsharey. These are passthrough arguments tomatplotlib.pyplot.subplots and allow axes sharing to be turned on and off in the same way asbode_plot => frequency and time response plots are now consistent.

Also added unit tests checking for consistency and updated the user documentation and relevant docstrings.

Without tickmark labelsWith tickmark labels
Version 0.10.0:
plot_gallery-0 10 0-2024-06-20
Previous to this PR (from#1034):
plot_gallery-0 10 0-191-g373ff11e-2024-08-08
After this PR (using default settings):
plot_gallery-0 10 0-201-gc9a07c13-2024-08-09
After this PR (usingsharex=False):
step_response-sharex_false

@coveralls
Copy link

coveralls commentedAug 13, 2024
edited
Loading

Coverage Status

coverage: 94.694% (+0.001%) from 94.693%
when pulling9c8ffec on murrayrm:tickmark_labels-08Aug2024
intoecf6a38 on python-control:main.

@slivingstonslivingston self-assigned thisAug 14, 2024
will force the legacy values (mag, phase, omega) to be returned
(with a warning). To obtain just the frequency response of a system
(or list of systems) without plotting, use the
1. Starting with python-control version 0.10, `bode_plot`returns a
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
1.Startingwithpython-controlversion0.10,`bode_plot`returnsa
1.Startingwithpython-controlversion0.10,`bode_plot`returnsa

This space is important because without it, Sphinx fails to parse the:class: expression.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

After fixing this, the PR is ready to merge.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

You may want to commit the figures in the documentation that are affected by this PR.

@murrayrmmurrayrm mentioned this pull requestAug 15, 2024
11 tasks
@murrayrmmurrayrm merged commit3e9a39e intopython-control:mainAug 15, 2024
23 checks passed
@murrayrmmurrayrm deleted the tickmark_labels-08Aug2024 branchAugust 15, 2024 06:31
@murrayrmmurrayrm added this to the0.10.1 milestoneAug 17, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@slivingstonslivingstonslivingston left review comments

Assignees

@slivingstonslivingston

Labels
None yet
Projects
None yet
Milestone
0.10.1
Development

Successfully merging this pull request may close these issues.

3 participants
@murrayrm@coveralls@slivingston

[8]ページ先頭

©2009-2025 Movatter.jp