@@ -362,6 +362,13 @@ or by setting::
362362
363363in your :file: `matplotlibrc ` file.
364364
365+ Errorbar
366+ --------
367+
368+ - By default, caps on the ends of errorbars are not present. Use the
369+ rcParam ``errorbar.capsize `` to control this.
370+
371+
365372Patch edges and color
366373---------------------
367374
@@ -695,9 +702,64 @@ TEMPORARY NOTES TOM IS KEEPING IN THE SOURCE SO THEY DO NOT GET LOST
695702Plot layout
696703===========
697704
705+ Ticks
706+ -----
707+
708+ Direction
709+ ~~~~~~~~~
710+
711+ To reduce the collision of tick marks with data, the default ticks now
712+ point outward by default. In addition, ticks are now only drawn on
713+ the bottom and left spines to reduce the plot looking like a
714+ porcupine.
715+
716+
717+ .. plot ::
718+
719+ import matplotlib as mpl
720+ import matplotlib.pyplot as plt
721+ import numpy as np
722+
723+ th = np.linspace(0, 2*np.pi, 128)
724+ y = np.sin(th)
725+
726+ def demo(fig, rcparams, title, j):
727+ np.random.seed(2)
728+ with mpl.rc_context(rc=rcparams):
729+
730+ ax = fig.add_subplot(2, 2, j)
731+ ax.hist(np.random.beta(0.5, 0.5, 10000), 100, normed=True)
732+ ax.set_xlim([0, 1])
733+ ax.set_title(title)
734+
735+ ax = fig.add_subplot(2, 2, j + 2)
736+ ax.imshow(np.random.rand(5, 5))
737+
738+ classic = {'xtick.direction': 'in',
739+ 'ytick.direction': 'in',
740+ 'xtick.top': True,
741+ 'ytick.right': True
742+ }
743+
744+ fig = plt.figure(figsize=(4, 4), tight_layout=True)
745+
746+
747+
748+ demo(fig, classic, 'classic', 1)
749+ demo(fig, {}, 'v2.0', 2)
750+
751+ Number
752+ ~~~~~~
753+
698754- The number of ticks on an axis is now automatically determined based
699755 on the length of the axis.
700756
757+
758+ Auto limits
759+ -----------
760+
761+
762+
701763- The limits of an axes are scaled to exactly the dimensions of the data,
702764 plus 5% padding. The old behavior was to scale to the nearest "round"
703765 numbers. To use the old behavior, set the ``rcParam ``
@@ -710,17 +772,14 @@ Plot layout
710772 - ``left_margin=False ``
711773 - ``right_margin=False ``
712774
713- - Ticks now point outward by default. To have ticks pointing inward,
714- use the `` rcParams `` `` xtick.direction `` and `` ytick.direction ``.
775+ Z-order
776+ -------
715777
716778- Ticks and grids are now plotted above solid elements such as
717779 filled contours, but below lines. To return to the previous
718780 behavior of plotting ticks and grids above lines, set
719781 ``rcParams['axes.axisbelow'] = False ``.
720782
721- - By default, caps on the ends of errorbars are not present. Use the
722- rcParam ``errorbar.capsize `` to control this.
723-
724783
725784
726785Dates
0 commit comments