DOC: Remove "Multiple lines using pyplot"#31705
Conversation
6025ef7 to
9704c63
Compare
|
Very early in my python learning days I was told that the pattern |
| ========================= | ||
|
|
||
| Create a figure with two subplots using `.pyplot.subplot`. | ||
| In pyplot, subplots are created incrementally through `~.pyplot.subplot`. |
There was a problem hiding this comment.
| In pyplot, subplots are created incrementally through `~.pyplot.subplot`. | |
| In pyplot, subplots can be created incrementally through `~.pyplot.subplot`. |
?
There is nothing to stop you creating them all at once with subplots or subplot_mosaic and then sca to control where you are plotting.
There was a problem hiding this comment.
Reworded to
A typical pyplot usage pattern is to create subplots incrementally through ...
I agree for formal code, e.g. in |
We should not promote the specific `plot(x, y, fmt, x2, y2, fmt)` anymore. This is a Matlabism and hard to read and reason about. Separate `plot()` calls are the better option. They don't need a dedicated pyplot example. Therefore, a redirect to the pyplot subplot example is sufficient, which as a side-topic has two plot calls in one subplot. Co-authored-by: Ruth Comer <10599679+rcomer@users.noreply.github.com>
eaa3573 to
6fc1020
Compare
…705-on-v3.11.x Backport PR #31705 on branch v3.11.x (DOC: Remove "Multiple lines using pyplot")
We should not promote the specific
plot(x, y, fmt, x2, y2, fmt)anymore. This is a Matlabism and hard to read and reason about. Separateplot()calls are the better option. They don't need a dedicated pyplot example. Therefore, a redirect to the pyplot subplot example is sufficient, which as a side-topic has two plot calls in one subplot.While at it, I improved the description of the peplos subplot example.