diff --git a/doc/_templates/index.html b/doc/_templates/index.html index 664e92fcf14e..0d6f5754134b 100644 --- a/doc/_templates/index.html +++ b/doc/_templates/index.html @@ -63,9 +63,9 @@
For simple plotting the
pyplotinterface provides a +
For simple plotting the pyplot interface provides a MATLAB-like interface, particularly when combined - with
IPython. For the power user, you have full control + with IPython. For the power user, you have full control of line styles, font properties, axes properties, etc, via an object oriented interface or via a set of functions familiar to MATLAB users. diff --git a/lib/matplotlib/colorbar.py b/lib/matplotlib/colorbar.py index b16f01c50c34..6862105bc36e 100644 --- a/lib/matplotlib/colorbar.py +++ b/lib/matplotlib/colorbar.py @@ -1014,12 +1014,12 @@ def make_axes(parents, location=None, orientation=None, fraction=0.15, Keyword arguments may include the following (with defaults): - location : [`None`|'left'|'right'|'top'|'bottom'] + location : [None|'left'|'right'|'top'|'bottom'] The position, relative to **parents**, where the colorbar axes should be created. If None, the value will either come from the given ``orientation``, else it will default to 'right'. - orientation : [`None`|'vertical'|'horizontal'] + orientation : [None|'vertical'|'horizontal'] The orientation of the colorbar. Typically, this keyword shouldn't be used, as it can be derived from the ``location`` keyword. diff --git a/lib/matplotlib/dates.py b/lib/matplotlib/dates.py index 227b39945b31..5f2be9edbc32 100755 --- a/lib/matplotlib/dates.py +++ b/lib/matplotlib/dates.py @@ -520,22 +520,23 @@ class AutoDateFormatter(ticker.Formatter): >>> formatter = AutoDateFormatter() >>> formatter.scaled[1/(24.*60.)] = '%M:%S' # only show min and sec - Custom `FunctionFormatter`s can also be used. The following example shows - how to use a custom format function to strip trailing zeros from decimal - seconds and adds the date to the first ticklabel:: - - >>> def my_format_function(x, pos=None): - ... x = matplotlib.dates.num2date(x) - ... if pos == 0: - ... fmt = '%D %H:%M:%S.%f' - ... else: - ... fmt = '%H:%M:%S.%f' - ... label = x.strftime(fmt) - ... label = label.rstrip("0") - ... label = label.rstrip(".") - ... return label - >>> from matplotlib.ticker import FuncFormatter - >>> formatter.scaled[1/(24.*60.)] = FuncFormatter(my_format_function) + A custom :class:`~matplotlib.ticker.FuncFormatter` can also be used. + The following example shows how to use a custom format function to strip + trailing zeros from decimal seconds and adds the date to the first + ticklabel:: + + >>> def my_format_function(x, pos=None): + ... x = matplotlib.dates.num2date(x) + ... if pos == 0: + ... fmt = '%D %H:%M:%S.%f' + ... else: + ... fmt = '%H:%M:%S.%f' + ... label = x.strftime(fmt) + ... label = label.rstrip("0") + ... label = label.rstrip(".") + ... return label + >>> from matplotlib.ticker import FuncFormatter + >>> formatter.scaled[1/(24.*60.)] = FuncFormatter(my_format_function) """ # This can be improved by providing some user-level direction on