I wasn't aware of those examples. I tried the first one and again it didn't
refresh.
I was able to get things working by switching my backend to Tcl. Previously
I was using wxpython, and I think there was a problem in the installation.
efiring wrote:
>
> joschu wrote:
>> My program runs throu
Actually, I should clarify something. The way imread is set up, since
the file is a PNG, it never goes through pil_to_array at all in
standard imread and instead gets passed to the handler _png.read_png.
Anyway, I'll take a closer peek inside the _png.cpp file once I get
some more time.
Josh
On T
David,
After playing around with this file and the various elements of
image.py, I've determined that the pil_to_array function in
matplotlib.image works just fine, so the place where the problem is
introduced in imread is the read_png function in matplotlib._png. So a
simpler work-around for this
On 23-Oct-08, at 4:43 PM, David Warde-Farley wrote:
> Sure; see http://morrislab.med.utoronto.ca/~dwf/bin.png
>
> In [12]: x = imread('bin.png'); imshow(x)
>
> produces a colourful plot that bears no resemblance to the original.
Two other things:
a) PIL can read in these without incide
On 23-Oct-08, at 8:50 AM, Michael Droettboom wrote:
> I'm not aware of that problem. It should convert any PNG implicitly
> to our native RGBA format. Can you provide a PNG file that
> illustrates the breakage?
Sure; see http://morrislab.med.utoronto.ca/~dwf/bin.png
In [12]: x = imread('b
joschu wrote:
> My program runs through a loop and is supposed to re-plot the graph after
> each step (which includes a pause of 1 second). I can't get the plot to
> refresh. I wrote the following simple program which has the same problem. I
> tried both draw() nor f.canvas.draw() works. I'm runni
Jesper Larsen wrote:
> Hi mpl users,
>
> I get some strange results when I make a quiver plot of a masked
> array. This script:
>
> from numpy.ma import zeros, masked_values
> from pylab import quiver, savefig
> a = masked_values(zeros((5,5)), 0)
> quiver(a,a)
> savefig('test.png')
>
> gives me
On Oct 23, 2008, at 12:00 PM, John Hunter wrote:
> On Thu, Oct 23, 2008 at 10:30 AM, Tony S Yu <[EMAIL PROTECTED]> wrote:
>> The GUI neutral animation example from the SciPy cookbook doesn't
>> seem
>> to work for Wx or WxAgg backends. A plot window opens but nothing
>> happens. It appears to b
Michael Droettboom wrote:
> Ryan May wrote:
>> John Hunter wrote:
>>> Yes, but it's pretty easy. To build and update from the docs dir, I
>>> just do
>>>
>>>
python make.py html sf
>>> I've pushed your changes out -- thanks!
>>>
>>
>> Thanks. Now, did I do something wron
On Thu, Oct 23, 2008 at 11:44 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> It's probably just that John didn't rebuild matplotlib itself and then clean
> before republishing the docs. Your change works for me locally.
I think the trick is I also have to "touch" the pymods_api.rst doc. I
yes, thats the problem. I need ssl
Thx
Mathew
From: Jeff Whitaker [EMAIL PROTECTED]
Sent: Thursday, October 23, 2008 10:01 AM
To: Yeates, Mathew C
Cc: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] basemap with Python26?
Yeates, Mat
Yeates, Mathew C wrote:
> Hi
> I'm getting the traceback
>
>
from mpl_toolkits.basemap import Basemap
>
> /home/myeates/lib/python2.6/site-packages/httplib2/__init__.py:44:
> DeprecationWarning: the sha module is deprecated; use the hashlib module
> instead
> import sha
>
"David Krapohl" <[EMAIL PROTECTED]> writes:
>> >From your backtrace, it looks like dviread fails to parse a tfm file:
>>
>> > File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line
>> 398,
>> > in __init__
>> > for char in range(0, max(tfm.width)) ]
>> > ValueError: max() arg is
Ryan May wrote:
> John Hunter wrote:
>
>> On Thu, Oct 23, 2008 at 10:51 AM, Ryan May <[EMAIL PROTECTED]> wrote:
>>
>>
>>> I've done it for barbs and I'll see if I notice anything else as time
>>> allows. Obviously I'm biased towards certain functionality. :) I'm
>>> guessing you guys have
John Hunter wrote:
> On Thu, Oct 23, 2008 at 10:51 AM, Ryan May <[EMAIL PROTECTED]> wrote:
>
>> I've done it for barbs and I'll see if I notice anything else as time
>> allows. Obviously I'm biased towards certain functionality. :) I'm
>> guessing you guys have to do regenerate the docs and push
On Thursday 23 October 2008 15:51:53 Robin wrote:
> Hi,
>
> I don't think this is possible - but I wanted to check in case I'm
> missing something.
>
> Is there a way of changing the appearance of the plot interactively?
> I'm thinking of things like dragging the position of a legend, right
> click
My program runs through a loop and is supposed to re-plot the graph after
each step (which includes a pause of 1 second). I can't get the plot to
refresh. I wrote the following simple program which has the same problem. I
tried both draw() nor f.canvas.draw() works. I'm running it from ipython
-p
Hi
I'm getting the traceback
>>> from mpl_toolkits.basemap import Basemap
/home/myeates/lib/python2.6/site-packages/httplib2/__init__.py:44:
DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha
Traceback (most recent call last):
File "", line 1, in
F
On Thu, Oct 23, 2008 at 10:51 AM, Ryan May <[EMAIL PROTECTED]> wrote:
> I've done it for barbs and I'll see if I notice anything else as time
> allows. Obviously I'm biased towards certain functionality. :) I'm
> guessing you guys have to do regenerate the docs and push them somewhere
> before a
On Thu, Oct 23, 2008 at 10:30 AM, Tony S Yu <[EMAIL PROTECTED]> wrote:
> The GUI neutral animation example from the SciPy cookbook doesn't seem
> to work for Wx or WxAgg backends. A plot window opens but nothing
> happens. It appears to be some weird problem with ion on wx.
>
GUI neutral animation
John Hunter wrote:
> On Thu, Oct 23, 2008 at 9:53 AM, Ryan May <[EMAIL PROTECTED]> wrote:
>> I'll comment that the new site looks absolutely awesome. I've turned
>> quite a few heads around here when I show people the new site and docs,
>> especially the gallery. Great work guys!
>>
>> One questio
On Thu, 2008-10-23 at 13:34 +, Thomas Guettler wrote:
> Hi,
>
> I use the API of matplotlib and have a basic problem:
>
> Up to now I am used to gather my data into a list of tuples. But
> matplotlib uses serveral lists instead.
>
> Example:
> me: [(date1, count1), (date2, count2), ...]
>
Hi
I'm getting the traceback
>>> from mpl_toolkits.basemap import Basemap
/home/myeates/lib/python2.6/site-packages/httplib2/__init__.py:44:
DeprecationWarning: the sha module is deprecated; use the hashlib module
instead
import sha
Traceback (most recent call last):
File "", line 1, in
Fi
The GUI neutral animation example from the SciPy cookbook doesn't seem
to work for Wx or WxAgg backends. A plot window opens but nothing
happens. It appears to be some weird problem with ion on wx.
For example, the following code will run and immediately close:
>>> plt.ion()
>>> plt.plot(x,
On Thu, Oct 23, 2008 at 6:35 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> You could use the (admittedly inscrutable) "unzip" technique:
>
> ax.plot_date(*zip(*items))
>
> See this blog post for explanation:
>
> http://paddy3118.blogspot.com/2007/02/unzip-un-needed-in-python.html
>
> If you u
On Thu, Oct 23, 2008 at 9:53 AM, Ryan May <[EMAIL PROTECTED]> wrote:
> I'll comment that the new site looks absolutely awesome. I've turned
> quite a few heads around here when I show people the new site and docs,
> especially the gallery. Great work guys!
>
> One question, how is the list of "plo
I'll comment that the new site looks absolutely awesome. I've turned
quite a few heads around here when I show people the new site and docs,
especially the gallery. Great work guys!
One question, how is the list of "plotting commands" on the main page
generated? Is it just the pyplot API? Right
This has now been fixed in SVN. See the
example/pylab_examples/image_clip_path.py for usage.
Mike
Federico Milano wrote:
> Dear Mike,
>
> thanks a lot for the information.
>
> Best wishes,
>
> Federico
>
>
>
> Michael Droettboom wrote:
>
>> Unfortunately, clip paths are not implemented for t
Hi,
I don't think this is possible - but I wanted to check in case I'm
missing something.
Is there a way of changing the appearance of the plot interactively?
I'm thinking of things like dragging the position of a legend, right
clicking to be able to insert a text box or access properties of the
You could use the (admittedly inscrutable) "unzip" technique:
ax.plot_date(*zip(*items))
See this blog post for explanation:
http://paddy3118.blogspot.com/2007/02/unzip-un-needed-in-python.html
If you use Numpy arrays, of course, you could use slicing, which, IMHO,
is clearer:
items = numpy.a
Hi Michael,
2008/10/22 Michael Droettboom <[EMAIL PROTECTED]>:
> You need to "rewind" the StringIO cursor before opening with PIL:
>
> imgdata = StringIO.StringIO()
> fig.savefig(imgdata, format='png')
> imgdata.seek(0)
> im = Image.open(imgdata)
Thanks. It works fine now.
Best regards,
Jesper
Fixed. These errors were all in new content.
Any comments on the content? ... :)
Xavier Gnata wrote:
> ok.
> It is way better now but still:
> http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2F&charset=(detect+automatically)&doctype=Inline&group=0
>
>
>
> hum I should
Hi,
I use the API of matplotlib and have a basic problem:
Up to now I am used to gather my data into a list of tuples. But
matplotlib uses serveral lists instead.
Example:
me: [(date1, count1), (date2, count2), ...]
matplotlib: ax.plot_date(dates, counts)
Finally I use something like this q
I'm not aware of that problem. It should convert any PNG implicitly to
our native RGBA format. Can you provide a PNG file that illustrates the
breakage?
Mike
David Warde-Farley wrote:
> Howdy,
>
> I noticed that MPL's imread() command, when applied to binary (1-bit
> grayscale) PNGs does so
Hi mpl users,
I get some strange results when I make a quiver plot of a masked
array. This script:
from numpy.ma import zeros, masked_values
from pylab import quiver, savefig
a = masked_values(zeros((5,5)), 0)
quiver(a,a)
savefig('test.png')
gives me a plot which has 25 horizontal arrows (althou
John [H2O] wrote:
> Hello,
>
> I'm creating a web application that will take user input from a javascript
> map to give me bounding coordinates (i.e. urcrnrlat, urcrnrlon, llcrnrlat,
> llcrnrlon) and possibly a switch for polar projection. Other than that I
> have no further information. Which pro
ok.
It is way better now but still:
http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2F&charset=(detect+automatically)&doctype=Inline&group=0
hum I should spend some time on this because:
http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2Fgallery.h
Howdy,
I noticed that MPL's imread() command, when applied to binary (1-bit
grayscale) PNGs does some serious mangling.
Anyone know what's going on, or is it just that only RGBA PNG's are
supported?
Thanks,
David
-
Thi
On Thu, Oct 23, 2008 at 7:04 AM, Jouni K. Seppänen <[EMAIL PROTECTED]> wrote:
> "David Krapohl" <[EMAIL PROTECTED]>
> writes:
>
> > I am getting an error with savefig and pdf when I try to used matplotlib
> > with latex font rendering (attached below). In etc/matplotlibrc, I set
> > text.latex.pre
39 matches
Mail list logo