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

Skip to content

Commit 02b39b9

Browse files
committed
docs: add 4 new pyplot functions
svn path=/trunk/matplotlib/; revision=8471
1 parent fa0b68a commit 02b39b9

3 files changed

Lines changed: 57 additions & 2 deletions

File tree

doc/_templates/index.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,18 @@ <h3>plotting commands</h3> <br/>
618618
</td>
619619

620620
</tr>
621+
<tr>
622+
<th align="left">
623+
<a href="api/pyplot_api.html#matplotlib.pyplot.locator_params">locator_params</a>
624+
625+
</th>
626+
627+
<td align="left">
628+
adjust parameters used in locating axis ticks
629+
</td>
630+
631+
</tr>
632+
621633
<tr>
622634
<th align="left">
623635
<a href="api/pyplot_api.html#matplotlib.pyplot.loglog">loglog</a>
@@ -640,6 +652,18 @@ <h3>plotting commands</h3> <br/>
640652
</td>
641653

642654
</tr>
655+
<tr>
656+
<th align="left">
657+
<a href="api/pyplot_api.html#matplotlib.pyplot.margins">margins</a>
658+
659+
</th>
660+
661+
<td align="left">
662+
set margins used in autoscaling
663+
</td>
664+
665+
</tr>
666+
643667
<tr>
644668
<th align="left">
645669
<a href="api/pyplot_api.html#matplotlib.pyplot.pcolor">pcolor</a>
@@ -948,6 +972,29 @@ <h3>plotting commands</h3> <br/>
948972
</td>
949973

950974
</tr>
975+
<tr>
976+
<th align="left">
977+
<a href="api/pyplot_api.html#matplotlib.pyplot.tick_params">tick_params</a>
978+
979+
</th>
980+
981+
<td align="left">
982+
control the appearance of ticks and tick labels
983+
</td>
984+
985+
</tr>
986+
<tr>
987+
<th align="left">
988+
<a href="api/pyplot_api.html#matplotlib.pyplot.ticklabel_format">ticklabel_format</a>
989+
990+
</th>
991+
992+
<td align="left">
993+
control the format of tick labels
994+
</td>
995+
996+
</tr>
997+
951998
<tr>
952999
<th align="left">
9531000
<a href="api/pyplot_api.html#matplotlib.pyplot.title">title</a>

doc/api/api_changes.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ list may help describe what changes may be necessary in your code.
1010
Changes beyond 0.99.x
1111
=====================
1212

13-
* There are three new Axes methods with corresponding pyplot
13+
* There are four new Axes methods with corresponding pyplot
1414
functions to facilitate autoscaling, tick location, and tick
15-
label formatting:
15+
label formatting, and the general appearance of ticks and
16+
tick labels:
1617

1718
+ :meth:`matplotlib.axes.Axes.margins` sets margins used to
1819
autoscale the :attr:`matplotlib.axes.Axes.viewLim` based on
@@ -25,6 +26,9 @@ Changes beyond 0.99.x
2526
method for controlling the :class:`matplotlib.ticker.ScalarFormatter`
2627
that is used by default with linear axes.
2728

29+
+ :meth:`matplotlib.axes.Axes.tick_params` controls direction, size,
30+
visibility, and color of ticks and their labels.
31+
2832
* The :meth:`matplotlib.axes.Axes.bar` method accepts a *error_kw*
2933
kwarg; it is a dictionary of kwargs to be passed to the
3034
errorbar function.

lib/matplotlib/pylab.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@
5656
imshow - plot image data
5757
ishold - return the hold state of the current axes
5858
legend - make an axes legend
59+
locator_params - adjust parameters used in locating axis ticks
5960
loglog - a log log plot
6061
matshow - display a matrix in a new figure preserving aspect
62+
margins - set margins used in autoscaling
6163
pcolor - make a pseudocolor plot
6264
pcolormesh - make a pseudocolor plot using a quadrilateral mesh
6365
pie - make a pie chart
@@ -86,6 +88,8 @@
8688
table - add a table to the plot
8789
text - add some text at location x,y to the current axes
8890
thetagrids - customize the radial theta grids and labels for polar
91+
tick_params - control the appearance of ticks and tick labels
92+
ticklabel_format - control the format of tick labels
8993
title - add a title to the current axes
9094
xcorr - plot the autocorrelation function of x and y
9195
xlim - set/get the xlimits

0 commit comments

Comments
 (0)