From 81760d7bd3491a1c2c02ad840c9093d76a15f129 Mon Sep 17 00:00:00 2001
From: Jens Hedegaard Nielsen
Date: Tue, 16 Sep 2014 09:41:43 +0100
Subject: [PATCH 1/3] Remove backticks around None. This is not a ref
---
lib/matplotlib/colorbar.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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.
From 630f867dae6a4af89cf79150cbd0c27e999f66e7 Mon Sep 17 00:00:00 2001
From: Jens Hedegaard Nielsen
Date: Tue, 16 Sep 2014 09:42:22 +0100
Subject: [PATCH 2/3] Fix formatting in docstring for dates
---
lib/matplotlib/dates.py | 33 +++++++++++++++++----------------
1 file changed, 17 insertions(+), 16 deletions(-)
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
From 11748bfba7440ddeb3f75337cfb1f46c623da25f Mon Sep 17 00:00:00 2001
From: Thomas A Caswell
Date: Fri, 19 Sep 2014 16:51:16 -0400
Subject: [PATCH 3/3] DOC : fix main-page tags
-> for inline markup.
---
doc/_templates/index.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 @@ Introduction
For a sampling, see the screenshots, thumbnail gallery, and
examples directory
-For simple plotting the
pyplot
interface 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.