You can subscribe to this list here.
2003 
_{Jan}

_{Feb}

_{Mar}

_{Apr}

_{May}
(3) 
_{Jun}

_{Jul}

_{Aug}
(12) 
_{Sep}
(12) 
_{Oct}
(56) 
_{Nov}
(65) 
_{Dec}
(37) 

2005 
_{Jan}
(184) 
_{Feb}
(267) 
_{Mar}
(214) 
_{Apr}
(286) 
_{May}
(320) 
_{Jun}
(299) 
_{Jul}
(348) 
_{Aug}
(283) 
_{Sep}
(355) 
_{Oct}
(293) 
_{Nov}
(232) 
_{Dec}
(203) 
2008 
_{Jan}
(312) 
_{Feb}
(359) 
_{Mar}
(454) 
_{Apr}
(287) 
_{May}
(340) 
_{Jun}
(450) 
_{Jul}
(403) 
_{Aug}
(324) 
_{Sep}
(349) 
_{Oct}
(385) 
_{Nov}
(363) 
_{Dec}
(437) 
2009 
_{Jan}
(500) 
_{Feb}
(301) 
_{Mar}
(409) 
_{Apr}
(486) 
_{May}
(545) 
_{Jun}
(391) 
_{Jul}
(518) 
_{Aug}
(497) 
_{Sep}
(492) 
_{Oct}
(429) 
_{Nov}
(357) 
_{Dec}
(310) 
2011 
_{Jan}
(321) 
_{Feb}
(413) 
_{Mar}
(299) 
_{Apr}
(215) 
_{May}
(284) 
_{Jun}
(203) 
_{Jul}
(207) 
_{Aug}
(314) 
_{Sep}
(321) 
_{Oct}
(259) 
_{Nov}
(347) 
_{Dec}
(209) 
2006 
_{Jan}
(352) 
_{Feb}
(358) 
_{Mar}
(403) 
_{Apr}
(313) 
_{May}
(165) 
_{Jun}
(281) 
_{Jul}
(316) 
_{Aug}
(228) 
_{Sep}
(279) 
_{Oct}
(243) 
_{Nov}
(315) 
_{Dec}
(345) 
2010 
_{Jan}
(371) 
_{Feb}
(657) 
_{Mar}
(519) 
_{Apr}
(432) 
_{May}
(312) 
_{Jun}
(416) 
_{Jul}
(477) 
_{Aug}
(386) 
_{Sep}
(419) 
_{Oct}
(435) 
_{Nov}
(320) 
_{Dec}
(202) 
2004 
_{Jan}
(59) 
_{Feb}
(78) 
_{Mar}
(153) 
_{Apr}
(205) 
_{May}
(184) 
_{Jun}
(123) 
_{Jul}
(171) 
_{Aug}
(156) 
_{Sep}
(190) 
_{Oct}
(120) 
_{Nov}
(154) 
_{Dec}
(223) 
2012 
_{Jan}
(322) 
_{Feb}
(414) 
_{Mar}
(377) 
_{Apr}
(179) 
_{May}
(173) 
_{Jun}
(234) 
_{Jul}
(151) 
_{Aug}

_{Sep}

_{Oct}

_{Nov}

_{Dec}

2007 
_{Jan}
(260) 
_{Feb}
(323) 
_{Mar}
(340) 
_{Apr}
(319) 
_{May}
(290) 
_{Jun}
(296) 
_{Jul}
(221) 
_{Aug}
(292) 
_{Sep}
(242) 
_{Oct}
(248) 
_{Nov}
(242) 
_{Dec}
(332) 
S  M  T  W  T  F  S 




1
(9) 
2
(1) 
3
(4) 
4
(4) 
5
(9) 
6
(5) 
7
(12) 
8
(5) 
9
(27) 
10
(10) 
11
(4) 
12

13
(6) 
14
(12) 
15
(16) 
16
(13) 
17
(9) 
18
(1) 
19
(2) 
20
(4) 
21
(9) 
22
(5) 
23
(2) 
24
(6) 
25

26
(1) 
27
(9) 
28
(7) 
29
(2) 
30
(9) 


From: Daniel Mader <danielstefanmader@go...>  20110604 12:58:03

