-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add stairstep plotting functionality #1068
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
Conversation
This feature replicates Matlab's `stairs' function to produce stairstep type plots. These plots are useful for plots in signal processing for looking at discretely sampled data. Valid function calls are stairs(y) # Make a stairstep plot of the values in y stairs(x, y) # Stairstep plot of the values in y at points in x
How does this differ from step? |
I did not know this existed! Damon McDougall On Friday, 10 August 2012 at 19:20, Eric Firing wrote:
|
|
||
__all__ = ['stairs'] | ||
|
||
def stairs(axes, *args, **kwargs): |
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.
To be consistent with the rest of the code-base, I would change "axes" to "ax"
This should probably be closed since it already exists, as @efiring pointed out. Unless anybody disagrees? It seems moot to duplicate existing functionality. |
Well, perhaps the meta question is: what made it difficult for @dmcdougall to find the existing functionality, and how could that be improved? Maybe we need a patch for that... |
We do, and Ben started on at least part of the solution, which is putting some organization and editing into the gallery. There is only one step example, and it is burried in the middle; I had to scan the gallery twice to find it, and if I hadn't been pretty sure it was there, I would likely have missed it. |
I went to the matplotlib homepage, and did a command-f for Also, Perhaps re-naming |
Yeah -- that list on the homepage was manually generated many versions ago, so it's incomplete. As part of my reorganization of the front page in #1067 I'm proposing to just get rid of it and funnel people to the pyplot documentation instead. Not sure that's the best solution either, as some people surely find that list useful. |
I use it every day. I command-f the function I want so I can look at the docs. I always have to check it to remind myself, for example, which element of the |
@mdboom: Maybe a similar table to the one that currently exists could be autogenerated and the content come from the autosummary extension. |
There is useful discussion here, but as a pull request, this really needs to be closed. |
This feature replicates Matlab's `stairs' function to produce stairstep
type plots. These plots are useful for plots in signal processing for
looking at discretely sampled data. Valid function calls are
See here for the Matlab interface.
Example output: