-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Changes to the pyplot api documentation #11620
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,275 @@ | ||
Pyplot function overview | ||
------------------------ | ||
****** | ||
pyplot | ||
****** | ||
|
||
.. currentmodule:: matplotlib | ||
.. currentmodule:: matplotlib.pyplot | ||
|
||
.. automodule:: matplotlib.pyplot | ||
:no-members: | ||
|
||
Creating figures | ||
================ | ||
.. autosummary:: | ||
:toctree: _as_gen | ||
:template: autofunctions.rst | ||
:toctree: _as_gen | ||
:template: autosummary.rst | ||
:nosignatures: | ||
|
||
pyplot | ||
figure | ||
subplots | ||
|
||
Global functions | ||
================ | ||
|
||
.. currentmodule:: matplotlib.pyplot | ||
.. autosummary:: | ||
:toctree: _as_gen | ||
:template: autosummary.rst | ||
:nosignatures: | ||
|
||
.. autofunction:: plotting | ||
findobj | ||
get_plot_commands | ||
install_repl_displayhook | ||
ioff | ||
ion | ||
isinteractive | ||
pause | ||
rc | ||
rc_context | ||
rcdefaults | ||
show | ||
switch_backend | ||
uninstall_repl_displayhook | ||
|
||
Any artist | ||
========== | ||
|
||
Colors in Matplotlib | ||
-------------------- | ||
.. autosummary:: | ||
:toctree: _as_gen | ||
:template: autosummary.rst | ||
:nosignatures: | ||
|
||
There are many colormaps you can use to map data onto color values. | ||
Below we list several ways in which color can be utilized in Matplotlib. | ||
getp | ||
setp | ||
xkcd | ||
|
||
For a more in-depth look at colormaps, see the | ||
:doc:`/tutorials/colors/colormaps` tutorial. | ||
Working with figures | ||
==================== | ||
|
||
.. currentmodule:: matplotlib.pyplot | ||
.. autosummary:: | ||
:toctree: _as_gen | ||
:template: autosummary.rst | ||
:nosignatures: | ||
|
||
clf | ||
close | ||
connect | ||
disconnect | ||
draw | ||
fignum_exists | ||
figure | ||
gcf | ||
get_current_fig_manager | ||
get_figlabels | ||
get_fignums | ||
ginput | ||
savefig | ||
waitforbuttonpress | ||
|
||
Adding elements to figures | ||
========================== | ||
|
||
.. autosummary:: | ||
:toctree: _as_gen | ||
:template: autosummary.rst | ||
:nosignatures: | ||
|
||
figimage | ||
figlegend | ||
figtext | ||
suptitle | ||
|
||
Working with axes | ||
================= | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be worth putting a single sentence here saying what an |
||
.. autosummary:: | ||
:toctree: _as_gen | ||
:template: autosummary.rst | ||
:nosignatures: | ||
|
||
axes | ||
box | ||
cla | ||
delaxes | ||
gca | ||
grid | ||
sca | ||
subplot | ||
subplots | ||
subplot2grid | ||
subplot_tool | ||
subplots_adjust | ||
tight_layout | ||
twinx | ||
twiny | ||
|
||
Adding elements to axes | ||
======================= | ||
|
||
.. autosummary:: | ||
:toctree: _as_gen | ||
:template: autosummary.rst | ||
:nosignatures: | ||
|
||
annotate | ||
arrow | ||
legend | ||
table | ||
text | ||
title | ||
|
||
|
||
Working with axis | ||
================= | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be worth putting a single sentence here saying what an |
||
.. autosummary:: | ||
:toctree: _as_gen | ||
:template: autosummary.rst | ||
:nosignatures: | ||
|
||
autoscale | ||
axis | ||
locator_params | ||
margins | ||
minorticks_off | ||
minorticks_on | ||
rgrids | ||
thetagrids | ||
tick_params | ||
ticklabel_format | ||
xlabel | ||
ylabel | ||
xlim | ||
ylim | ||
xscale | ||
yscale | ||
xticks | ||
yticks | ||
|
||
|
||
Current image | ||
============= | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Current image doesn't mean much to me, might be worth putting a single sentence here too. |
||
.. autosummary:: | ||
:toctree: _as_gen | ||
:template: autosummary.rst | ||
:nosignatures: | ||
|
||
clabel | ||
clim | ||
colorbar | ||
colormaps | ||
gci | ||
sci | ||
set_cmap | ||
|
||
Working with images | ||
=================== | ||
|
||
.. autosummary:: | ||
:toctree: _as_gen | ||
:template: autosummary.rst | ||
:nosignatures: | ||
|
||
imread | ||
imsave | ||
|
||
Plotting functions | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be worth moving this up too, since these are probably the second most common set of functions that people use. |
||
================== | ||
|
||
.. autosummary:: | ||
:toctree: _as_gen | ||
:template: autosummary.rst | ||
:nosignatures: | ||
|
||
acorr | ||
angle_spectrum | ||
axhline | ||
axhspan | ||
axvline | ||
axvspan | ||
bar | ||
barbs | ||
barh | ||
boxplot | ||
broken_barh | ||
cohere | ||
contour | ||
contourf | ||
csd | ||
errorbar | ||
eventplot | ||
fill | ||
fill_between | ||
fill_betweenx | ||
hexbin | ||
hist | ||
hist2d | ||
hlines | ||
imshow | ||
loglog | ||
magnitude_spectrum | ||
matshow | ||
pcolor | ||
pcolormesh | ||
phase_spectrum | ||
pie | ||
plot | ||
plot_date | ||
plotfile | ||
polar | ||
psd | ||
quiver | ||
quiverkey | ||
scatter | ||
semilogx | ||
semilogy | ||
specgram | ||
spy | ||
stackplot | ||
stem | ||
step | ||
streamplot | ||
tricontour | ||
tricontourf | ||
tripcolor | ||
triplot | ||
violinplot | ||
vlines | ||
xcorr | ||
|
||
Colormaps | ||
========= | ||
|
||
.. autosummary:: | ||
:toctree: _as_gen | ||
:template: autosummary.rst | ||
:nosignatures: | ||
|
||
.. autofunction:: colormaps | ||
autumn | ||
bone | ||
cool | ||
copper | ||
flag | ||
gray | ||
hot | ||
hsv | ||
inferno | ||
jet | ||
magma | ||
nipy_spectral | ||
pink | ||
plasma | ||
prism | ||
spring | ||
summer | ||
viridis | ||
winter |
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.
What does this mean? Functions that can be used by any artist? Or functions that are applied to every artist on the plot?
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.
They are functions that can be applied to every artist. The name was just taken from the
pyplot
file.