A pylab approach:

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

def swap(xdata, ydata):
    line2d.set_xdata(ydata)
    line2d.set_ydata(xdata)
    draw()

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

On 9/27/05, Jeff Peery <jeffpeery@seametrics.com> 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.

Jeff



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users