Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8806c2e

Browse files
committed
pyplot api docs changes
1 parent 4769f7b commit 8806c2e

File tree

4 files changed

+318
-247
lines changed

4 files changed

+318
-247
lines changed

doc/api/colors_api.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
colors
33
******
44

5-
For a visual representation of the Matplotlib colormaps, see:
5+
Tutorials and examples about matplotlib colors:
66

7+
* :doc:`/tutorials/colors/colors` tutorial.
8+
* :doc:`/tutorials/colors/colormaps` tutorial.
9+
* All :ref:`tutorials-colors` tutorials.
710
* The :ref:`color_examples` examples for examples of controlling color with
811
Matplotlib.
9-
* The :ref:`tutorials-colors` tutorial for an in-depth guide on controlling
10-
color.
12+
1113

1214
:mod:`matplotlib.colors`
1315
========================

doc/api/pyplot_summary.rst

Lines changed: 262 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,275 @@
1-
Pyplot function overview
2-
------------------------
1+
******
2+
pyplot
3+
******
34

4-
.. currentmodule:: matplotlib
5+
.. currentmodule:: matplotlib.pyplot
6+
7+
.. automodule:: matplotlib.pyplot
8+
:no-members:
59

10+
Creating figures
11+
================
612
.. autosummary::
7-
:toctree: _as_gen
8-
:template: autofunctions.rst
13+
:toctree: _as_gen
14+
:template: autosummary.rst
15+
:nosignatures:
916

10-
pyplot
17+
figure
18+
subplots
1119

20+
Global functions
21+
================
1222

13-
.. currentmodule:: matplotlib.pyplot
23+
.. autosummary::
24+
:toctree: _as_gen
25+
:template: autosummary.rst
26+
:nosignatures:
1427

15-
.. autofunction:: plotting
28+
findobj
29+
get_plot_commands
30+
install_repl_displayhook
31+
ioff
32+
ion
33+
isinteractive
34+
pause
35+
rc
36+
rc_context
37+
rcdefaults
38+
show
39+
switch_backend
40+
uninstall_repl_displayhook
1641

42+
Any artist
43+
==========
1744

18-
Colors in Matplotlib
19-
--------------------
45+
.. autosummary::
46+
:toctree: _as_gen
47+
:template: autosummary.rst
48+
:nosignatures:
2049

21-
There are many colormaps you can use to map data onto color values.
22-
Below we list several ways in which color can be utilized in Matplotlib.
50+
getp
51+
setp
52+
xkcd
2353

24-
For a more in-depth look at colormaps, see the
25-
:doc:`/tutorials/colors/colormaps` tutorial.
54+
Working with figures
55+
====================
2656

