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

2011-08-24 Thread mdekauwe
I wasn't quite able to follow exactly what you wanted to do but maybe this will help. I am going to generate some "data" that I think sounds a bit like yours, write it to a file, clearly you already have this. Then I am going to read it back in and plot it, e.g. import matplotlib.pyplot as plt im

Re: [Matplotlib-users] Axis cuts off part of displayed graphics for default limits.

2011-08-24 Thread Jeffrey Spencer
That does the trick. Didn't know where the clipping was occurring but couldn't find anything in plot so makes sense it was in the line. Assuming the comma just unpacks the tuple to get direct access to line. Thanks for the help On 25/08/11 03:23, Eric Firing wrote: > On 08/24/2011 06:53 AM, Jef

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

2011-08-24 Thread John Hunter
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 tried using FigCanvasAgg and figure.Figure, > the image that was responded by the web server (using canvas.print_png and

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

2011-08-24 Thread surfcast23
Thank you Gary. I will definitely read the numpy doucs Gary Ruben-2 wrote: > > As you show it, mass will be a string, so you'll need to convert it to > a float first, then add it to a list. You can then manipulate the > values in the list to compute your mean, or whatever, which matplotlib > ca

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

2011-08-24 Thread gary ruben
As you show it, mass will be a string, so you'll need to convert it to a float first, then add it to a list. You can then manipulate the values in the list to compute your mean, or whatever, which matplotlib can use as input to its plot() function or whichever type of plot you're after. Alternative

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

2011-08-24 Thread Aman Thakral
Hi, I've recently created a web application, using Django, to dynamically create maps from weather data. When I tried using FigCanvasAgg and figure.Figure, the image that was responded by the web server (using canvas.print_png and django.http.HttpResponse) did not show the map, just the scatter p

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

2011-08-24 Thread surfcast23
I am fairly new to programing and have a question regarding matplotlib. I wrote a python script that reads in data from the outfile of another program then prints out the data from one column. f = open( 'myfile.txt','r') for line in f: if line != ' ': line = line.strip() # Strips end of li

Re: [Matplotlib-users] Axis cuts off part of displayed graphics for default limits.

2011-08-24 Thread Eric Firing
On 08/24/2011 06:53 AM, Jeffrey Spencer wrote: > I created this graph below but if I set the y axis upper limit to 100. > It cuts off the top half of the dots which are at 100. I wasn't sure how > to get the dots to show properly like now but set the y-axis upper limit > to 100 instead of like 102.

[Matplotlib-users] Axis cuts off part of displayed graphics for default limits.

2011-08-24 Thread Jeffrey Spencer
I created this graph below but if I set the y axis upper limit to 100. It cuts off the top half of the dots which are at 100. I wasn't sure how to get the dots to show properly like now but set the y-axis upper limit to 100 instead of like 102. It makes the data look misleading to have that lit