|
From: <ef...@us...> - 2007-08-17 22:36:08
|
Revision: 3715
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3715&view=rev
Author: efiring
Date: 2007-08-17 15:36:01 -0700 (Fri, 17 Aug 2007)
Log Message:
-----------
Added coll.update(kwargs) to hline method; thanks to Daniel Fish
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/axes.py
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py 2007-08-16 21:57:58 UTC (rev 3714)
+++ trunk/matplotlib/lib/matplotlib/axes.py 2007-08-17 22:36:01 UTC (rev 3715)
@@ -2345,7 +2345,6 @@
respective values are constant, else the widths of the lines are
determined by xmin and xmax
-
colors is a line collections color args, either a single color
or a len(x) list of colors
@@ -2370,23 +2369,18 @@
xmin = npy.asarray(xmin)
xmax = npy.asarray(xmax)
-
if len(xmin)!=len(y):
raise ValueError, 'xmin and y are unequal sized sequences'
if len(xmax)!=len(y):
raise ValueError, 'xmax and y are unequal sized sequences'
-
-
-
verts = [ ((thisxmin, thisy), (thisxmax, thisy))
for thisxmin, thisxmax, thisy in zip(xmin, xmax, y)]
coll = mcoll.LineCollection(verts, colors=colors,
linestyle=linestyle, label=label)
self.add_collection(coll)
+ coll.update(kwargs)
-
-
minx = min(xmin.min(), xmax.min())
maxx = max(xmin.max(), xmax.max())
miny = y.min()
@@ -2444,8 +2438,6 @@
if len(ymax)==1:
ymax = ymax*npy.ones(x.shape, x.dtype)
-
-
if len(ymin)!=len(x):
raise ValueError, 'ymin and x are unequal sized sequences'
if len(ymax)!=len(x):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|