multiple plots in 1 figure

Dear matplotLib Users,

Could you help me with plotting the
columns of a matrix vs it’s index in 1 figure. S if i have an m *n matrix
i have to have n plots in 1 figure.

Regards,

Sandeep Prasad

Tata Consultancy Services

Plot No 1, Survey No. 64/2, Software Units Layout

Serilingampally Mandal, Madhapur

Hyderabad,Andhra Pradesh

India

Ph:- 04066673582

Cell:- 9640795927

Mailto: sandeep.prasad@…2613…

Website: http://www.tcs.com

···

Experience certainty. IT Services

   Business Solutions

            
   Outsourcing

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you

simply issue multiple times "plot()" with the give information, then
call pyplot.show(); something like

  import matplotlib.pyplot as plt

  for j in range(columns of matrix):
      plt.plot(<here put the X>, <here put the Y>)

  plt.show()

Regards,

···

On Tue, May 19, 2009 at 12:54, <sandeep.prasad@...2613...> wrote:

Could you help me with plotting the columns of a matrix vs it's index in 1
figure. S if i have an m *n matrix i have to have n plots in 1 figure.

--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

you can use

···

from pylab import plotfile, show

plotfile(“filename”, (0,1,2,3,4,5,6)) # for a 7 column data

show()


cheers,

Abhi

On Tue, May 19, 2009 at 12:54 PM, <sandeep.prasad@…2613…> wrote:

Dear matplotLib Users,

Could you help me with plotting the
columns of a matrix vs it’s index in 1 figure. S if i have an m *n matrix
i have to have n plots in 1 figure.

Regards,

Sandeep Prasad

Tata Consultancy Services

Plot No 1, Survey No. 64/2, Software Units Layout

Serilingampally Mandal, Madhapur

Hyderabad,Andhra Pradesh

India

Ph:- 04066673582

Cell:- 9640795927

Mailto: sandeep.prasad@…2613…

Website: http://www.tcs.com


Experience certainty. IT Services

   Business Solutions

            
   Outsourcing

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you

Crystal Reports - New Free Runtime and 30 Day Trial

Check out the new simplified licensing option that enables

unlimited royalty-free distribution of the report engine

for externally facing server and web deployment.

http://p.sf.net/sfu/businessobjects


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Sandro Tosi schrieb:

Could you help me with plotting the columns of a matrix vs it's index in 1
figure. S if i have an m *n matrix i have to have n plots in 1 figure.

simply issue multiple times "plot()" with the give information, then
call pyplot.show(); something like

It is not that complicated. matplotlib plots every column of a matrix as
separate line.

y = arange(25)
y.shape=(5,5)
plot(y)
# or with another
x = arange(10,15)
plot(x,y)
show()

hth Armin

···

On Tue, May 19, 2009 at 12:54, <sandeep.prasad@...2613...> wrote: