SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S



1
(8)
2
(11)
3
(4)
4
(6)
5
(13)
6
(30)
7
(21)
8
(9)
9
(19)
10
(4)
11
(5)
12
(14)
13
(19)
14
(22)
15
(12)
16
(15)
17
(14)
18
(1)
19
(1)
20
(11)
21
(9)
22
(18)
23
(39)
24
(12)
25
(7)
26
(13)
27
(18)
28
(3)
29
(5)
30
(12)
31
(10)

Showing results of 383

<< < 1 2 3 4 5 6 .. 16 > >> (Page 4 of 16)
From: Sandro T. <mo...@de...> - 2008年10月24日 12:33:00
On Fri, Oct 24, 2008 at 13:43, Angus McMorland <am...@gm...> wrote:
> 2008年10月24日 Lorenzo Isella <lor...@gm...>:
>> I am running Debian testing on my box. I had not used Python for about
>> a couple of weeks (during which I updated my system regularly) only to
>> find out that today I have a trouble if I try to import pylab. See
>> below what happens
> I'm guessing this is because you've recently upgraded to the latest
> testing version of mpl... and it's broken. If that's the case you need
> to upgrade to the unstable version (0.98.3-3) and all will work again.
Alternatively, you can download the version targetted for testing,
0.98.1-1+lenny3, from [1] (by hand, sorry).
[1] http://ftp.debian.org/debian/pool/main/m/matplotlib/
-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
From: Lorenzo I. <lor...@gm...> - 2008年10月24日 12:19:59
Perfect; that saved my day.
Many thanks
Lorenzo
2008年10月24日 Angus McMorland <am...@gm...>:
> 2008年10月24日 Lorenzo Isella <lor...@gm...>:
>> Dear All,
>> I am running Debian testing on my box. I had not used Python for about
>> a couple of weeks (during which I updated my system regularly) only to
>> find out that today I have a trouble if I try to import pylab. See
>> below what happens
>>
>> In [1]: import pylab as p
>> ---------------------------------------------------------------------------
>> ImportError Traceback (most recent call last)
>>
>> /home/iselllo/<ipython console> in <module>()
>>
>> /usr/lib/python2.5/site-packages/pylab.py in <module>()
>> ----> 1 from matplotlib.pylab import *
>> 2 import matplotlib.pylab
>> 3 __doc__ = matplotlib.pylab.__doc__
>>
>> /usr/lib/python2.5/site-packages/matplotlib/pylab.py in <module>()
>> 202 from numpy import ma
>> 203
>> --> 204 from matplotlib import mpl # pulls in most modules
>> 205
>> 206 from matplotlib.dates import date2num, num2date,\
>>
>> /usr/lib/python2.5/site-packages/matplotlib/mpl.py in <module>()
>> ----> 2 from matplotlib import axis
>> 3 from matplotlib import axes
>> 4 from matplotlib import cbook
>> 5 from matplotlib import collections
>> 6 from matplotlib import colors
>>
>> /usr/lib/python2.5/site-packages/matplotlib/axis.py in <module>()
>> 11 import matplotlib.patches as mpatches
>> 12 import matplotlib.scale as mscale
>> ---> 13 import matplotlib.text as mtext
>> 14 import matplotlib.ticker as mticker
>> 15 import matplotlib.transforms as mtransforms
>>
>> /usr/lib/python2.5/site-packages/matplotlib/text.py in <module>()
>> 17 from lines import Line2D
>> 18
>> ---> 19 import matplotlib.nxutils as nxutils
>> 20
>> 21 def _process_text_args(override, fontdict=None, **kwargs):
>>
>> ImportError: /usr/lib/python2.5/site-packages/matplotlib/nxutils.so:
>> undefined symbol: __gxx_personality_v0
>>
>> I have no idea of what is going on; I do not remember doing anything
>> funny with my Python installation.
>> Any help is really appreciated now, since without pylab many of my
>> codes are unusable.
>> Many thank in advance
>
> I'm guessing this is because you've recently upgraded to the latest
> testing version of mpl... and it's broken. If that's the case you need
> to upgrade to the unstable version (0.98.3-3) and all will work again.
>
> HTH,
>
> Angus.
>
>>
>> Lorenzo
>>
>> --
>> Free will does not consist in inverting the river flow, but in being
>> the fish that leaps upstream.
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
>
>
> --
> AJC McMorland
> Post-doctoral research fellow
> Neurobiology, University of Pittsburgh
>
-- 
Free will does not consist in inverting the river flow, but in being
the fish that leaps upstream.
From: Angus M. <am...@gm...> - 2008年10月24日 12:14:44
2008年10月24日 Lorenzo Isella <lor...@gm...>:
> Dear All,
> I am running Debian testing on my box. I had not used Python for about
> a couple of weeks (during which I updated my system regularly) only to
> find out that today I have a trouble if I try to import pylab. See
> below what happens
>
> In [1]: import pylab as p
> ---------------------------------------------------------------------------
> ImportError Traceback (most recent call last)
>
> /home/iselllo/<ipython console> in <module>()
>
> /usr/lib/python2.5/site-packages/pylab.py in <module>()
> ----> 1 from matplotlib.pylab import *
> 2 import matplotlib.pylab
> 3 __doc__ = matplotlib.pylab.__doc__
>
> /usr/lib/python2.5/site-packages/matplotlib/pylab.py in <module>()
> 202 from numpy import ma
> 203
> --> 204 from matplotlib import mpl # pulls in most modules
> 205
> 206 from matplotlib.dates import date2num, num2date,\
>
> /usr/lib/python2.5/site-packages/matplotlib/mpl.py in <module>()
> ----> 2 from matplotlib import axis
> 3 from matplotlib import axes
> 4 from matplotlib import cbook
> 5 from matplotlib import collections
> 6 from matplotlib import colors
>
> /usr/lib/python2.5/site-packages/matplotlib/axis.py in <module>()
> 11 import matplotlib.patches as mpatches
> 12 import matplotlib.scale as mscale
> ---> 13 import matplotlib.text as mtext
> 14 import matplotlib.ticker as mticker
> 15 import matplotlib.transforms as mtransforms
>
> /usr/lib/python2.5/site-packages/matplotlib/text.py in <module>()
> 17 from lines import Line2D
> 18
> ---> 19 import matplotlib.nxutils as nxutils
> 20
> 21 def _process_text_args(override, fontdict=None, **kwargs):
>
> ImportError: /usr/lib/python2.5/site-packages/matplotlib/nxutils.so:
> undefined symbol: __gxx_personality_v0
>
> I have no idea of what is going on; I do not remember doing anything
> funny with my Python installation.
> Any help is really appreciated now, since without pylab many of my
> codes are unusable.
> Many thank in advance
>
I'm guessing this is because you've recently upgraded to the latest
testing version of mpl... and it's broken. If that's the case you need
to upgrade to the unstable version (0.98.3-3) and all will work again.
HTH,
Angus.
> Lorenzo
>
> --
> Free will does not consist in inverting the river flow, but in being
> the fish that leaps upstream.
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
-- 
AJC McMorland
Post-doctoral research fellow
Neurobiology, University of Pittsburgh
From: Lorenzo I. <lor...@gm...> - 2008年10月24日 09:40:47
Dear All,
I am running Debian testing on my box. I had not used Python for about
a couple of weeks (during which I updated my system regularly) only to
find out that today I have a trouble if I try to import pylab. See
below what happens
In [1]: import pylab as p
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/iselllo/<ipython console> in <module>()
/usr/lib/python2.5/site-packages/pylab.py in <module>()
----> 1 from matplotlib.pylab import *
 2 import matplotlib.pylab
 3 __doc__ = matplotlib.pylab.__doc__
