-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Stairsplottype #23311
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
Stairsplottype #23311
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this!
OTOH I don't think we should have both stairs and steps. This should also be accompanied by a change to the cheatsheet if the stairs is really the preferred grammar here.
| if self.textposition == "inside": | ||
| r = s / np.interp(angle_span, [60, 90, 135, 180], | ||
| [3.3, 3.5, 3.8, 4]) | ||
| [10, 3.5, 11.4, 4]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated change?
| ========== | ||
| stairs(x, y) | ||
| ========== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs won't build if formatting is incorrect: /home/circleci/project/doc/plot_types/basic/stairs.rst:24: WARNING: Title overline too short.
| ========== | |
| stairs(x, y) | |
| ========== | |
| ============ | |
| stairs(x, y) | |
| ============ |
| ax.set(xlim=(0, 8), xticks=np.arange(1, 8), | ||
| ylim=(0, 8), yticks=np.arange(1, 8)) | ||
|
|
||
| plt.show() No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the extra line for our linting.
|
I'll move to draft for now - feel free to move to ready when you have a chance to address.. |
PR Summary
Added new plot type(stairs) to the documentation as asked by #23204.
PR Checklist
Tests and Styling
pytestpasses).flake8-docstringsand runflake8 --docstring-convention=all).Documentation
doc/users/next_whats_new/(follow instructions in README.rst there).doc/api/next_api_changes/(follow instructions in README.rst there).Add stairs plot type to the documentation as asked from [Doc]: More plot types? #23204