Thanks. Will that work for the WXAgg backend?


-----Original Message-----
From: Charlie Moad []
Sent: Tuesday, September 27, 2005 9:34 AM
To: Jeff Peery
Subject: Re: [Matplotlib-users] rotating a plot using 'rotate' keyword?


A pylab approach:

line2d = plot(rand(10))[0]

def swap(xdata, ydata):

swap(line2d.get_xdata(), line2d.get_ydata())

On 9/27/05, Jeff Peery <> wrote:

Is there something for plot() that rotates the axes.  I know I can
simply switch the variables like so:  plot(x,y) and plot(y,x), but I
have a 1D array and I don't want to add a second array for the element
number. Is there a keyword like rotate=90 as there is for text? Thanks.


This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more.
Matplotlib-users mailing list