/usr/lib/python2.5/site-packages/matplotlib/pylab.py in <module>()
 202 from numpy import ma
 203
--> 204 from matplotlib import mpl # pulls in most modules
 205
 206 from matplotlib.dates import date2num, num2date,\
/usr/lib/python2.5/site-packages/matplotlib/mpl.py in <module>()
----> 2 from matplotlib import axis
 3 from matplotlib import axes
 4 from matplotlib import cbook
 5 from matplotlib import collections
 6 from matplotlib import colors
/usr/lib/python2.5/site-packages/matplotlib/axis.py in <module>()
 11 import matplotlib.patches as mpatches
 12 import matplotlib.scale as mscale
---> 13 import matplotlib.text as mtext
 14 import matplotlib.ticker as mticker
 15 import matplotlib.transforms as mtransforms
/usr/lib/python2.5/site-packages/matplotlib/text.py in <module>()
 17 from lines import Line2D
 18
---> 19 import matplotlib.nxutils as nxutils
 20
 21 def _process_text_args(override, fontdict=None, **kwargs):
ImportError: /usr/lib/python2.5/site-packages/matplotlib/nxutils.so:
undefined symbol: __gxx_personality_v0
I have no idea of what is going on; I do not remember doing anything
funny with my Python installation.
Any help is really appreciated now, since without pylab many of my
codes are unusable.
Many thank in advance
Lorenzo
-- 
Free will does not consist in inverting the river flow, but in being
the fish that leaps upstream.
From: joschu <sch...@gm...> - 2008年10月24日 03:33:14
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 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
>> -pylab
> 
> Animation in mpl is a bit tricky. Have you checked out the examples in 
> the examples/animation subdirectory of the current version? See also 
> http://www.scipy.org/Cookbook/Matplotlib/Animations
> 
> Eric
>> 
>> A similar problem was encountered here:
>> http://www.nabble.com/Plotting-loop-refuses-to-update-display-on-OS-X-td19818020.html
>> but I still don't know what to do.
>> 
>> ### teststuff.py
>> 
>> import pylab
>> import time
>> 
>> def testRef():
>> f = pylab.figure()
>> ax = pylab.gca()
>> pylab.show()
>> for x in range(10):
>> ax.axhline(x)
>> time.sleep(1)
>> # pylab.draw()
>> f.canvas.draw()
>> 
>> testRef()
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
-- 
View this message in context: http://www.nabble.com/refreshing-plot-in-loop-tp20122473p20143650.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Joshua L. <dis...@gm...> - 2008年10月23日 23:02:35
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 Thu, Oct 23, 2008 at 3:51 PM, Joshua Lippai <dis...@gm...> wrote:
> 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 file than reading each bit into a bool
> array yourself would be to import Image (PIL) and matplotlib.image to
> call the pil_to_array function on an Image.open'd object directly:
>
> import Image
> import matplotlib.image as image
> import pylab as p
> x = image.pil_to_array(Image.open('bin.png')); p.imshow(x); p.show()
>
>
> In the mean time, I'll see if the devel list has some better insight
> on the issue.
>
> Josh
>
> On Thu, Oct 23, 2008 at 1:52 PM, David Warde-Farley <dw...@cs...> wrote:
>>
>> 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 incident; my work around has been to
>> open with PIL and manually read each bit into a dtype=bool numpy array.
>>
>> b) I might add that what appears seems to be cyclic, making me think
>> that it's trying to read a few bytes for each pixel where in fact
>> there is only a single bit, and thus reading far less data than it's
>> expecting, and thus only has a few columns worth of pixels that is
>> somehow getting repeatedly referenced in the numpy array. This is all
>> just (mildly educated) guesswork though.
>>
>> David
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
From: Joshua L. <dis...@gm...> - 2008年10月23日 22:51:57
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 file than reading each bit into a bool
array yourself would be to import Image (PIL) and matplotlib.image to
call the pil_to_array function on an Image.open'd object directly:
import Image
import matplotlib.image as image
import pylab as p
x = image.pil_to_array(Image.open('bin.png')); p.imshow(x); p.show()
In the mean time, I'll see if the devel list has some better insight
on the issue.
Josh
On Thu, Oct 23, 2008 at 1:52 PM, David Warde-Farley <dw...@cs...> wrote:
>
> 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 incident; my work around has been to
> open with PIL and manually read each bit into a dtype=bool numpy array.
>
> b) I might add that what appears seems to be cyclic, making me think
> that it's trying to read a few bytes for each pixel where in fact
> there is only a single bit, and thus reading far less data than it's
> expecting, and thus only has a few columns worth of pixels that is
> somehow getting repeatedly referenced in the numpy array. This is all
> just (mildly educated) guesswork though.
>
> David
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: David Warde-F. <dw...@cs...> - 2008年10月23日 20:52:59
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 incident; my work around has been to 
open with PIL and manually read each bit into a dtype=bool numpy array.
	b) I might add that what appears seems to be cyclic, making me think 
