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

Skip to content

Commit 41e83e2

Browse files
committed
DOC: Simplify some grid tables
These are not so complicated that they can't use simple tables, though in one case, I thought a definition list looked better.
1 parent 5093150 commit 41e83e2

File tree

3 files changed

+21
-26
lines changed

3 files changed

+21
-26
lines changed

lib/matplotlib/quiver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@
150150
================= ================= ==================
151151
units zoom figure size change
152152
================= ================= ==================
153-
'x', 'y', 'xy' arrow size scales -
154-
'width', 'height' - arrow size scales
155-
'dots', 'inches' - -
153+
'x', 'y', 'xy' arrow size scales
154+
'width', 'height' arrow size scales
155+
'dots', 'inches'
156156
================= ================= ==================
157157
158158
width : float, optional

lib/matplotlib/style/core.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -186,18 +186,16 @@ def context(style, after_reset=False):
186186
style : str, dict, Path or list
187187
A style specification. Valid options are:
188188
189-
+------+-------------------------------------------------------------+
190-
| str | The name of a style or a path/URL to a style file. For a |
191-
| | list of available style names, see `.style.available`. |
192-
+------+-------------------------------------------------------------+
193-
| dict | Dictionary with valid key/value pairs for |
194-
| | `matplotlib.rcParams`. |
195-
+------+-------------------------------------------------------------+
196-
| Path | A path-like object which is a path to a style file. |
197-
+------+-------------------------------------------------------------+
198-
| list | A list of style specifiers (str, Path or dict) applied from |
199-
| | first to last in the list. |
200-
+------+-------------------------------------------------------------+
189+
str
190+
The name of a style or a path/URL to a style file. For a list of
191+
available style names, see `.style.available`.
192+
dict
193+
Dictionary with valid key/value pairs for `matplotlib.rcParams`.
194+
Path
195+
A path-like object which is a path to a style file.
196+
list
197+
A list of style specifiers (str, Path or dict) applied from first
198+
to last in the list.
201199
202200
after_reset : bool
203201
If True, apply style after resetting settings to their defaults;

lib/matplotlib/ticker.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,17 +1520,14 @@ def format_pct(self, x, display_range):
15201520
decimal point is set based on the *display_range* of the axis
15211521
as follows:
15221522
1523-
+---------------+----------+------------------------+
1524-
| display_range | decimals | sample |
1525-
+---------------+----------+------------------------+
1526-
| >50 | 0 | ``x = 34.5`` => 35% |
1527-
+---------------+----------+------------------------+
1528-
| >5 | 1 | ``x = 34.5`` => 34.5% |
1529-
+---------------+----------+------------------------+
1530-
| >0.5 | 2 | ``x = 34.5`` => 34.50% |
1531-
+---------------+----------+------------------------+
1532-
| ... | ... | ... |
1533-
+---------------+----------+------------------------+
1523+
============= ======== =======================
1524+
display_range decimals sample
1525+
============= ======== =======================
1526+
>50 0 ``x = 34.5`` => 35%
1527+
>5 1 ``x = 34.5`` => 34.5%
1528+
>0.5 2 ``x = 34.5`` => 34.50%
1529+
... ... ...
1530+
============= ======== =======================
15341531
15351532
This method will not be very good for tiny axis ranges or
15361533
extremely large ones. It assumes that the values on the chart

0 commit comments

Comments
 (0)