27-
.. currentmodule:: matplotlib.pyplot
57+
.. autosummary::
58+
:toctree: _as_gen
59+
:template: autosummary.rst
60+
:nosignatures:
61+
62+
clf
63+
close
64+
connect
65+
disconnect
66+
draw
67+
fignum_exists
68+
figure
69+
gcf
70+
get_current_fig_manager
71+
get_figlabels
72+
get_fignums
73+
ginput
74+
savefig
75+
waitforbuttonpress
76+
77+
Adding elements to figures
78+
==========================
79+
80+
.. autosummary::
81+
:toctree: _as_gen
82+
:template: autosummary.rst
83+
:nosignatures:
84+
85+
figimage
86+
figlegend
87+
figtext
88+
suptitle
89+
90+
Working with axes
91+
=================
92+
93+
.. autosummary::
94+
:toctree: _as_gen
95+
:template: autosummary.rst
96+
:nosignatures:
97+
98+
axes
99+
box
100+
cla
101+
delaxes
102+
gca
103+
grid
104+
sca
105+
subplot
106+
subplots
107+
subplot2grid
108+
subplot_tool
109+
subplots_adjust
110+
tight_layout
111+
twinx
112+
twiny
113+
114+
Adding elements to axes
115+
=======================
116+
117+
.. autosummary::
118+
:toctree: _as_gen
119+
:template: autosummary.rst
120+
:nosignatures:
121+
122+
annotate
123+
arrow
124+
legend
125+
table
126+
text
127+
title
128+
129+
130+
Working with axis
131+
=================
132+
133+
.. autosummary::
134+
:toctree: _as_gen
135+
:template: autosummary.rst
136+
:nosignatures:
137+
138+
autoscale
139+
axis
140+
locator_params
141+
margins
142+
minorticks_off
143+
minorticks_on
144+
rgrids
145+
thetagrids
146+
tick_params
147+
ticklabel_format
148+
xlabel
149+
ylabel
150+
xlim
151+
ylim
152+
xscale
153+
yscale
154+
xticks
155+
yticks
156+
157+
158+
Current image
159+
=============
160+
161+
.. autosummary::
162+
:toctree: _as_gen
163+
:template: autosummary.rst
164+
:nosignatures:
165+
166+
clabel
167+
clim
168+
colorbar
169+
colormaps
170+
gci
171+
sci
172+
set_cmap
173+
174+
Working with images
175+
===================
176+
177+
.. autosummary::
178+
:toctree: _as_gen
179+
:template: autosummary.rst
180+
:nosignatures:
181+
182+
imread
183+
imsave
184+
185+
Plotting functions
186+
==================
187+
188+
.. autosummary::
189+
:toctree: _as_gen
190+
:template: autosummary.rst
191+
:nosignatures:
192+
193+
acorr
194+
angle_spectrum
195+
axhline
196+
axhspan
197+
axvline
198+
axvspan
199+
bar
200+
barbs
201+
barh
202+
boxplot
203+
broken_barh
204+
cohere
205+
contour
206+
contourf
207+
csd
208+
errorbar
209+
eventplot
210+
fill
211+
fill_between
212+
fill_betweenx
213+
hexbin
214+
hist
215+
hist2d
216+
hlines
217+
imshow
218+
loglog
219+
magnitude_spectrum
220+
matshow
221+
pcolor
222+
pcolormesh
223+
phase_spectrum
224+
pie
225+
plot
226+
plot_date
227+
plotfile
228+
polar
229+
psd
230+
quiver
231+
quiverkey
232+
scatter
233+
semilogx
234+
semilogy
235+
specgram
236+
spy
237+
stackplot
238+
stem
239+
step
240+
streamplot
241+
tricontour
242+
tricontourf
243+
tripcolor
244+
triplot
245+
violinplot
246+
vlines
247+
xcorr
248+
249+
Colormaps
250+
=========
251+
252+
.. autosummary::
253+
:toctree: _as_gen
254+
:template: autosummary.rst
255+
:nosignatures:
28256

29-
.. autofunction:: colormaps
257+
autumn
258+
bone
259+
cool
260+
copper
261+
flag
262+
gray
263+
hot
264+
hsv
265+
inferno
266+
jet
267+
magma
268+
nipy_spectral
269+
pink
270+
plasma
271+
prism
272+
spring
273+
summer
274+
viridis
275+
winter

lib/matplotlib/cm.py

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11
"""
22
Builtin colormaps, colormap handling utilities, and the `ScalarMappable` mixin.
33
4-
See :doc:`/gallery/color/colormap_reference` for a list of builtin colormaps.
5-
See :doc:`/tutorials/colors/colormaps` for an in-depth discussion of colormaps.
4+
See :doc:`/gallery/color/colormap_reference` for a list of builtin colormaps
5+
and :doc:`/tutorials/colors/colormaps` for an in-depth discussion of colormaps.
6+
7+
Attributes
8+
----------
9+
cmap_d : dict
10+
A dictionary with all registred colormaps.
11+
12+
cmap : for example viridis
13+
Every registred colormap is an attribute in the module.
14+
15+
See Also
16+
--------
17+
.pyplot.colormaps : Returns a list with the names of all available colormaps.
18+
.colors.Colormap : The colormap class.
19+
20+
Examples
21+
--------
22+
The viridis colormap is returned by::
23+
24+
matplotlib.cm.viridis
625
"""
726

827
import numpy as np

0 commit comments

Comments
 (0)