that it's trying to read a few bytes for each pixel where in fact 
there is only a single bit, and thus reading far less data than it's 
expecting, and thus only has a few columns worth of pixels that is 
somehow getting repeatedly referenced in the numpy array. This is all 
just (mildly educated) guesswork though.
David
From: David Warde-F. <dw...@cs...> - 2008年10月23日 20:43:33
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('bin.png'); imshow(x)
produces a colourful plot that bears no resemblance to the original.
David
From: Eric F. <ef...@ha...> - 2008年10月23日 20:01:03
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 running it from ipython
> -pylab
Animation in mpl is a bit tricky. Have you checked out the examples in 
the examples/animation subdirectory of the current version? See also 
http://www.scipy.org/Cookbook/Matplotlib/Animations
Eric
> 
> A similar problem was encountered here:
> http://www.nabble.com/Plotting-loop-refuses-to-update-display-on-OS-X-td19818020.html
> but I still don't know what to do.
> 
> ### teststuff.py
> 
> import pylab
> import time
> 
> def testRef():
> f = pylab.figure()
> ax = pylab.gca()
> pylab.show()
> for x in range(10):
> ax.axhline(x)
> time.sleep(1)
> # pylab.draw()
> f.canvas.draw()
> 
> testRef()
From: Eric F. <ef...@ha...> - 2008年10月23日 19:58:17
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 a plot which has 25 horizontal arrows (although they look
> strange). It should give me a plot without any arrows. Is this a bug
> in matplotlib (I am using 0.98.3)?
Yes, it was fixed in svn.
Eric
From: Tony S Yu <to...@MI...> - 2008年10月23日 19:34:13
On Oct 23, 2008, at 12:00 PM, John Hunter wrote:
> On Thu, Oct 23, 2008 at 10:30 AM, Tony S Yu <to...@mi...> 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 is not supported or recommended. I need to
> update the cookbook, but if you want to do it that would be great as I
> am short on time until next week.
I'd be happy to help, but I'm not sure what had you in mind. Sorry I'm 
still a student---I need guidance. ;)
-Tony
From: Ryan M. <rm...@gm...> - 2008年10月23日 17:41:17
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 wrong, because the pyplot api page
>> doesn't show the example I added to the barbs docstring.
>> 
> It's probably just that John didn't rebuild matplotlib itself and then
> clean before republishing the docs. Your change works for me locally.
Thanks. Just wanted to make sure I wasn't being "a little special".
Ryan
-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
From: John H. <jd...@gm...> - 2008年10月23日 17:06:59
On Thu, Oct 23, 2008 at 11:44 AM, Michael Droettboom <md...@st...> 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
did install the latest mpl from src before building but it didn't
work. So I am going to see if touching the rst doc helps.
Yep -- just confirmed
 http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.barbs
 Unfortunately, I have to run catch a plane so I will not be able to
