Re: [Matplotlib-users] Savefig('file.pdf') error with latex custom font

2008-10-23 Thread David Krapohl
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.preamble : \usepackage{MinionPro},
  \renewcommand{\sfdefault}{Myriad-LF}
  It seems that the dviread backend does not find a specific *.vf,
  MinionPro-It--lcdfj.vf to be specific,
   file that is not needed in my opinion. Any ideas how to solve that?

 Is that a commercial font? What exact files are installed when you
 install that font in your texmf tree? Can dvipdfm/dvipdfmx/dvipdft
 create a pdf file from a dvi file that uses this font?


It is an adobe font that is bundled with the Acrobat Reader. It is an otf
font that was converted with cfftot1 to *.pfb postscript font. Font
metrics and scripts can be downloaded at
http://developer.berlios.de/projects/minionpro/
I use it very often and so far I didn't have problems.



 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 -
Followed by the same error message as in the first post. Unfortunately the
vf-file is not there but the tfm file. As far as I know does this file
describe the dotless-j for whatever reasons. So I think this particular file
is not very important for math output.


 --
 Jouni K. Seppänen
 http://www.iki.fi/jks


 -
 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=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


David Krapohl
-
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=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] imread() and binary PNGs

2008-10-23 Thread David Warde-Farley
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

-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-23 Thread Xavier Gnata
ok.
It is way better now but still:
http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2Fcharset=(detect+automatically)doctype=Inlinegroup=0

hum I should spend some time on this because:
http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2Fgallery.htmlcharset=(detect+automatically)doctype=Inlinegroup=0user-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=http%3A%2F%2Fmatplotlib.sourceforge.net%2Fcharset=(detect+automatically)doctype=Inlinegroup=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=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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 

Re: [Matplotlib-users] dynamic basemap

2008-10-23 Thread Jeff Whitaker
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 projection is the most suitable to handle
 anything from a 'global' plot to a zoom say over a state? I don't see the
 zoom being too tight, but global projections are likely. I personally prefer
 Equal Area, hence right now I'm working with 'aeqd', but I seem to have
 problems if the plot is global with that projection.

 Just looking for advice, opinions, and ideally examples if anyone has
 created a similar function / module to use in a web environment.

 Thanks!
 -john
   
John:  Sounds like you need one of the global cylindrical projections, 
such as cylindrical equidistant ('cyl'), miller ('mill') or mercator 
('merc').  In the svn version, you also have Gall Stereographic 
('gall').   See 
http://matplotlib.sourceforge.net/basemap/doc/html/users/mapsetup.html 
for examples.  Unfortunately, none of them are equal-area.  Mollweide 
('moll') is a global equal-area projection, but it's only global (you 
can't specify a domain that isn't global).  For the polar option, I 
suggest polar lambert azimuthal equal-area 
(http://matplotlib.sourceforge.net/basemap/doc/html/users/plaea.html).  
The user can specify whether he/she wants the south or north polar 
aspect, and the latitude of the outer edge.

-Jeff

-- 
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC  R/PSD1FAX   : (303)497-6449
325 BroadwayBoulder, CO, USA 80305-3328


-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] imread() and binary PNGs

2008-10-23 Thread Michael Droettboom
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 some serious mangling.

 Anyone know what's going on, or is it just that only RGBA PNG's are  
 supported?

 Thanks,

 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=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
   

-- 
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] list of tuples vs tuple of lists

2008-10-23 Thread Thomas Guettler
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

-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-23 Thread Michael Droettboom
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%2Fcharset=(detect+automatically)doctype=Inlinegroup=0
  


 hum I should spend some time on this because:
 http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2Fgallery.htmlcharset=(detect+automatically)doctype=Inlinegroup=0user-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=http%3A%2F%2Fmatplotlib.sourceforge.net%2Fcharset=(detect+automatically)doctype=Inlinegroup=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=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
   



-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA



Re: [Matplotlib-users] list of tuples vs tuple of lists

