[Matplotlib-users] converting data between axis [0, 1] and data coordinates [min data, max data]

2008-06-28 Thread n g
Hello all, I believe it is an easy thing to do but I haven't figured out how to convert between coordinate systems using transData or transAxes.Here is the simple_plot.py import numpy import pylab x = numpy.arange(0.0, 1.0+0.01, 0.01) y = numpy.cos(2*2*numpy.pi*x) pylab.plot(x, y) Here I wa

Re: [Matplotlib-users] plot xy data with missing values

2008-06-28 Thread sandric ionut
  Thank you John:   I have exported the excel file in csv format and imported as you showed me. When I try to create a plot with the command: plot(a[isfinite(b)],b[isfinite(b)]), I get an error message: index should be int. When I look at the second column from the csv file I see that the values

Re: [Matplotlib-users] plot xy data with missing values

2008-06-28 Thread John Hunter
On Sat, Jun 28, 2008 at 9:16 AM, sandric ionut <[EMAIL PROTECTED]> wrote: > Thank you Darren: > > The second example is what I need. I have made some test and it looks OK > I have my data in excel. How can I read from excel files? Is it a special > tool? If you save as csv, you can use matplotlib.

Re: [Matplotlib-users] plot xy data with missing values

2008-06-28 Thread sandric ionut
Thank you Darren:   The second example is what I need. I have made some test and it looks OK I have my data in excel. How can I read from excel files? Is it a special tool?   Thank you again,   Ionut - Original Message From: Darren Dale <[EMAIL PROTECTED]> To: matplotlib-users@lists.sou

Re: [Matplotlib-users] plot xy data with missing values

2008-06-28 Thread Darren Dale
Hi Sandric, On Saturday 28 June 2008 04:31:19 sandric ionut wrote: > Hello: > I want to draw a multiple line plot using the data from the bottom of the > email, but I get a error message: : > Dimensions of x and y are incompatible, which is normal, because the number > of values on x are not equal

[Matplotlib-users] plot xy data with missing values

2008-06-28 Thread sandric ionut
Hello: I want to draw a multiple line plot using the data from the bottom of the email, but I get a error message: : Dimensions of x and y are incompatible, which is normal, because the number of values on x are not equal with the number of values on y. The empty spaces from the table are missi