Skip to content

Commit c2d1b19

Browse files
committed
Merge remote-tracking branch 'origin/v2.2.3-doc' into 224_prep
2 parents 6368523 + e2ee53b commit c2d1b19

File tree

9 files changed

+31
-19
lines changed

9 files changed

+31
-19
lines changed

doc-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Install the documentation requirements with:
77
# pip install -r doc-requirements.txt
88
#
9-
sphinx>=1.3,!=1.5.0,!=1.6.4,!=1.7.3
9+
sphinx>=1.3,!=1.5.0,!=1.6.4,!=1.7.3,<1.8
1010
colorspacious
1111
ipython
1212
ipywidgets

doc/_static/mpl.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,14 @@ table.docutils {
623623
background-color: #eff3f4;
624624
}
625625

626+
/* tables inside class descriptions */
627+
dl.class table.property-table {
628+
width: 85%;
629+
border-spacing: 2px;
630+
border-collapse: collapse;
631+
border: 0px;
632+
}
633+
626634
/* tables inside parameter descriptions */
627635
td.field-body table.property-table {
628636
width: 100%;

doc/citing.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ publication, please acknowledge this fact by citing `Hunter et al (2007)
2727
2828
DOIs
2929
----
30+
v2.2.3
31+
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.1343133.svg
32+
:target: https://doi.org/10.5281/zenodo.1343133
3033
v2.2.2
3134
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.1202077.svg
3235
:target: https://doi.org/10.5281/zenodo.1202077

doc/devel/MEP/MEP24.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ but this seems more generally useful (for example growth rate as a
3131
function of angle). The assumption in the current code (as I
3232
understand it) is that the center of the graph is `r==0`, however it
3333
would be good to be able to set the center to be at any `r` (with any
34-
value less than the off set clipped).
34+
value less than the offset clipped).
3535

3636
Implementation
3737
==============

doc/users/whats_new.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ A new dark blue/yellow colormap named 'cividis' was added. Like
156156
viridis, cividis is perceptually uniform and colorblind
157157
friendly. However, cividis also goes a step further: not only is it
158158
usable by colorblind users, it should actually look effectively
159-
identical to colorblind and non-colorblind users. For more details,
160-
see Nunez J, Anderton C, and Renslow R. (submitted). Optimizing
161-
colormaps with consideration for color vision deficiency to enable
162-
accurate interpretation of scientific data."
159+
identical to colorblind and non-colorblind users. For more details
160+
see `Nuñez J, Anderton C, and Renslow R: "Optimizing colormaps with consideration
161+
for color vision deficiency to enable accurate interpretation of scientific data"
162+
<https://doi.org/10.1371/journal.pone.0199239>`_.
163163

164164
.. plot::
165165

examples/lines_bars_and_markers/fill_betweenx_demo.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
Fill Betweenx Demo
44
==================
55
6-
Using ``fill_betweenx`` to color between two horizontal curves.
6+
Using `~.Axes.fill_betweenx` to color along the horizontal direction between
7+
two curves.
78
"""
89
import matplotlib.pyplot as plt
910
import numpy as np
@@ -13,35 +14,35 @@
1314
x1 = np.sin(2 * np.pi * y)
1415
x2 = 1.2 * np.sin(4 * np.pi * y)
1516

16-
fig, [ax1, ax2, ax3] = plt.subplots(3, 1, sharex=True)
17+
fig, [ax1, ax2, ax3] = plt.subplots(1, 3, sharey=True, figsize=(6, 6))
1718

1819
ax1.fill_betweenx(y, 0, x1)
19-
ax1.set_ylabel('(x1, 0)')
20+
ax1.set_title('between (x1, 0)')
2021

2122
ax2.fill_betweenx(y, x1, 1)
22-
ax2.set_ylabel('(x1, 1)')
23+
ax2.set_title('between (x1, 1)')
24+
ax2.set_xlabel('x')
2325

2426
ax3.fill_betweenx(y, x1, x2)
25-
ax3.set_ylabel('(x1, x2)')
26-
ax3.set_xlabel('x')
27+
ax3.set_title('between (x1, x2)')
2728

2829
# now fill between x1 and x2 where a logical condition is met. Note
2930
# this is different than calling
3031
# fill_between(y[where], x1[where], x2[where])
3132
# because of edge effects over multiple contiguous regions.
3233

33-
fig, [ax, ax1] = plt.subplots(2, 1, sharex=True)
34+
fig, [ax, ax1] = plt.subplots(1, 2, sharey=True, figsize=(6, 6))
3435
ax.plot(x1, y, x2, y, color='black')
3536
ax.fill_betweenx(y, x1, x2, where=x2 >= x1, facecolor='green')
3637
ax.fill_betweenx(y, x1, x2, where=x2 <= x1, facecolor='red')
37-
ax.set_title('fill between where')
38+
ax.set_title('fill_betweenx where')
3839

3940
# Test support for masked arrays.
4041
x2 = np.ma.masked_greater(x2, 1.0)
4142
ax1.plot(x1, y, x2, y, color='black')
4243
ax1.fill_betweenx(y, x1, x2, where=x2 >= x1, facecolor='green')
4344
ax1.fill_betweenx(y, x1, x2, where=x2 <= x1, facecolor='red')
44-
ax1.set_title('Now regions with x2 > 1 are masked')
45+
ax1.set_title('regions with x2 > 1 are masked')
4546

4647
# This example illustrates a problem; because of the data
4748
# gridding, there are undesired unfilled triangles at the crossover

lib/matplotlib/ticker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
-----------------
1313
1414
The default formatter identifies when the x-data being plotted is a
15-
small range on top of a large off set. To reduce the chances that the
16-
ticklabels overlap the ticks are labeled as deltas from a fixed offset.
15+
small range on top of a large offset. To reduce the chances that the
16+
ticklabels overlap, the ticks are labeled as deltas from a fixed offset.
1717
For example::
1818
1919
ax.plot(np.arange(2000, 2010), range(10))

tutorials/colors/colormaps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,4 +391,4 @@ def plot_color_gradients(cmap_category, cmap_list):
391391
# .. [bw] http://www.tannerhelland.com/3643/grayscale-image-algorithm-vb6/
392392
# .. [colorblindness] http://www.color-blindness.com/
393393
# .. [vischeck] http://www.vischeck.com/vischeck/
394-
# .. [IBM] http://www.research.ibm.com/people/l/lloydt/color/color.HTM
394+
# .. [IBM] https://dx.doi.org/10.1109/VISUAL.1995.480803

tutorials/introductory/usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def my_plotter(ax, data1, data2, param_dict):
387387
# DPI setting.
388388
#
389389
# Here is a summary of the matplotlib renderers (there is an eponymous
390-
# backed for each; these are *non-interactive backends*, capable of
390+
# backend for each; these are *non-interactive backends*, capable of
391391
# writing to a file):
392392
#
393393
# ============= ============ ================================================

0 commit comments

Comments
 (0)