Re: [Matplotlib-users] how load data to Image from String?

2008-03-04 Thread sa6113
How use numpy in order to create Image object from string ? . . . size = canvas.get_width_height( ) buffer = canvas.tostring_rgb() img = numpy.empty(size,numpy.uint32) img = numpy.fromstring(buffer,numpy.uint32) img is an array , but I want an Image object (without using

[Matplotlib-users] How do I get Missing Modules?

2008-03-04 Thread Ssebuliba, J, Mnr [EMAIL PROTECTED]
Hi there, When I use; import matplotlib.pyplot as p, I get an error message; ImportError: No module named pyplot. So, how am I supposed to get these missing modules? Please note: I am using Linux (Ubuntu-gusty)! Regards, JOE.

Re: [Matplotlib-users] basemap scalebar

2008-03-04 Thread Jeff Whitaker
Michael Hearne wrote: Jeff - That would replicate the simple scale-bar from GMT. Below is my not-complete attempt at replicating the fancy scale bar. It would need some options for specifying different units (miles, nautical miles, etc.) and perhaps some more attention to spacing of the

Re: [Matplotlib-users] Using math text!

2008-03-04 Thread Michael Droettboom
It looks as if you're using 0.90.1. All of these issues are fixed in 0.91.2. If you can upgrade, that's probably your best bet. Or, if you have all the requirements, you can set text.usetex to True in your matplotlibrc which will use the real TeX on your system to typeset math -- that should

Re: [Matplotlib-users] How do I get Missing Modules?

2008-03-04 Thread Michael Droettboom
Like your last question, I think you're using the current release's documentation (0.91.2) with an old release (probably 0.90.1 or earlier). pyplot did not exist in 0.90.1, but I believe everything that is now in pyplot used to be in pylab, so you could just import that instead. Cheers, Mike

Re: [Matplotlib-users] basemap scalebar

2008-03-04 Thread Michael Hearne
Jeff - I think the way GMT does it would be okay - they have a latitude of true scale, which I usually choose as the center latitude of the map. I was thinking we should allow people to choose the simple or fancy options. Do you think it will be okay to have the height of the bar and

[Matplotlib-users] newbie question about interactive plotting

2008-03-04 Thread David Fox
I'm trying to use the pylab interface of matplotlib interactively. I'd like to enter some commands interactively to generate some data, plot a graph based on the data, inspect the graph, enter more interactive python, plot another graph, and so on. Instead, what happens is either (a) If I start

Re: [Matplotlib-users] how load data to Image from String?

2008-03-04 Thread sa6113
I need QImage in order to display or use in GUI , for exa. in QFrame or QLabel , I can convert the Image to QImage , but the problem is that I haven't access to Image object without saving that , also I can convert the figure (Plot) to string or buffer but I don't know what should I do after that