Hi, have you tried the examples that I have provided a couple days ago, see below? I cannot see why it should not work. These are the absolute basics that you need to understand. Btw, there is no need to use csv2rec unless you want/need column or row headers. Here's a full script that does what you want. Now, please take the time and work through the example that I have provided. In case you need further help, please don't start a new thread but reply to this one. Best regards, Daniel # * coding: utf8 * import matplotlib.pyplot as plt import pylab import scipy datafile1 = 'ch1_s1_lrr.csv' datafile2 = 'ch1_s1_baf.csv' ## create dummy data data = pylab.rand(10000,12) pylab.savetxt(datafile1, data, delimiter=';') pylab.savetxt(datafile2, data, delimiter=';') ## load data and transpose a1 = pylab.loadtxt(datafile1, comments='#', delimiter=';').T print 'loading', datafile1 b1 = pylab.loadtxt(datafile2, comments='#', delimiter=';').T print 'loading', datafile2 ## axis limits #v1 = [0,98760,0,1] #v2 = [0,98760,2,2] v1 = [0,1] v2 = [2,2] plt.close('all') plt.figure() plt.subplot(2,1,1) #plt.axis(v2) plt.ylim(v2) #plt.plot(a1, 'r.') for i in range(6): plt.plot(a1[i]) plt.subplot(2,1,2) #plt.axis(v1) plt.ylim(v1) #plt.plot(b1, 'b.') ## need masked arrays here ## http://physics.nmt.edu/~raymond/software/python_notes/paper003.html m = b1 >= 0.05 b1masked = scipy.ma.array(b1,mask=m) ## print first two cols print b1masked[0:2] for i in range(6,12): plt.plot(b1masked[i]) plt.show() 2011/6/3 Karthikraja Velmurugan <velmurugan.karthikraja@...>: > import matplotlib.pyplot as plt > import pylab > datafile1 = 'ch1_s1_lrr.csv' > datafile2 = 'ch1_s1_baf.csv' > > a1 = pylab.loadtxt(datafile1, comments='#', delimiter=';') > b1 = pylab.loadtxt(datafile2, comments='#', delimiter=';') > > v1 = [0,98760,0,1] > v2 = [0,98760,2,2] > > plt.figure(1) > > plt.subplot(2,1,1) > print 'loading', datafile1 > plt.axis(v2) > plt.plot(a1, 'r.') > > plt.subplot(2,1,2) > print 'loading', datafile2 > plt.axis(v1) > plt.plot(b1, 'b.') > > plt.show() 2011/5/30 Daniel Mader <danielstefanmader@...>: > Hi, > > the content of the CSV is stored as an array after reading. You can > simply access rows and columns like in Matlab: > > firstrow = a1[0] > firstcol = a1.T[0] > > The .T transposes the array. > > The second element of the third row would be > > elem32 = a1[2][1] > which is equivalent to > elem32 = a1[2,1] > > A range of e.g. rows 3 to 6 is > range36 = a1[2:6] > > Please have a look here for getting started with scipy/numpy: > http://pages.physics.cornell.edu/~myers/teaching/ComputationalMethods/python/arrays.html > and > http://www.scipy.org/NumPy_for_Matlab_Users > > Hope this helps, > Daniel > > 2011/5/27 Karthikraja Velmurugan <velmurugan.karthikraja@...>: >> Hello Daniel, >> >> The code you have given is simple and works fab. Thank you very much. But I >> wasn't able to find an example which accesses the columns of a CSV files >> when I import data through "datafile="filename.csv"" option. It will be >> great if you could help with accessing individual columns. What excatly I am >> looking for is to access individual coulmns (of the same CSV file), do >> calculations using the two coumns and plot them into seperate subplots of >> the same graph. >> I modified the script a lil bit. Please find it below: >> >> import matplotlib.pyplot as plt >> import pylab >> datafile1 = 'ch1_s1_lrr.csv' >> datafile2 = 'ch1_s1_baf.csv' >> a1 = pylab.loadtxt(datafile1, comments='#', delimiter=';') >> b1 = pylab.loadtxt(datafile2, comments='#', delimiter=';') >> v1 = [0,98760,0,1] >> v2 = [0,98760,2,2] >> plt.figure(1) >> plt.subplot(4,1,1) >> print 'loading', datafile1 >> plt.axis(v2) >> plt.plot(a1, 'r.') >> plt.subplot(4,1,2) >> print 'loading', datafile2 >> plt.axis(v1) >> plt.plot(b1, 'b.') >> plt.show() >> >> Thank you very much in advance for your time and suggestions. >> >> Karthik 
From: Nick Veitch <nick@ev...>  20110604 11:58:07

I have a small problem which I suspect can be solved in an easy and elegant way, and it is simply lack of sleep/stupidity preventing me from finding it. I have a number of line drawings comprised of cartesian points. I need to project them onto a sphere (they are drawings of constellations, so I need to project them onto an imaginary celestial sphere) and convert the points into sphercal coordinates. I *can* map the points to a sphere, that's no problem. But obviously, when I do this they become distorted. What I want to do is find out what the points should be to get an undistorted view  i.e the mapping that will produce a projection so the points match the cartesian version. Obviously, I realise this depends on the projection used etc, but basically, a small amount of distortion is fine. I am sure there must be a simple way to achieve this, but I can't seem to manage it.  Nick Veitch 
From: Nick Veitch <nick@ev...>  20110604 11:45:09

I have a small problem which I suspect can be solved in an easy and elegant way, and it is simply lack of sleep/stupidity preventing me from finding it. I have a number of line drawings comprised of cartesian points. I need to project them onto a sphere (they are drawings of constellations, so I need to project them onto an imaginary celestial sphere) and convert the points into sphercal coordinates. I *can* map the points to a sphere, that's no problem. But obviously, when I do this they become distorted. What I want to do is find out what the points should be to get an undistorted view  i.e the mapping that will produce a projection so the points match the cartesian version. Obviously, I realise this depends on the projection used etc, but basically, a small amount of distortion is fine. I am sure there must be a simple way to achieve this, but I can't seem to manage it.  Nick Veitch 
From: JaeJoon Lee <lee.joon@gm...>  20110604 05:46:55

The first argument of the "label" command is a list of artist to be labeled. And it does not matter whether they are associated with axes or not. What you can do, therefore, is 1) draw something as you want them in the legend 2) remove them from the axes 3) make a legend from these artists. l1, = plt.plot([1,2,3]) l1.remove() plt.legend([l1], ["test"]) If you know how to create artists w/o using axes method (or. pyplot function), you may do so of course. Regards, JJ On Thu, Jun 2, 2011 at 3:41 AM, htaunay <htaunay@...> wrote: > > Is there anyway to set/create legends independent of what I am plotting? > Simply manually create, position and show legends, that not necessarily are > directly linked to the graph. > > To be specific, I am plotting several points, in a scatter form, > individually, and depending on the given attributes, I manually set what > colour and marker each point will present. My intention is to create legends > that specify the categories of my data, in a way that I can manually define > what colour/marker they are linked to. > > Thanks in advance for any help! >  > View this message in context: http://old.nabble.com/IndependentLegendstp31752112p31752112.html > Sent from the matplotlib  users mailing list archive at Nabble.com. > > >  > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope  It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/questsfdev2dev > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers > 