[Matplotlib-users] Details regarding TeX interpreter for different backends

2011-08-25 Thread Ole Jacob Hagen
Hi, I'm about to implement a TeX interpreter for the graphical backend to GNU Octave (http://www.octave.org). The rendering is in OpenGL context. As I understand it, matplotlib doesn't use OpenGL at all? Could you tell me about the design and work flow for the Tex/Latex interpreter and rendering

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-08-25 Thread surfcast23
Sorry everyone I totally missed something very important. What I need to do is first bin the masses(which I don't know how to do). Chelonian wrote: > > On Thu, Aug 25, 2011 at 10:01 PM, surfcast23 wrote: >> >> Hi, >> >>   there is only one column. so I want a plot of y and x. With y taking >>

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-08-25 Thread C M
On Thu, Aug 25, 2011 at 10:01 PM, surfcast23 wrote: > > Hi, > >   there is only one column. so I want a plot of y and x. With y taking > values running from 0 to n  or 7 in my example and x as the average of the > values that are contained in the rows in my example it was 5.57. It seems to me tha

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-08-25 Thread surfcast23
No problem thanks for helping mdekauwe wrote: > > Perhaps someone else can help as I feel I am being particularly dense. > > for i in xrange(numcols): > ax.plot([np.mean(mass[:,7]) for i in xrange(numcols)], > np.arange(numcols), label=i) > > This gives you what I think you s

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-08-25 Thread mdekauwe
Perhaps someone else can help as I feel I am being particularly dense. for i in xrange(numcols): ax.plot([np.mean(mass[:,7]) for i in xrange(numcols)], np.arange(numcols), label=i) This gives you what I think you said, but really don't think this is what you mean as it seems a

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-08-25 Thread surfcast23
Hi, there is only one column. so I want a plot of y and x. With y taking values running from 0 to n or 7 in my example and x as the average of the values that are contained in the rows in my example it was 5.57. mdekauwe wrote: > > still don't quite get this, so you want for each column t

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-08-25 Thread mdekauwe
still don't quite get this, so you want for each column the average? and you want to plot each of these averages? So a bar graph? with 8 bars? surfcast23 wrote: > > Hi, > >I apologize if my explanation was less than clear. What I have is data > in a column that runs from row 1 to row 1268

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-08-25 Thread surfcast23
Hi Ryan, I think your solution will work thank you!! I did get an error though it is " f.next()# You want to skip the first line, I guess. AttributeError: '_io.TextIOWrapper' object has no attribute 'next' " thank you Khary rcnelson wrote: > > If I understand your question corre

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-08-25 Thread surfcast23
Hi, I apologize if my explanation was less than clear. What I have is data in a column that runs from row 1 to row 1268. In each each row there is a number. For example 1 3 5 6 7 8 9 so I want the y axis to run from 1 to 7 ( the number of rows) and the x axis to be the average of the values

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-08-25 Thread Ryan Nelson
If I understand your question correctly, I may have a solution to your problem. First of all, the statement below, when converted to Python code, will generate an array of numbers the same length of your masses list. > 'y runs fron 0 to n where n == len(masses) ' However, this statement will give y

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-08-25 Thread mdekauwe
Hi, Well the first bit about wanting a specific column and the last bit about not wanting to print all the data in and read it back, you get that from the example I gave you. If you paste what I wrote for you line by line it should become clearer for you, additionally it avoids you have to write

[Matplotlib-users] Overlaying points on Matplotlib collection object?

2011-08-25 Thread pieplot
Hi, I create a collection item, add it to the current axis, and try to plot data points over it but the points do not show up. Here is my code: fig = plt.figure(figsize=(10,10)) ax = fig.gca() bb_collect = beachball.Beach([strike,dip,rake], linewidth=0.4, facecolor='gray', bgcolor='w

Re: [Matplotlib-users] How do you Plot data generated by a python script?

2011-08-25 Thread surfcast23
Hi Martin, Thank for the relpy. What I have is a script that reads the data from a large file then prints out the values listed in a particular column. What I now need to do is have the information in that column plotted as the number of rows vs. the mean value of all of the rows. What I ha

Re: [Matplotlib-users] Plotting using Basemap and FigCanvasAgg with Matplotlib on a web server

2011-08-25 Thread Aman Thakral
OK, so it seems to be working if I use fig=plt.figure() instead of fig = Figure() but I'm not sure why this is the case. -Aman On Thu, Aug 25, 2011 at 10:50 AM, Aman Thakral wrote: > Sorry about that. I've attached a sample script. > -Aman > > > On Wed, Aug 24, 2011 at 9:05 PM, John Hunter wro

Re: [Matplotlib-users] Plotting using Basemap and FigCanvasAgg with Matplotlib on a web server

2011-08-25 Thread Aman Thakral
Sorry about that. I've attached a sample script. -Aman On Wed, Aug 24, 2011 at 9:05 PM, John Hunter wrote: > > > > > On Aug 24, 2011, at 4:09 PM, Aman Thakral wrote: > > > Hi, > > > > I've recently created a web application, using Django, to dynamically > create maps from weather data. When I