2008-10-23 Thread Michael Droettboom
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])

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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] interactive use?

2008-10-23 Thread Robin
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

-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How to use the set_clip_path with the imshow function

2008-10-23 Thread Michael Droettboom
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 the Agg backend.  
 Other backends (Ps, Pdf, Svg) may work, but I haven't tried that in a 
 while.

 I've spent a few tries trying to come up with the magic Agg 
 incantation to make this work.  It's not really documented in Agg, but 
 it should theoretically be possible.  It would take someone probably 
 to dig through the Agg source code and figure it out.  Any volunteers? ;)

 Cheers,
 Mike

 Federico Milano wrote:
 
 Dear All,

 I am a new user of python and of matplotlib, so, please excuse me if I
 am asking a trivial question.

 I am trying to use the funciton imshow to plot a temperature map of the
 voltage levels of an electrical grid.  After creating the grid data
 using meshgrid and griddata functions, imshow works nicely and
 fills up the whoe axes box.

 Since, I also have the border line of the electrical grid (in the form
 of a closed polygon coordinates), my next step is to clip the
 temperature map using this polygon as a patch.  Thus, I have created a
 Path instance with the polygon coordinates, subsequently, a PathPatch
 instance, say patch.

 Finally, I call the imshow function using the Artist options
 clip_on=True and clip_path=patch.  I was expecting that imshow would
 have filed up only the region inside the polygon, but imshow is still
 mapping the full figure axis box, i.e., the plots with and without the
 clip_path option are identical.

 What am I missing or doing wrong?

 Thank you very much in advance for any help,

 Best wishes,

 Federico



 - 

 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=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
   

-- 
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-23 Thread Ryan May
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=http%3A%2F%2Fmatplotlib.sourceforge.net%2Fcharset=(detect+automatically)doctype=Inlinegroup=0
  


 hum I should spend some time on this because:
 http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2Fgallery.htmlcharset=(detect+automatically)doctype=Inlinegroup=0user-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=http%3A%2F%2Fmatplotlib.sourceforge.net%2Fcharset=(detect+automatically)doctype=Inlinegroup=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=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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
 

Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-23 Thread John Hunter
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 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

-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] list of tuples vs tuple of lists

2008-10-23 Thread Brent Pedersen
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 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=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] GUI neutral animation example doesn't work with WxAgg/Wx

2008-10-23 Thread Tony S Yu
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.

-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] basemap with Python26

2008-10-23 Thread Mathew Yeates
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
-
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=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib-users Digest, Vol 29, Issue 48

2008-10-23 Thread Michael
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), ...]
   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)


signature.asc
Description: This is a digitally signed message part
-
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=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] GUI neutral animation example doesn't work with WxAgg/Wx

2008-10-23 Thread John Hunter
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 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

-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-23 Thread John Hunter
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 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

-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] re freshing plot in loop

2008-10-23 Thread joschu

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

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()
-- 
View this message in context: 
http://www.nabble.com/refreshing-plot-in-loop-tp20122473p20122473.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] interactive use?

2008-10-23 Thread beaubert
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é.


-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-23 Thread Ryan May
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 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

-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-23 Thread Michael Droettboom
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 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


-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Savefig('file.pdf') error with latex custom font

2008-10-23 Thread Jouni K . Seppänen
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 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


-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] basemap with Python26?

2008-10-23 Thread Yeates, Mathew C
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, 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/PSD1Email  : [EMAIL PROTECTED]
325 BroadwayOffice : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web: http://tinyurl.com/5telg


-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] ANN: matplotlib website 1.0

2008-10-23 Thread John Hunter
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
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

-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] GUI neutral animation example doesn't work with WxAgg/Wx

2008-10-23 Thread Tony S Yu

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

-
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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] imread() and binary PNGs

2008-10-23 Thread David Warde-Farley

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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] imread() and binary PNGs

2008-10-23 Thread Joshua Lippai
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 [EMAIL PROTECTED] 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=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 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=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users