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: 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=http%3A%2F%2Fmatplotlib.sourceforge.net%2F&charset=(detect+automatically)&doctype=Inline&group=0 >> >> >> hum I should spend some time on this because: >> http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2Fgallery.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=http%3A%2F%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
|
|
From: Michael D. <md...@st...> - 2008-10-23 14:17:01
|
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=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 > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
|
From: Robin <ro...@gm...> - 2008-10-23 13:52:03
|
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 |
|
From: Michael D. <md...@st...> - 2008-10-23 13:35:41
|
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 |
|
From: Jesper L. <jes...@gm...> - 2008-10-23 13:34:56
|
Hi Michael, 2008/10/22 Michael Droettboom <md...@st...>: > You need to "rewind" the StringIO cursor before opening with PIL: > > imgdata = StringIO.StringIO() > fig.savefig(imgdata, format='png') > imgdata.seek(0) > im = Image.open(imgdata) Thanks. It works fine now. Best regards, Jesper |
|
From: Michael D. <md...@st...> - 2008-10-23 13:30:50
|
Fixed. These errors were all in new content. Any comments on the content? ... :) Xavier Gnata wrote: > ok. > It is way better now but still: > http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2F&charset=(detect+automatically)&doctype=Inline&group=0 > > > hum I should spend some time on this because: > http://validator.w3.org/check?uri=http%3A%2F%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=http%3A%2F%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 >>> >> > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
|
From: Thomas G. <hv...@tb...> - 2008-10-23 13:23:09
|
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 |
|
From: Michael D. <md...@st...> - 2008-10-23 12:51:18
|
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=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > 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 |
|
From: Jesper L. <jes...@gm...> - 2008-10-23 12:45:53
|
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)?
Best regards,
Jesper
|
|
From: Jeff W. <js...@fa...> - 2008-10-23 11:16:43
|
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/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328
|
|
From: Xavier G. <xav...@gm...> - 2008-10-23 09:39:39
|
ok. It is way better now but still: http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2F&charset=(detect+automatically)&doctype=Inline&group=0 hum I should spend some time on this because: http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2Fgallery.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=http%3A%2F%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 >> > |
|
From: David Warde-F. <dw...@cs...> - 2008-10-23 09:28:02
|
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 |
|
From: David K. <dav...@gm...> - 2008-10-23 07:22:21
|
On Thu, Oct 23, 2008 at 7:04 AM, Jouni K. Seppänen <jk...@ik...> wrote:
> "David Krapohl" <dav...@gm...>
> 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=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
David Krapohl |
|
From: Jouni K. S. <jk...@ik...> - 2008-10-23 05:05:22
|
"David Krapohl" <dav...@gm...>
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?
>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
--
Jouni K. Seppänen
http://www.iki.fi/jks
|
|
From: joschu <sch...@gm...> - 2008-10-23 00:47:10
|
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. |
|
From: John [H2O] <was...@gm...> - 2008-10-22 23:19:49
|
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 -- View this message in context: http://www.nabble.com/dynamic-basemap-tp20121594p20121594.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: David K. <dav...@gm...> - 2008-10-22 20:23:35
|
Hello,
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?
Thanks,
David
------------------------------------------------------------------------------------
Traceback (most recent call
last):
File "niotrode_tipz.py", line 71, in
<module>
p.savefig('niotrode_impedance_plot.pdf')
File "/usr/lib/python2.5/site-packages/matplotlib/pyplot.py", line 342, in
savefig
return fig.savefig(*args,
**kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line 964, in
savefig
self.canvas.print_figure(*args,
**kwargs)
File
"/usr/lib/python2.5/site-packages/matplotlib/backends/backend_qt4agg.py",
line 147, in
print_figure
FigureCanvasAgg.print_figure(self, *args,
**kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/backend_bases.py", line
1310, in print_figure
**kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/backend_bases.py", line
1204, in print_pdf
return pdf.print_pdf(*args,
**kwargs)
File
"/usr/lib/python2.5/site-packages/matplotlib/backends/backend_pdf.py", line
1864, in print_pdf
self.figure.draw(renderer)
File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line 759, in
draw
for a in self.axes:
a.draw(renderer)
File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 1523, in
draw
a.draw(renderer)
File "/usr/lib/python2.5/site-packages/matplotlib/axis.py", line 733, in
draw
self.label.draw(renderer)
File "/usr/lib/python2.5/site-packages/matplotlib/text.py", line 299, in
draw
bbox, info =
self._get_layout(renderer)
File "/usr/lib/python2.5/site-packages/matplotlib/text.py", line 199, in
_get_layout
line, self._fontproperties,
ismath=self.is_math_text(line))
File
"/usr/lib/python2.5/site-packages/matplotlib/backends/backend_pdf.py", line
1560, in
get_text_width_height_descent
page =
iter(dvi).next()
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 62, in
__iter__
have_page =
self._read()
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 119,
in _read
self._dispatch(byte)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 207,
in _dispatch
self._fnt_def(k, c, s, d, a, l,
n)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 368,
in _fnt_def
vf =
_vffile(n[-l:])
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 779,
in _vffile
return _fontfile(texname, Vf, '.vf', _vfcache)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 768,
in _fontfile
result = class_(filename)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 437,
in __init__
self._read()
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 119,
in _read
self._dispatch(byte)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 466,
in _dispatch
Dvi._dispatch(self, byte)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 207,
in _dispatch
self._fnt_def(k, c, s, d, a, l, n)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 504,
in _fnt_def
Dvi._fnt_def(self, k, *args)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 368,
in _fnt_def
vf = _vffile(n[-l:])
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 779,
in _vffile
return _fontfile(texname, Vf, '.vf', _vfcache)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 768,
in _fontfile
result = class_(filename)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 437,
in __init__
self._read()
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 119,
in _read
self._dispatch(byte)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 466,
in _dispatch
Dvi._dispatch(self, byte)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 207,
in _dispatch
self._fnt_def(k, c, s, d, a, l, n)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 504,
in _fnt_def
Dvi._fnt_def(self, k, *args)
File "/usr/lib/python2.5/site-packages/matplotlib/dviread.py", line 370,
in _fnt_def
self.fonts[k] = DviFont(scale=s, tfm=tfm, texname=n, vf=vf)
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
|
|
From: Michael D. <md...@st...> - 2008-10-22 19:49:04
|
Jesper Larsen wrote:
> Hi mpl users,
>
> I am trying to save a figure to a file like object (a StringIO object)
> and load this object into PIL (Python Imaging Library). The code for
> this is really simple (fig is my figure object):
>
> # This works
> fig.savefig('test.png', format='png')
> im = Image.open('test.png')
>
> # This fails
> imgdata = StringIO.StringIO()
> fig.savefig(imgdata, format='png')
> im = Image.open(imgdata)
>
> File "/home/jl/testfile.py", line 551, in contour
> im = Image.open(imgdata)
> File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1916, in open
> raise IOError("cannot identify image file")
> IOError: cannot identify image file
>
You need to "rewind" the StringIO cursor before opening with PIL:
imgdata = StringIO.StringIO()
fig.savefig(imgdata, format='png')
imgdata.seek(0)
im = Image.open(imgdata)
Hope that helps,
Mike
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
|
|
From: Jesper L. <jes...@gm...> - 2008-10-22 19:40:20
|
Hi mpl users,
I am trying to save a figure to a file like object (a StringIO object)
and load this object into PIL (Python Imaging Library). The code for
this is really simple (fig is my figure object):
# This works
fig.savefig('test.png', format='png')
im = Image.open('test.png')
# This fails
imgdata = StringIO.StringIO()
fig.savefig(imgdata, format='png')
im = Image.open(imgdata)
File "/home/jl/testfile.py", line 551, in contour
im = Image.open(imgdata)
File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1916, in open
raise IOError("cannot identify image file")
IOError: cannot identify image file
Does anyone know what I am doing wrong? I would really like to avoid
putting the image on disk before opening it in PIL since I am using
the code in a web application where speed is important.
Best regards,
Jesper
|
|
From: John H. <jd...@gm...> - 2008-10-22 18:51:28
|
On Wed, Oct 22, 2008 at 1:38 PM, Anthony Floyd <ant...@gm...> wrote: > On Wed, Oct 22, 2008 at 11:00 AM, Michael Droettboom <md...@st...> wrote: >> Some of the documentation has not yet been reformatted to reST for Sphinx. >> >> There is a status page here: >> >> http://matplotlib.sourceforge.net/devel/outline.html > > Ah, thanks! > > [snip] > >> As to whether we provide the old docs in parallel -- I'll leave that >> question to the John or others. I think it is a good idea to put a copy of the pydoc autogenerated module docs up, but I won't be able to get to it until next week. Ditto for the old user's guide. In the meantime, I've added matplotlib.ticker to the new docs: http://matplotlib.sourceforge.net/api/ticker_api.html JDH |
|
From: Anthony F. <ant...@gm...> - 2008-10-22 18:39:06
|
On Wed, Oct 22, 2008 at 11:00 AM, Michael Droettboom <md...@st...> wrote: > Some of the documentation has not yet been reformatted to reST for Sphinx. > > There is a status page here: > > http://matplotlib.sourceforge.net/devel/outline.html Ah, thanks! [snip] > As to whether we provide the old docs in parallel -- I'll leave that > question to the John or others. I think that it's critical that documentation is not 'lost' (even temporarily) during the conversion process. Especially for novices or even for just quick class-checking for advanced users. And while I suppose people who really need the documentation will run epydoc against it themselves (guilty) it seems odd to have a reduction of information on the website. Just my $0.02. Keep up the good work! A> |