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) |
|
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 |
From: Tony S Yu <to...@MI...> - 2008-10-23 15:31:21
|
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, y) >>> plt.show() After removing plt.ion(), a plot window is opened and the program doesn't end until the window is closed (as expected). If I use TkAgg or Qt4Agg (the only other GUI backends I have installed) the examples (above and below) work as expected. -Tony Full Example: #~~~~ import matplotlib matplotlib.use('WxAgg') import matplotlib.pyplot as plt import numpy as np plt.ion() x = np.arange(0, 2*np.pi, 0.01) line, = plt.plot(x, np.sin(x)) for i in np.arange(1, 20): line.set_ydata(np.sin(x + i/10.0)) plt.draw() #~~~~ PS. This seems to work the same on both trunk and 0.98.3. |
From: Brent P. <bpe...@gm...> - 2008-10-23 15:27:37
|
On Thu, Oct 23, 2008 at 6:35 AM, Michael Droettboom <md...@st...> 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 use Numpy arrays, of course, you could use slicing, which, IMHO, > is clearer: > > items = numpy.asarray(items) > ax.plot_date(items[:,0], items[:,1]) if items is a numpy array you can even do: >>> pylab.plot(*items.T) > > Mike > > 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. >> >> That's my personal problem, but I think a more pythonic >> API would be nice... >> >> Thomas >> >> > > -- > Michael Droettboom > Science Software Branch > Operations and Engineering Division > Space Telescope Science Institute > Operated by AURA for NASA > > > ------------------------------------------------------------------------- > 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: John H. <jd...@gm...> - 2008-10-23 15:05:47
|
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. JDH |
From: Ryan M. <rm...@gm...> - 2008-10-23 14:53:31
|
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. Ryan Michael Droettboom wrote: > 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=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%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=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fmatplotlib.sourceforge.net%2Fgallery.html&charset=(detect+automatically)&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.591 >> >> >> but this gallery is so nice... >> >> Xavier >> >>> This has now been fixed in SVN. >>> >>> index.html is the only page that includes hand-written HTML. If you >>> see any errors of this nature on other pages, please file bugs with >>> Sphinx and/or docutils. >>> >>> Cheers, >>> Mike >>> >>> Xavier Gnata wrote: >>>> Looks great but there are too many errors: >>>> http://validator.w3.org/check?uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fmatplotlib.sourceforge.net%2F&charset=(detect+automatically)&doctype=Inline&group=0 >>>> >>>> >>>> I'm not a geek and I do not care about w3c small warnings but it >>>> would be so nice to have a xhtml compliant website (as close as >>>> possible) >>>> >>>> From an "artistic" point of view, I would put more emphasis on the >>>> screenshot (pylab purpose is to produce *very* nice images...) >>>> >>>> xavier >>>> >>>> >>>> >>>>> We've been working behind the scenes on a new documentation system for >>>>> matplotlib, which integrates the web site, API documentation and PDF >>>>> guide into a single source of sphinx/rest documents which are easier >>>>> to maintain and extend, hopefully leading to better and more >>>>> up-to-date docs. >>>>> >>>>> We went live with the new site yesterday: >>>>> >>>>> http://matplotlib.sf.net >>>>> >>>>> so check it out and let us know if something is broken or missing. We >>>>> don't have everything that was on the old site (some stuff from the >>>>> FAQ, "what's new" and "user's guide" has not been ported over) but we >>>>> do have should be current, searchable, indexed and cross-linked. >>>>> >>>>> Thanks to Darren Dale who spear-headed the effort to use the sphinx >>>>> documentation, and to the developers who have contributed, especially >>>>> Michael Droettboom, who has developed several nice sphinx extensions >>>>> to do inheritance diagrams, syntax highlighting of ipython sessions, >>>>> and inline plotting. As an example we can include plots in our API >>>>> documentation, see >>>>> >>>>> >>>>> http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.acorr >>>>> >>>>> >>>>> We embed these plots with a "plot" directive that generates the >>>>> figures from external code at documentation build time, which >>>>> guarantees that the example code you see in the docs generate the >>>>> figures you see in the docs. For example, in the acorr docstring, all >>>>> we have to do is:: >>>>> >>>>> **Example:** >>>>> >>>>> .. plot:: ../mpl_examples/pylab_examples/xcorr_demo.py >>>>> >>>>> and the figure and source code links automagically appear in the docs. >>>>> >>>>> Because some of these extensions are generally useful, Michael, >>>>> Fernando and I have been working on a "sphinx_template" which contains >>>>> the template of a sphinx documentation project with these extensions >>>>> in place, so people who want to get started using sphinx (the official >>>>> documentation system for python, numpy, ipython and matplotlib) can do >>>>> so more easily. Right now it is available in svn >>>>> >>>>> > svn co >>>>> https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/py4science/examples/sphinx_template2 >>>>> >>>>> >>>>> and see the README in the checkout directory. Michael also did a talk >>>>> on matplotlib's use of sphinx and the sphinx template at the last >>>>> scipy conference. We're still waiting for the videos of the talks to >>>>> be posted (can someone poke someone?) but you can see the talk PDF >>>>> from the proceedings here: >>>>> >>>>> http://conference.scipy.org/proceedings/SciPy2008/paper_6/ >>>>> >>>>> JDH >>>>> >>>>> ------------------------------------------------------------------------- >>>>> >>>>> 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 >>>>> >>>> >>>> ------------------------------------------------------------------------- >>>> >>>> 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 >>>> > -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |
From: Yeates, M. C <mat...@jp...> - 2008-10-23 14:36:42
|
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 |