followup for a while.
JDH
From: Yeates, M. C <mat...@jp...> - 2008年10月23日 17:02:36
yes, thats the problem. I need ssl
Thx
Mathew
________________________________________
From: Jeff Whitaker [js...@fa...]
Sent: Thursday, October 23, 2008 10:01 AM
To: Yeates, Mathew C
Cc: mat...@li...
Subject: Re: [Matplotlib-users] basemap with Python26?
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
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/home/myeates/lib/python2.6/site-packages/mpl_toolkits/basemap/__init__.py", line 39, in <module>
> import _geoslib, pupynere, netcdftime
> File "/home/myeates/lib/python2.6/site-packages/mpl_toolkits/basemap/pupynere.py", line 37, in <module>
> from dap.client import open as open_remote
> File "/home/myeates/lib/python2.6/site-packages/dap/client.py", line 4, in <module>
> from dap.util.http import openurl
> File "/home/myeates/lib/python2.6/site-packages/dap/util/http.py", line 3, in <module>
> import httplib2
> File "/home/myeates/lib/python2.6/site-packages/httplib2/__init__.py", line 717, in <module>
> class HTTPSConnectionWithTimeout(httplib.HTTPSConnection):
> AttributeError: 'module' object has no attribute 'HTTPSConnection'
>
>
> anyone what this is about?
>
> Mathew
>
Mathew: I can't reproduce that with python 2.6 - I wonder perhaps if
your python 2.6 is missing SSL support?
Try this:
Python 2.6 (trunk:66714:66715M, Oct 1 2008, 18:36:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import ssl
 >>> import httplib
 >>> dir(httplib)
['ACCEPTED', 'BAD_GATEWAY', 'BAD_REQUEST', 'BadStatusLine', 'CONFLICT',
'CONTINUE', 'CREATED', 'CannotSendHeader', 'CannotSendRequest',
'EXPECTATION_FAILED', 'FAILED_DEPENDENCY', 'FORBIDDEN', 'FOUND',
'FakeSocket', 'GATEWAY_TIMEOUT', 'GONE', 'HTTP', 'HTTPConnection',
'HTTPException', 'HTTPMessage', 'HTTPResponse', 'HTTPS',
'HTTPSConnection', 'HTTPS_PORT', 'HTTP_PORT',
'HTTP_VERSION_NOT_SUPPORTED', 'IM_USED', 'INSUFFICIENT_STORAGE',
'INTERNAL_SERVER_ERROR', 'ImproperConnectionState', 'IncompleteRead',
'InvalidURL', 'LENGTH_REQUIRED', 'LOCKED', 'LineAndFileWrapper',
'MAXAMOUNT', 'METHOD_NOT_ALLOWED', 'MOVED_PERMANENTLY',
'MULTIPLE_CHOICES', 'MULTI_STATUS', 'NON_AUTHORITATIVE_INFORMATION',
'NOT_ACCEPTABLE', 'NOT_EXTENDED', 'NOT_FOUND', 'NOT_IMPLEMENTED',
'NOT_MODIFIED', 'NO_CONTENT', 'NotConnected', 'OK', 'PARTIAL_CONTENT',
'PAYMENT_REQUIRED', 'PRECONDITION_FAILED', 'PROCESSING',
'PROXY_AUTHENTICATION_REQUIRED', 'REQUESTED_RANGE_NOT_SATISFIABLE',
'REQUEST_ENTITY_TOO_LARGE', 'REQUEST_TIMEOUT', 'REQUEST_URI_TOO_LONG',
'RESET_CONTENT', 'ResponseNotReady', 'SEE_OTHER', 'SERVICE_UNAVAILABLE',
'SWITCHING_PROTOCOLS', 'StringIO', 'TEMPORARY_REDIRECT', 'UNAUTHORIZED',
'UNPROCESSABLE_ENTITY', 'UNSUPPORTED_MEDIA_TYPE', 'UPGRADE_REQUIRED',
'USE_PROXY', 'UnimplementedFileMode', 'UnknownProtocol',
'UnknownTransferEncoding', '_CS_IDLE', '_CS_REQ_SENT',
'_CS_REQ_STARTED', '_UNKNOWN', '__all__', '__builtins__', '__doc__',
'__file__', '__name__', '__package__', 'error', 'mimetools',
'py3kwarning', 'responses', 'socket', 'ssl', 'test', 'urlsplit', 'warnings']
 >>>
If the import ssl fails, you have your answer. In that case, there is
probably not https support in httplib.
-Jeff
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Jeff W. <js...@fa...> - 2008年10月23日 17:01:22
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
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/home/myeates/lib/python2.6/site-packages/mpl_toolkits/basemap/__init__.py", line 39, in <module>
> import _geoslib, pupynere, netcdftime
> File "/home/myeates/lib/python2.6/site-packages/mpl_toolkits/basemap/pupynere.py", line 37, in <module>
> from dap.client import open as open_remote
> File "/home/myeates/lib/python2.6/site-packages/dap/client.py", line 4, in <module>
> from dap.util.http import openurl
> File "/home/myeates/lib/python2.6/site-packages/dap/util/http.py", line 3, in <module>
> import httplib2
> File "/home/myeates/lib/python2.6/site-packages/httplib2/__init__.py", line 717, in <module>
> class HTTPSConnectionWithTimeout(httplib.HTTPSConnection):
> AttributeError: 'module' object has no attribute 'HTTPSConnection'
>
>
> anyone what this is about?
>
> Mathew
> 
Mathew: I can't reproduce that with python 2.6 - I wonder perhaps if 
your python 2.6 is missing SSL support?
Try this:
Python 2.6 (trunk:66714:66715M, Oct 1 2008, 18:36:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import ssl
 >>> import httplib
 >>> dir(httplib)
['ACCEPTED', 'BAD_GATEWAY', 'BAD_REQUEST', 'BadStatusLine', 'CONFLICT', 
'CONTINUE', 'CREATED', 'CannotSendHeader', 'CannotSendRequest', 
'EXPECTATION_FAILED', 'FAILED_DEPENDENCY', 'FORBIDDEN', 'FOUND', 
'FakeSocket', 'GATEWAY_TIMEOUT', 'GONE', 'HTTP', 'HTTPConnection', 
'HTTPException', 'HTTPMessage', 'HTTPResponse', 'HTTPS', 
'HTTPSConnection', 'HTTPS_PORT', 'HTTP_PORT', 
'HTTP_VERSION_NOT_SUPPORTED', 'IM_USED', 'INSUFFICIENT_STORAGE', 
'INTERNAL_SERVER_ERROR', 'ImproperConnectionState', 'IncompleteRead', 
'InvalidURL', 'LENGTH_REQUIRED', 'LOCKED', 'LineAndFileWrapper', 
'MAXAMOUNT', 'METHOD_NOT_ALLOWED', 'MOVED_PERMANENTLY', 
'MULTIPLE_CHOICES', 'MULTI_STATUS', 'NON_AUTHORITATIVE_INFORMATION', 
'NOT_ACCEPTABLE', 'NOT_EXTENDED', 'NOT_FOUND', 'NOT_IMPLEMENTED', 
'NOT_MODIFIED', 'NO_CONTENT', 'NotConnected', 'OK', 'PARTIAL_CONTENT', 
'PAYMENT_REQUIRED', 'PRECONDITION_FAILED', 'PROCESSING', 
'PROXY_AUTHENTICATION_REQUIRED', 'REQUESTED_RANGE_NOT_SATISFIABLE', 
'REQUEST_ENTITY_TOO_LARGE', 'REQUEST_TIMEOUT', 'REQUEST_URI_TOO_LONG', 
'RESET_CONTENT', 'ResponseNotReady', 'SEE_OTHER', 'SERVICE_UNAVAILABLE', 
'SWITCHING_PROTOCOLS', 'StringIO', 'TEMPORARY_REDIRECT', 'UNAUTHORIZED', 
'UNPROCESSABLE_ENTITY', 'UNSUPPORTED_MEDIA_TYPE', 'UPGRADE_REQUIRED', 
'USE_PROXY', 'UnimplementedFileMode', 'UnknownProtocol', 
'UnknownTransferEncoding', '_CS_IDLE', '_CS_REQ_SENT', 
'_CS_REQ_STARTED', '_UNKNOWN', '__all__', '__builtins__', '__doc__', 
'__file__', '__name__', '__package__', 'error', 'mimetools', 
'py3kwarning', 'responses', 'socket', 'ssl', 'test', 'urlsplit', 'warnings']
 >>>
If the import ssl fails, you have your answer. In that case, there is 
probably not https support in httplib.
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Jouni K. S. <jk...@ik...> - 2008年10月23日 16:53:04
"David Krapohl" <dav...@gm...> 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 an empty sequence
>>
>
> Yes, with --verbose-debug-annoying I can see that it stops at:
> find_tex_file: MinionPro-It--lcdfj.vf ->
I was able to reproduce the problem, and have fixed the immediate
problem, so you should no longer get an exception with the latest trunk
version of matplotlib. However, the output seems to have some encoding
problems. I will look into the encoding issue, but cannot promise any
particular time frame for a solution. 
If using the Postscript backend and then converting to pdf is an option
for you, it may be a workaround.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Michael D. <md...@st...> - 2008年10月23日 16:44:34
Ryan May wrote:
> John Hunter wrote:
> 
>> On Thu, Oct 23, 2008 at 10:51 AM, Ryan May <rm...@gm...> 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 any of this becomes live.
>>>
>>> 
>> 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 wrong, because the pyplot api page
> doesn't show the example I added to the barbs docstring.
> 
It's probably just that John didn't rebuild matplotlib itself and then 
clean before republishing the docs. Your change works for me locally.
Cheers,
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Ryan M. <rm...@gm...> - 2008年10月23日 16:40:24
John Hunter wrote:
> On Thu, Oct 23, 2008 at 10:51 AM, Ryan May <rm...@gm...> 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 any of this becomes live.
>>
> 
> 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 wrong, because the pyplot api page
doesn't show the example I added to the barbs docstring.
Ryan
-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
From: beaubert <fra...@un...> - 2008年10月23日 16:29:09
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
> clicking to be able to insert a text box or access properties of the
> axes etc like with Matlab.
>
> The programmatic interface is great - but, as just happened, I often
> find myself trying to drag the legend out of the way by force of
> habit!
>
> Thanks,
>
> Robin
Indeed this would be a terrific addition and enhancement to matplotlib
Francois
-- 
Ce message a été vérifié par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.
From: John H. <jd...@gm...> - 2008年10月23日 16:01:22
On Thu, Oct 23, 2008 at 10:51 AM, Ryan May <rm...@gm...> 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 any of this becomes live.
>
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!
JDH
From: John H. <jd...@gm...> - 2008年10月23日 16:00:09
On Thu, Oct 23, 2008 at 10:30 AM, Tony S Yu <to...@mi...> 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 is not supported or recommended. I need to
update the cookbook, but if you want to do it that would be great as I
am short on time until next week. The examples in examples/animation
are the recommended way:
 http://matplotlib.sourceforge.net/examples/user_interfaces/index.html
I have spent some time working on abstracting the necessary parts, eg
the idle handler, but have not completed this across interfaces.
JDH
From: Ryan M. <rm...@gm...> - 2008年10月23日 15:51:48
John Hunter wrote:
> On Thu, Oct 23, 2008 at 9:53 AM, Ryan May <rm...@gm...> 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 "plotting commands" on the main page
>> generated? Is it just the pyplot API? Right now I know at the very
>> least it does not list "barbs" as a plotting command.
> 
> Right now it is just manually generated and should cover the pyplot
> module and may be out of date. I started working on a set of tables,
> of all the commands in pylab, organized by the module they come from,
> with links to the docs (eg to the numpy docs for numpy commands) but
> haven't finished. If you would like to update anything missing from
> the table (doc/_templates/index.html) that would be great.
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 any of this becomes live.
Ryan
-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
From: Michael <mna...@bl...> - 2008年10月23日 15:50:27
On Thu, 2008年10月23日 at 13:34 +0000, 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), ...]
> matplotlib: ax.plot_date(dates, counts)
> 
> Finally I use something like this quite often:
> method([item[0] for item in items], [item[1] for item in items])
> But I think thats to much looping.
x=[(date1, count1), (date2, count2), ...]
dates,counts=zip(*x)
ax.plot_date(dates, counts)
> That's my personal problem, but I think a more pythonic
> API would be nice...
afaik its nothing to do with the matplotlib api: better to ask this on
the python channel where it features regularly
> Thomas
> 
> -- 
> Thomas Guettler, http://www.thomas-guettler.de/
> E-Mail: guettli (*) thomas-guettler + de
-- 
"When you think of the long and gloomy history of man, you will find far
more hideous crimes have been committed in the name of obedience than
have been committed in the name of rebellion". C.P.Snow,
"Either-Or" (1961)
From: Mathew Y. <mat...@gm...> - 2008年10月23日 15:48:28
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 "<stdin>", line 1, in <module>
 File
"/home/myeates/lib/python2.6/site-packages/mpl_toolkits/basemap/__init__.py",
line 39, in <module>
 import _geoslib, pupynere, netcdftime
 File
"/home/myeates/lib/python2.6/site-packages/mpl_toolkits/basemap/pupynere.py",
line 37, in <module>
 from dap.client import open as open_remote
 File "/home/myeates/lib/python2.6/site-packages/dap/client.py", line 4, in
<module>
 from dap.util.http import openurl
 File "/home/myeates/lib/python2.6/site-packages/dap/util/http.py", line 3,
in <module>
 import httplib2
File "/home/myeates/lib/python2.6/site-packages/httplib2/__init__.py", line
717, in <module>
 class HTTPSConnectionWithTimeout(httplib.HTTPSConnection):
AttributeError: 'module' object has no attribute 'HTTPSConnection'
anyone know what this is about?
Mathew
2 messages has been excluded from this view by a project administrator.

Showing results of 383

<< < 1 2 3 4 5 6 .. 16 > >> (Page 4 of 16)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /