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
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
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
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
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
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
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
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.
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