|
From: <ef...@us...> - 2010-06-01 02:36:53
|
Revision: 8359
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8359&view=rev
Author: efiring
Date: 2010-06-01 02:36:47 +0000 (Tue, 01 Jun 2010)
Log Message:
-----------
Axes.axhline, axvline: explicitly disallow transform kwarg. Closes 2864449.
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/axes.py
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py 2010-06-01 02:20:53 UTC (rev 8358)
+++ trunk/matplotlib/lib/matplotlib/axes.py 2010-06-01 02:36:47 UTC (rev 8359)
@@ -3087,7 +3087,8 @@
>>> axhline(y=.5, xmin=0.25, xmax=0.75)
- Valid kwargs are :class:`~matplotlib.lines.Line2D` properties:
+ Valid kwargs are :class:`~matplotlib.lines.Line2D` properties,
+ with the exception of 'transform':
%(Line2D)s
@@ -3097,6 +3098,10 @@
for example plot and source code
"""
+ if "transform" in kwargs:
+ raise ValueError(
+ "'transform' is not allowed as a kwarg;"
+ + "axhline generates its own transform.")
ymin, ymax = self.get_ybound()
# We need to strip away the units for comparison with
@@ -3147,7 +3152,8 @@
>>> axvline(x=.5, ymin=0.25, ymax=0.75)
- Valid kwargs are :class:`~matplotlib.lines.Line2D` properties:
+ Valid kwargs are :class:`~matplotlib.lines.Line2D` properties,
+ with the exception of 'transform':
%(Line2D)s
@@ -3157,6 +3163,10 @@
for example plot and source code
"""
+ if "transform" in kwargs:
+ raise ValueError(
+ "'transform' is not allowed as a kwarg;"
+ + "axvline generates its own transform.")
xmin, xmax = self.get_xbound()
# We need to strip away the units for comparison with
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|