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
(2) |
|
2
(4) |
3
(21) |
4
(4) |
5
(13) |
6
(28) |
7
(11) |
8
(2) |
|
9
|
10
(11) |
11
(5) |
12
|
13
(5) |
14
(25) |
15
(4) |
|
16
(1) |
17
(7) |
18
(15) |
19
(21) |
20
(27) |
21
(11) |
22
(1) |
|
23
(1) |
24
(3) |
25
(9) |
26
(13) |
27
(19) |
28
(11) |
29
(4) |
|
30
(4) |
31
(11) |
|
|
|
|
|
|
From: Randewijk P-J, M. <pjr...@su...> - 2005-10-19 07:52:01
|
Dear win32 users,
Line 1089 in the file Johan send out, needs to be changed to:
command =3D 'latex -interaction=3Dnonstopmode "%s"' % =
texfile
Or see attached...
Kind regards,
Peter-Jan Randewijk
-----Original Message-----
From: John Hunter [mailto:jdh...@ac...]=20
Sent: 19 October 2005 04:20
To: Randewijk P-J, Mnr <pjr...@su...>
Cc: mat...@li...
Subject: Re: [Matplotlib-users] savefig(epsfilename) Bug on XP
>>>>> ""Randewijk" =3D=3D "Randewijk P-J, Mnr <pjr...@su...>"
>>>>> <pjr...@su...> writes:
"Randewijk> Dear (newbie like myself) XP or more specific win32
"Randewijk> users, The problem was not with the 'dvips' command,
"Randewijk> but with the 'latex' command in version 0.83.2.
"Randewijk> After changing the line 1086 in backend_ps.py 0.83.2
"Randewijk> to read:
I've made the suggested changes to backend_ps.py. Because I don't have
access to a win32 box with TeX, could I ask win32 / TeX users to test
the attached backend_ps file to make sure it is OK?
|
|
From: Kristen K. <co...@fy...> - 2005-10-19 07:30:40
|
Hi folks I can still not succeed saving my figures in ps or eps format with the new ps backend file you send out. I'm using python 2.4, mpl .84. Have tried with both Numeric and numarray. Kristen ----- Original Message ----- From: "John Hunter" <jdh...@ac...> To: <pjr...@su...> Cc: <mat...@li...> Sent: Wednesday, October 19, 2005 4:20 AM Subject: Re: [Matplotlib-users] savefig(epsfilename) Bug on XP >>>>>> ""Randewijk" == "Randewijk P-J, Mnr <pjr...@su...>" >>>>>> <pjr...@su...> writes: > > "Randewijk> Dear (newbie like myself) XP or more specific win32 > "Randewijk> users, The problem was not with the 'dvips' command, > "Randewijk> but with the 'latex' command in version 0.83.2. > > "Randewijk> After changing the line 1086 in backend_ps.py 0.83.2 > "Randewijk> to read: > > I've made the suggested changes to backend_ps.py. Because I don't > have access to a win32 box with TeX, could I ask win32 / TeX users to > test the attached backend_ps file to make sure it is OK? > > |
|
From: Robert K. <rk...@uc...> - 2005-10-19 05:59:28
|
Chris Barker wrote: > Robert Kern wrote: > >> qhull, for example, is a real PITA in this regard. > > Darn, it looked pretty promising from the web site. It's not. It's well-known to be a bad library. There's a Python interface to qhull, but it uses pipes to communicate with a separate qhull process. >> In any case, natgrid isn't Delaunay triangulation, but natural neighbors >> interpolation which is better (and probably state of the art for these >> kinds of graphics). > > Although there are other uses for delaunay triangulization, so it would > be nice to have a python lib that does it well. > > What about Jonathan Shewchuk's Triangle? I don't know how clean the code > is but it's fast and powerful. As for license: > > """ > Please note that although Triangle is freely available, it is > copyrighted by the author and may not be sold or included in commercial > products without a license. > """ > > I wish he'd just a pick a license and be done with it, but given that > Python. MPL, and SciPy are not commercial, he'd probably be OK with it. MPL and Scipy won't take code that can't be redistributed commercially (much less proprietarily). There's no indication that Shewchuk will allow that. -- Robert Kern rk...@uc... "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter |
|
From: Chris B. <Chr...@no...> - 2005-10-19 05:43:52
|
Robert Kern wrote:
> qhull, for example, is a real PITA in this regard.
Darn, it looked pretty promising from the web site.
> In any case, natgrid isn't Delaunay triangulation, but natural neighbors
> interpolation which is better (and probably state of the art for these
> kinds of graphics).
Although there are other uses for delaunay triangulization, so it would
be nice to have a python lib that does it well.
What about Jonathan Shewchuk's Triangle? I don't know how clean the code
is but it's fast and powerful. As for license:
"""
Please note that although Triangle is freely available, it is
copyrighted by the author and may not be sold or included in commercial
products without a license.
"""
I wish he'd just a pick a license and be done with it, but given that
Python. MPL, and SciPy are not commercial, he'd probably be OK with it.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
|
|
From: Robert K. <rk...@uc...> - 2005-10-19 02:58:04
|
John Hunter wrote: >>>>>>"Robert" == Robert Kern <rk...@uc...> writes: > > Robert> In any case, natgrid isn't Delaunay triangulation, but > Robert> natural neighbors interpolation which is better (and > Robert> probably state of the art for these kinds of graphics). It > Robert> might be easiest to contact Dave Watson and ask if we can > Robert> distribute his code in matplotlib under matplotlib's > Robert> license. I can't find any contact information for him, > Robert> however. > > I'm all for this but am not optimistic. It's my understanding that > the NCAR folks are under a fairly heavy legal burden. Jeff: could you > spearhead this effort and see if there is any interest on their part > in relicensing their griddata code under a more permissive license? It's not NCAR's code, it's Dave Watson's. NCAR got permission to distribute the natgrid code under the GPL. We'd need to get independent permission from Dave Watson to distribute the code under the matplotlib license. -- Robert Kern rk...@uc... "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter |
|
From: John H. <jdh...@ac...> - 2005-10-19 02:53:16
|
>>>>> "Robert" == Robert Kern <rk...@uc...> writes:
Robert> In any case, natgrid isn't Delaunay triangulation, but
Robert> natural neighbors interpolation which is better (and
Robert> probably state of the art for these kinds of graphics). It
Robert> might be easiest to contact Dave Watson and ask if we can
Robert> distribute his code in matplotlib under matplotlib's
Robert> license. I can't find any contact information for him,
Robert> however.
I'm all for this but am not optimistic. It's my understanding that
the NCAR folks are under a fairly heavy legal burden. Jeff: could you
spearhead this effort and see if there is any interest on their part
in relicensing their griddata code under a more permissive license?
JDH
|
|
From: Robert K. <rk...@uc...> - 2005-10-19 02:40:50
|
John Hunter wrote: >>>>>>"Jeff" == Jeff Whitaker <js...@fa...> writes: > > Jeff> John: I've now a got a toolkit built with no CDAT code in > Jeff> it, using the NCAR natgrid library which is GPL. I've done a > Jeff> fair amount of searching and haven't found anything else > Jeff> that provides similar functionality with better > Jeff> (i.e. BSD-like) licensing. The prototype natgrid toolkit is > Jeff> at /Public/jsw/natgrid-0.1.tar.gz if you'd like to take a > Jeff> look. All it does is provide a single function, griddata, > Jeff> which works much the same as the matlab version. I'm ready > Jeff> to put it CVS if you give the go ahead. > > I'm hesitant to include any GPL code even as a toolkit. For one > thing, it decreases the impetus for someone to provide a version that > is compatible with the mpl license. Perhaps this would be better > placed on the wiki? > > I know that VTK is BSD compatible and has delaunay triangulation, but > obviously it is impractical to try and pull anything out of VTK. I > think the qhull license is less restrictive: > http://www.qhull.org/COPYING.txt. In short, I wonder if we have > really exhausted all the possibilities. Something from netlib? > There was a recent thread on scipy in which Eric Jones posted a link > to some code (FORTRAN I believe) that does something analogous. It > would be nice to have something in C/C++ and something that is BSD > compatible. Perhaps I'm dreaming. I've spent time looking. Everything that I've found with a BSD-like license isn't a very good library. Global variables are usually the culprit. qhull, for example, is a real PITA in this regard. The code that Eric found was from ACM TOMS, I believe, and so I'd question its license. In any case, natgrid isn't Delaunay triangulation, but natural neighbors interpolation which is better (and probably state of the art for these kinds of graphics). It might be easiest to contact Dave Watson and ask if we can distribute his code in matplotlib under matplotlib's license. I can't find any contact information for him, however. -- Robert Kern rk...@uc... "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter |
|
From: John H. <jdh...@ac...> - 2005-10-19 02:26:52
|
>>>>> "Willi" == Willi Richert <w.r...@gm...> writes:
>> Does it matter if you put the x and y label calls *after* the
>> errorbar command?
Willi> Unfortunately, no.
OK, at this point all I can suggest is that you post your data file
with the complete script so that we can see if we can reproduce it on
our end. If we can reproduce it, there is a good chance we can fix
it.
Thanks,
JDH
|
|
From: John H. <jdh...@ac...> - 2005-10-19 02:23:28
|
>>>>> ""Randewijk" == "Randewijk P-J, Mnr <pjr...@su...>" <pjr...@su...> writes:
"Randewijk> Dear (newbie like myself) XP or more specific win32
"Randewijk> users, The problem was not with the 'dvips' command,
"Randewijk> but with the 'latex' command in version 0.83.2.
"Randewijk> After changing the line 1086 in backend_ps.py 0.83.2
"Randewijk> to read:
I've made the suggested changes to backend_ps.py. Because I don't
have access to a win32 box with TeX, could I ask win32 / TeX users to
test the attached backend_ps file to make sure it is OK?
|
|
From: John H. <jdh...@ac...> - 2005-10-19 02:16:06
|
>>>>> "Jeff" == Jeff Whitaker <js...@fa...> writes:
Jeff> John: I've now a got a toolkit built with no CDAT code in
Jeff> it, using the NCAR natgrid library which is GPL. I've done a
Jeff> fair amount of searching and haven't found anything else
Jeff> that provides similar functionality with better
Jeff> (i.e. BSD-like) licensing. The prototype natgrid toolkit is
Jeff> at /Public/jsw/natgrid-0.1.tar.gz if you'd like to take a
Jeff> look. All it does is provide a single function, griddata,
Jeff> which works much the same as the matlab version. I'm ready
Jeff> to put it CVS if you give the go ahead.
I'm hesitant to include any GPL code even as a toolkit. For one
thing, it decreases the impetus for someone to provide a version that
is compatible with the mpl license. Perhaps this would be better
placed on the wiki?
I know that VTK is BSD compatible and has delaunay triangulation, but
obviously it is impractical to try and pull anything out of VTK. I
think the qhull license is less restrictive:
http://www.qhull.org/COPYING.txt. In short, I wonder if we have
really exhausted all the possibilities. Something from netlib?
There was a recent thread on scipy in which Eric Jones posted a link
to some code (FORTRAN I believe) that does something analogous. It
would be nice to have something in C/C++ and something that is BSD
compatible. Perhaps I'm dreaming.
JDH
|
|
From: Ryan K. <rya...@gm...> - 2005-10-18 23:25:30
|
Thanks to Arnd and Chris I think I am getting close. I can now compile without any error messages that I see. But then I run a script that plots something using WXAgg I get this message that keeps coming up every few seconds after the script has run: ** (python:8999): WARNING **: IPP request failed with status 1030 Running the same script with the TkAgg backend does not produce this error. Either backend produces the same nice looking plots. What do I do next? Thanks, Ryan On 10/18/05, Chris Barker <Chr...@no...> wrote: > Ryan Krauss wrote: > > I have installed libwxgtk2.6-dev and the message about wx-config has > > gone away but it now says it needs the wxPython headers. I downloaded > > the source tarball. What headers does it want and where do I put them > > so mpl finds them? (I can't find another recent thread about this). > > Maybe it was on the Python-mac list.... > > This is what I have, on my Fedora core 4 system (wxPython installed from > the src rpm): > > In: > /usr/lib/wxPython-2.6.1.0-gtk2-unicode/include/wx-2.6/wx/wxPython/ > > printfw.h pyclasses.h pydrawxxx.h pyistream.h pytree.h wxPython.h > wxPython_int.h > > I don't know if you need all of those, but they'll probalby all come > together anyway. > > -Chris > > > -- > Christopher Barker, Ph.D. > Oceanographer > > NOAA/OR&R/HAZMAT (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chr...@no... > |
|
From: Arnd B. <arn...@we...> - 2005-10-18 22:37:14
|
On Tue, 18 Oct 2005, Charlie Moad wrote: > Still bad news though I think. There is no package containing the > wxPython headers, so even with wx-config you can't compile on ubuntu. > There was a bug posted a while ago, but it doesn't look like it made > the release. > > http://ubuntuforums.org/showthread.php?t=71395&highlight=wxPython.h > > If anybody knows differently, please share. The work-around (for debian sarge) is wget http://ftp.debian.org/debian/pool/main/w/wxwindows2.4/wxwindows2.4_2.4.3.1.tar.gz tar xzf wxwindows2.4_2.4.3.1.tar.gz su mkdir /usr/include/wx/wxPython/ cp wxwindows2.4-2.4.3.1/wxPython/src/*.h /usr/include/wx/wxPython/ For ubuntu it should work similarly (you can also replace the wget by a corresponding apt-get command fetching the source). HTH, Arnd |
|
From: Chris B. <Chr...@no...> - 2005-10-18 22:33:15
|
Ryan Krauss wrote:
> I have installed libwxgtk2.6-dev and the message about wx-config has
> gone away but it now says it needs the wxPython headers. I downloaded
> the source tarball. What headers does it want and where do I put them
> so mpl finds them? (I can't find another recent thread about this).
Maybe it was on the Python-mac list....
This is what I have, on my Fedora core 4 system (wxPython installed from
the src rpm):
In:
/usr/lib/wxPython-2.6.1.0-gtk2-unicode/include/wx-2.6/wx/wxPython/
printfw.h pyclasses.h pydrawxxx.h pyistream.h pytree.h wxPython.h
wxPython_int.h
I don't know if you need all of those, but they'll probalby all come
together anyway.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
|
|
From: Chris B. <Chr...@no...> - 2005-10-18 21:02:31
|
Charlie Moad wrote: > There was a bug posted a while ago, but it doesn't look like it made > the release. > > http://ubuntuforums.org/showthread.php?t=71395&highlight=wxPython.h I don't know differently, but there is a set of rpms for wxPython-devel on the wxpython web site. maybe you could use that. It's also in the source tarball, of course. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |
|
From: Chris B. <Chr...@no...> - 2005-10-18 20:54:30
|
Ryan Krauss wrote:
> I am trying to build mpl on a ubuntu Breezy box and I am getting the message:
> WXAgg's accelerator requires `wx-config'.
There has been some discussion of this in this group recently, try
searching the archives.
> What is wx-config and where do I get it?
wx-config is a little program that returns the various include and
linking directories needed to build something against the wxWidgets
library, It should be distributed with the wxPython "devel" package. I
don't know if there is an ubuntu package for that, but I'd look for it.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
|
|
From: Charlie M. <cw...@gm...> - 2005-10-18 20:54:08
|
Still bad news though I think. There is no package containing the wxPython headers, so even with wx-config you can't compile on ubuntu.=20 There was a bug posted a while ago, but it doesn't look like it made the release. http://ubuntuforums.org/showthread.php?t=3D71395&highlight=3DwxPython.h If anybody knows differently, please share. - Charlie On 10/18/05, Charlie Moad <cw...@gm...> wrote: > Install libwxgtk2.6-dev > > On 10/18/05, Ryan Krauss <rya...@gm...> wrote: > > I am trying to build mpl on a ubuntu Breezy box and I am getting the me= ssage: > > WXAgg's accelerator requires `wx-config'. > > What is wx-config and where do I get it? I am trying to build from > > the 0.84 tarball. > > > > Thanks, > > > > Ryan > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Power Architecture Resource Center: Free content, downloads, discussion= s, > > and more. http://solutions.newsforge.com/ibmarch.tmpl > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > |
|
From: Charlie M. <cw...@gm...> - 2005-10-18 20:49:47
|
Install libwxgtk2.6-dev On 10/18/05, Ryan Krauss <rya...@gm...> wrote: > I am trying to build mpl on a ubuntu Breezy box and I am getting the mess= age: > WXAgg's accelerator requires `wx-config'. > What is wx-config and where do I get it? I am trying to build from > the 0.84 tarball. > > Thanks, > > Ryan > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Travis B. <td...@fa...> - 2005-10-18 20:36:32
|
Hi All, I hope this hasn't been posted before and apologies if it seems trivial, but I'm wondering if it's possible to linearly interpolate elementwise between multiple 1d arrays. I have age distribution data for each census year and I'd like to fill in between those census years. So instead of having an array for each year ending in zero I'd like to have a years-by-ages matrix of those age distributions linearly interpolated. I'd thought maybe linspace does this, but after playing around a bit I think perhaps I'm wrong. thanks for any help you can provide. Travis -- Travis Brady td...@fa... -- http://www.fastmail.fm - mmm... Fastmail... |
|
From: Ryan K. <rya...@gm...> - 2005-10-18 20:21:34
|
I am trying to build mpl on a ubuntu Breezy box and I am getting the messag= e: WXAgg's accelerator requires `wx-config'. What is wx-config and where do I get it? I am trying to build from the 0.84 tarball. Thanks, Ryan |
|
From: Mark B. <ma...@gm...> - 2005-10-18 17:21:22
|
Helge and others -
I really like Helge's idea to zoom by 20% in Toolbar2 if you click once onl=
y.
Will even try to center it near the click if possible.
Will try to implement a version of her code this week.
Incidentally, I found a bug and an inconsistency in my axis('scaled')
implementation.
The new pylab file on the patches page is fixed.
Mark
On 10/17/05, Helge Avlesen <he...@gm...> wrote:
>
>
>
> On 10/14/05, Mark Bakker <ma...@gm...> wrote:
> > Hello all -
> >
> > I finally found time to fix the axis('scaled') feature.
> > It is now consistent when zooming, as requested.
> > In essence, it works the same as axis('equal'), but fixes the
> > lower-left-hand corner rather than the center of the
> > subplot. When using axis('scaled') the _autoscaleon is
> > set to False, so that axis limits will be fixed when
> > features are added to the figure. You can overwrite this
> > by setting it the regular way (also works for axis('equal'))
> > ax.set_autoscale_on(False).
> >
> > My last modification is a prototype implementation of
> > zooming when two axes are linked. The idea behind this
> > is that when an axis is 'equal' or 'scaled' and another
> > axis is linked to this axis, that when you are zooming and
> > changing the size of the subplot, then the size of the
> > linkes axis should change accordingly. I use this when
> > I am contouring 2D horizontal data and have a vertical
> > cross-section linked to the x-axis of the horizontal plot.
> > When I zoom in on the horizontal plot, the length of the
> > linked axis now gets changes too! Works great, actually,
> > but has been implemented for linked x-axis only for now.
> > It works when zooming in the horizontal data (which
> > has axis 'equal'), but not yet when zooming in the
> > linked vertical cross-section. Still working on it.
>
>
> Hi,
> yes this is a step in the right direction! IMO it would also be nice wit=
h
> functionality for
> zooming in/out on single clicks with the left and right button, e.g.
> something like the below for backend_bases.py: (hope it is not wrapped t=
o
> death...)
>
> Helge
>
>
> <pre>
> ...
> def release_zoom(...):
> ...
> # single click: 5 pixels is a threshold
> if abs(x-lastx)<5 or abs(y-lasty)<5:
>
> lastx, lasty =3D a.transData.inverse_xy_tup( (lastx, lasty) )
> x, y =3D a.transData.inverse_xy_tup ( (x, y) )
> Xmin,Xmax=3Da.get_xlim()
> Ymin,Ymax=3Da.get_ylim()
>
> if self._button_pressed =3D=3D 1:
>
> # zoom in by 20%, make point clicked center
> dx=3D(Xmax-Xmin)* 0.8*0.5
> dy=3D(Ymax-Ymin)*0.8*0.5
> a.set_xlim((x-dx, x+dx))
> a.set_ylim((y-dy, y+dy))
>
> elif self._button_pressed =3D=3D 3:
>
> # zoom out by 20%, make point clicked center
> dx=3D(Xmax-Xmin)*1.2*0.5
> dy=3D(Ymax-Ymin)*1.2*0.5
> a.set_xlim((x-dx, x+dx))
> a.set_ylim ((y-dy, y+dy))
>
> self.draw()
> self._xypress =3D None
> self._button_pressed =3D=3D None
>
> self.push_current()
> self.release(event)
> return
>
> # zoom to rect
> ...
> </pre>
>
>
>
>
|
|
From: Randewijk P-J, M. <pjr...@su...> - 2005-10-18 15:46:38
|
Dear (newbie like myself) XP or more specific win32 users,
The problem was not with the 'dvips' command, but with the 'latex'
command in version 0.83.2.
After changing the line 1086 in backend_ps.py 0.83.2 to read:
command =3D 'latex -interaction=3Dnonstopmode "%s"' % =
texfile
as in mpl version 0.84, instead of:
command =3D "latex -interaction=3Dnonstopmode '%s'" % =
texfile
my epsfile created with 'savefig(epsfile)' looks great...
In mpl v0.84 line 1102 (unfortunately) still reads:
command =3D 'gs -dBATCH -dNOPAUSE -dSAFER -r%d \
in stead of:
command =3D 'gswin32c -dBATCH -dNOPAUSE -dSAFER -r%d \
This could easily be updated to:
if sys.platform =3D=3D 'win32':
command =3D 'gswin32c -dBATCH -dNOPAUSE -dSAFER -r%d \
-sDEVICE=3Depswrite -dLanguageLevel=3D2 =
-dEPSFitPage \
-sOutputFile=3D"%s" "%s"'% (dpi, epsfile, psfile)
else:
command =3D 'gs -dBATCH -dNOPAUSE -dSAFER -r%d \
-sDEVICE=3Depswrite -dLanguageLevel=3D2 -dEPSFitPage =
\
-sOutputFile=3D"%s" "%s"'% (dpi, epsfile, psfile)
in future versions of mpl...
Unfortunately I still have a problem with the text display in WXAgg (or
TkAgg) "windows"...
This does not worry me to much, because WX* mpl "windows" is rather
slow...
Using GSView on each EPS I'm interested in suffice all my needs, as it
is the quality of the *.eps I'm interessted in...
Any ideas on how to fix the WXAgg problem however, would still be
apreciated...
(dvipng is version 1.6)
Kind regards,
Peter-Jan Randewijk
Senior Lecturer - Power Electronics & Drives
=20
-oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo-=20
Dep. E & E Engineering - E314
Stellenbosch University
Private Bag X1=20
Matieland, 7603
South Africa
Tel: +27 (0) 21 808 4457 (w)=20
Fax: +27 (0) 21 808 3951 (w)=20
Tel: +27 (0) 21 883 8592 (h)=20
Cell: +27 (0) 83 556 5809 (h)
eMail: pjr...@su... (w)
-oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo-=20
-----Original Message-----
From: Gary [mailto:pa...@in...]=20
Sent: 17 October 2005 15:06
To: Randewijk P-J, Mnr <pjr...@su...>
Subject: Re: [Matplotlib-users] savefig(epsfilename) Bug on XP
Sorry to be terse ... I'm late ...
but I think this problem has come up before, and I think it has been
solved
try searching the archives for the thread: "problem using tex on axes=20
label"
I'm not sure that's the right thread... If I find any more info, I'll=20
send it along.
-gary
P.S. After solving a few problems, mpl and MikTeX have been working=20
together wonderfully for me. Search the archives creatively.
Randewijk P-J, Mnr <pjr...@su...> wrote:
> Dear matplotlib XP users,
>
> I am battling with matplotlib and LaTeX for text handeling.
>
> I am running Windows XP, python 2.3.5, matplotlib-0.83.2. ... and
> MiKTeX...
>
> With the WXAgg backend I don't see any text at all in any window,=20
> with:
>
> text.usetex : True=20
>
> In my matplotlibrc file...
>
>
> With PS backend with no show() line and a savefig(epsfilename) line, I
> got the following error:
>
> ...
> IOError: [Errno 2] No such file or directory:
> '890ab9460a8ecc8327114aa4d5689212.eps'
>
>
> I changed line 1097 in backend_ps.py to read:
>
> command =3D 'gswin32c -dBATCH -dNOPAUSE -dSAFER -r%d \
>
> instead of:
>
> command =3D 'gs -dBATCH -dNOPAUSE -dSAFER -r%d \
>
> Now at leas it writes the eps file, but GSView gives the following=20
> error:
>
> Unrecoverable error: configurationerror in setpagedevice Operand=20
> stack:
> false --nostringval--
> Failed to open device or install ViewerPreProcess hook: returns -26
>
> I then tried to see if savefig(psfilename) would work, but now I get
> the error:
>
> IOError: [Errno 2] No such file or directory:
> '5cdf9668d6b377717ccafe1ddfbafb10.ps'
>
> Probable indicating an error with the 'dvips' command... ?
>
> Any ideas on what to do... I'll leave it till Monday morning...
>
> Kind regards and enjoy the weekend
>
> Peter-Jan Randewijk
> Senior Lektor - Drywingselektronika & Elektriese Aandrywing
> =20
> -oOOOOOOOOOOOOOOOOOOOOOOOOOOo-
> Departement E&E. Ingenieurswese - E313
> Universiteit Stellenbosch
> Privaatsak X1
> Matieland, 7603
> Suid-Afrika
> Tel: +27 (0) 21 808 4457 (w)
> Faks: +27 (0) 21 808 3951 (w)
> Tel: +27 (0) 21 883 8592 (h)
> Sel: +27 (0) 83 556 5809 (h)
> Epos: pjr...@su... (w)
> -oOOOOOOOOOOOOOOOOOOOOOOOOOOo-
>
>
|
|
From: Nikolai H. <nik...@ma...> - 2005-10-18 15:41:05
|
Hi everyone I've been using the method described below for quite some time now, and since the question on how to create videos with matplotlib is asked every once a while I thought maybe someone else could be interested in it as well. The idea is to open a pipe to ffmpeg and pass the pictures as they are created directly to the encoder. This obviously saves space since the pictures don't have to be stored and your video is ready when your program finishes. If someone likes to try this out you can get the code along with an example file under http://www.physik.tu-dresden.de/~hlubek/video.zip (I think I'll also put this into the wiki if I find some time.) You need - Python Imaging Library - ffmpeg - matplotlib (tested with 0.82) Cheers, Nikolai PS: A recent test with matplotlib CVS showed, that the plot window isn't updated once the video thread starts. Since the video is created maybe this is related to the problem with raw_input()? -- "1984" is not a howto! |
|
From: Jeff W. <js...@fa...> - 2005-10-18 12:05:48
|
Jesper Larsen wrote: > On Saturday 15 October 2005 01:10, Jeff Whitaker wrote: > >> Jesper: Since this question has come up a couple of times, I decided to >> cook up an example. First you'll need to download and install the >> natgrid python module (included in CDAT, but I've separated it out from >> the huge tarball and put it at >> ftp://ftp.cdc.noaa.gov/Public/jsw/natgrid.tar.gz). Then try this: >> > > Sounds great. I tried your example and it works fine (though I had to modify > the import nat statement to "from natgrid import nat"). > > The only problem for my application is that I would like the interpolation to > be limited to areas near observations and avoiding extrapolation to areas far > from observations. Is that possible - from the natgrid documentation that > does not seem to be the case? > Jespers: You can tell natgrid to not do any extrapolation outside the convex hull defined by the data points - see test.py in ftp://ftp.cdc.noaa.gov/Public/jsw/natgrid-0.1.tar.gz. In that example I create a masked array that is only defined where there is no extrapolation needed. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449 325 Broadway Web : http://www.cdc.noaa.gov/~jsw Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124 |
|
From: Jesper L. <jl...@dm...> - 2005-10-18 10:10:46
|
On Saturday 15 October 2005 01:10, Jeff Whitaker wrote: > Jesper: Since this question has come up a couple of times, I decided to > cook up an example. First you'll need to download and install the > natgrid python module (included in CDAT, but I've separated it out from > the huge tarball and put it at > ftp://ftp.cdc.noaa.gov/Public/jsw/natgrid.tar.gz). Then try this: Sounds great. I tried your example and it works fine (though I had to modify the import nat statement to "from natgrid import nat"). The only problem for my application is that I would like the interpolation to be limited to areas near observations and avoiding extrapolation to areas far from observations. Is that possible - from the natgrid documentation that does not seem to be the case? If it is not possible, I will probably try to do it as a postprocessing of the interpolated data (probably simply check if the nearest observation is within a given range). -- Jesper |
|
From: Willi R. <w.r...@gm...> - 2005-10-18 06:24:08
|
Am Montag, 17. Oktober 2005 19:28 schrieben Sie: > >>>>> "Willi" == Willi Richert <w.r...@gm...> writes: > > Willi> Hi, here is the script: > > Really very strange. Are you running this from the command line or an > IDE? Could you post the results of > > > python yourscript.py --verbose-helpful matplotlib data path /usr/share/matplotlib $HOME=/home/wr CONFIGDIR=/home/wr/.matplotlib loaded rc file /home/wr/.matplotlib/matplotlibrc matplotlib version 0.84 verbose.level helpful interactive is True platform is linux2 numerix Numeric 23.3 font search path ['/usr/share/matplotlib'] loaded ttfcache file /home/wr/.matplotlib/ttffont.cache Could not load matplotlib icon: 'module' object has no attribute 'window_set_default_icon_from_file' backend QtAgg version 0.9.1 matplotlibrc is attached > > Perhaps this is a problem with text cacheing if you run the same > script repeatedly from ipython or an IDE. > > Does it matter if you put the x and y label calls *after* the errorbar > command? Unfortunately, no. Regards, wr |