|
16 | 16 | import matplotlib.collections as mcoll |
17 | 17 | import matplotlib.colors as mcolors |
18 | 18 | import matplotlib.contour as mcontour |
19 | | -import matplotlib.dates as _ # <-registers a date unit converter |
| 19 | +import matplotlib.dates as _ # <-registers a date unit converter |
20 | 20 | from matplotlib import docstring |
21 | 21 | import matplotlib.font_manager as font_manager |
22 | 22 | import matplotlib.image as mimage |
@@ -465,7 +465,7 @@ def __init__(self, fig, rect, |
465 | 465 | self._frameon = frameon |
466 | 466 | self._axisbelow = rcParams['axes.axisbelow'] |
467 | 467 |
|
468 | | - self._rasterization_zorder = -30000 |
| 468 | + self._rasterization_zorder = None |
469 | 469 |
|
470 | 470 | self._hold = rcParams['axes.hold'] |
471 | 471 | self._connected = {} # a dict from events to (id, func) |
@@ -1852,7 +1852,9 @@ def margins(self, *args, **kw): |
1852 | 1852 |
|
1853 | 1853 | def set_rasterization_zorder(self, z): |
1854 | 1854 | """ |
1855 | | - Set zorder value below which artists will be rasterized |
| 1855 | + Set zorder value below which artists will be rasterized. Set |
| 1856 | + to `None` to disable rasterizing of artists below a particular |
| 1857 | + zorder. |
1856 | 1858 | """ |
1857 | 1859 | self._rasterization_zorder = z |
1858 | 1860 |
|
@@ -2029,7 +2031,8 @@ def draw(self, renderer=None, inframe=False): |
2029 | 2031 | # rasterize artists with negative zorder |
2030 | 2032 | # if the minimum zorder is negative, start rasterization |
2031 | 2033 | rasterization_zorder = self._rasterization_zorder |
2032 | | - if len(dsu) > 0 and dsu[0][0] < rasterization_zorder: |
| 2034 | + if (rasterization_zorder is not None and |
| 2035 | + len(dsu) > 0 and dsu[0][0] < rasterization_zorder): |
2033 | 2036 | renderer.start_rasterizing() |
2034 | 2037 | dsu_rasterized = [l for l in dsu if l[0] < rasterization_zorder] |
2035 | 2038 | dsu = [l for l in dsu if l[0] >= rasterization_zorder] |
@@ -3972,7 +3975,7 @@ def plot(self, *args, **kwargs): |
3972 | 3975 |
|
3973 | 3976 | plot(x, y, color='green', linestyle='dashed', marker='o', |
3974 | 3977 | markerfacecolor='blue', markersize=12). |
3975 | | - |
| 3978 | +
|
3976 | 3979 | See :class:`~matplotlib.lines.Line2D` for details. |
3977 | 3980 |
|
3978 | 3981 | The kwargs are :class:`~matplotlib.lines.Line2D` properties: |
@@ -7073,7 +7076,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None, |
7073 | 7076 | **Example:** |
7074 | 7077 |
|
7075 | 7078 | .. plot:: mpl_examples/pylab_examples/image_demo.py |
7076 | | - |
| 7079 | +
|
7077 | 7080 | """ |
7078 | 7081 |
|
7079 | 7082 | if not self._hold: self.cla() |
@@ -7418,7 +7421,7 @@ def pcolormesh(self, *args, **kwargs): |
7418 | 7421 |
|
7419 | 7422 | If ``'None'``, edges will not be visible. |
7420 | 7423 |
|
7421 | | - If ``'face'``, edges will have the same color as the faces. |
| 7424 | + If ``'face'``, edges will have the same color as the faces. |
7422 | 7425 |
|
7423 | 7426 | An mpl color or sequence of colors will set the edge color |
7424 | 7427 |
|
|
0 commit comments