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
(19) |
2
(3) |
3
(12) |
4
(2) |
5
|
6
(9) |
7
(27) |
8
(39) |
9
(17) |
10
(22) |
11
(5) |
12
(1) |
13
(11) |
14
(12) |
15
(14) |
16
(29) |
17
(32) |
18
(8) |
19
(3) |
20
(10) |
21
(27) |
22
(11) |
23
(8) |
24
(4) |
25
(4) |
26
(3) |
27
(18) |
28
(7) |
29
(29) |
30
(13) |
31
(4) |
|
On 2006年3月21日, John Hunter wrote: > >>>>> "Mads" == Mads Ipsen <mp...@os...> writes: > > Mads> Dear Matplotlib-users, I have now been struggling with > Mads> getting matplotlib integrated into a PyQt based GUI > Mads> environment. The example > > Mads> embedding_in_qt.py > > Mads> which comes with the source distribution, has been my > Mads> starting point. > > Mads> The problem is that in my own applications, matplotlib has > Mads> to serve the purpose of showing animated data; and for some > Mads> reason, I cannot squeeze more than 10-15 FPS out of the > Mads> example. The QTimer in the example is set to 10 ms, so this > Mads> is not the problem. > > The wiki page at > > http://www.scipy.org/Wiki/Cookbook/Matplotlib/Animations > > discusses animation techniques with performance in mind. > Unfortunately, the techniques described at the end in the section on > blitting and drawing selected artists are not currently available for > QtAgg. Basically, there are three methods that need to be implemented > in the qt backend (the three are discussed in the web page above > towards the end). Basically they involve saving and copying selected > regions of the agg renderering buffer to and from the qt canvas. > There are examples in the GTKAgg, WXAgg, and TkAgg backends for you > follow, so if you know something about Qt and want to get much better > performance for animation, perhaps you can implement these for the > QtAgg backend and send them our way when you are done :-) > > In any case, it is on our list of things to do... > > JDH > If you can provide a few pointers to the relevant files in the matplotlib source, I'll have a look and see what I can do. // Mads
>>>>> "Nils" == Nils Wagner <nw...@me...> writes: Nils> Dear Matplotlib-Users, I would like to add arrows at the Nils> corners of the blue line to illustrate the order of the Nils> iterates. Is it possible to realize it with matplotlib ? You may want to look at examples/arrow_demo.py and the matplotlib.patches.FancyArrow class in current svn (revision 2201). There is also a class matplotlib.patches.Arrow but the arrows it makes are not as nice as those of the FancyArrow. JDH
>>>>> "Mads" == Mads Ipsen <mp...@os...> writes: Mads> Dear Matplotlib-users, I have now been struggling with Mads> getting matplotlib integrated into a PyQt based GUI Mads> environment. The example Mads> embedding_in_qt.py Mads> which comes with the source distribution, has been my Mads> starting point. Mads> The problem is that in my own applications, matplotlib has Mads> to serve the purpose of showing animated data; and for some Mads> reason, I cannot squeeze more than 10-15 FPS out of the Mads> example. The QTimer in the example is set to 10 ms, so this Mads> is not the problem. The wiki page at http://www.scipy.org/Wiki/Cookbook/Matplotlib/Animations discusses animation techniques with performance in mind. Unfortunately, the techniques described at the end in the section on blitting and drawing selected artists are not currently available for QtAgg. Basically, there are three methods that need to be implemented in the qt backend (the three are discussed in the web page above towards the end). Basically they involve saving and copying selected regions of the agg renderering buffer to and from the qt canvas. There are examples in the GTKAgg, WXAgg, and TkAgg backends for you follow, so if you know something about Qt and want to get much better performance for animation, perhaps you can implement these for the QtAgg backend and send them our way when you are done :-) In any case, it is on our list of things to do... JDH
Dear Matplotlib-Users, I would like to add arrows at the corners of the blue line to illustrate the order of the iterates. Is it possible to realize it with matplotlib ? Nils
Dear Matplotlib-users, I have now been struggling with getting matplotlib integrated into a PyQt based GUI environment. The example embedding_in_qt.py which comes with the source distribution, has been my starting point. The problem is that in my own applications, matplotlib has to serve the purpose of showing animated data; and for some reason, I cannot squeeze more than 10-15 FPS out of the example. The QTimer in the example is set to 10 ms, so this is not the problem. If I implement a simple, and of course, much more simplistic 2D window in 'raw' PyQt, this easily gives 95 FPS with 1000 datapoints. Any suggestions and feedbacks on how to approach this problem are more than welcome. Best regards, Mads Ipsen
>>>>> "Keith" == <kei...@bt...> writes: >> grid(*args, **kwargs) Set the axes grids on or off; b is a >> boolean if b is None, toggle the grid state Keith> should that be Keith> grid(b) Hi Keith -- thanks for all these docstring bug reports. For the sanity of our mailing list users, who probably don't want to overload their inboxes, I suggest you collect these in a single report and post them to the sourceforge bug report page http://sourceforge.net/tracker/?group_id=80706&atid=560720 In answer to this specific question about grid. The pylab functions are mostly think interfaces to the matplotlib API, and grid is an example of this. Most of the pylab functions are autogenerated by a python script. We simply pass all the *args and **kwargs from those functions on to the underlying function. To make the pylab docstrings more human readable, I usually include an extra line like (in the Axes.grid function that pylab.grid exposes) def grid(self, b=None, **kwargs): """ GRID(b=None, **kwargs) Where the GRID line is used to indicate the pylab syntax. This was missing for grid (see plot or scatter for an example of how we mean to do it) but will be fixed for the next release. Thanks! JDH
>grid(*args, **kwargs) >Set the axes grids on or off; b is a boolean >if b is None, toggle the grid state should that be=20 grid(b) ? Keith
>figlegend(handles, labels, loc, **kwargs)=20 >legend( (line1, line2, line3),=20 should that be=20 figlegend( (line1, line2, line3), > ? > Keith
> assuming a is the Axis instance=20 should that be assuming ax is the Axis instance=20 ? Keith
>>>>> "Darren" == Darren Dale <dd...@co...> writes: Darren> On Tuesday 21 March 2006 10:11, Darren Dale wrote: >> Nevermind, I didnt see the reference to simple plot. This looks >> like a problem with the where() function with numarray, it is >> complaining about creating a char array. I'm looking into it. Darren> Fixed in svn 2190. Darren> I found a non-numerix solution, replacing this: codes = Darren> where(mask[start:end+1], 'l', 'm') with this: codes = Darren> [('m','l')[i] for i in mask] If this is a numarray bug, we should make sure the numarray folks know about it. JDH
> funcs to compliment MLab=20 you probably meant: funcs to complement MLab=20 Keith
grea, it's working fine now. Thank you very much. N. Darren Dale wrote: > On Tuesday 21 March 2006 10:11, Darren Dale wrote: > >> Nevermind, I didnt see the reference to simple plot. This looks like a >> problem with the where() function with numarray, it is complaining about >> creating a char array. I'm looking into it. >> > > Fixed in svn 2190. > > I found a non-numerix solution, replacing this: > codes = where(mask[start:end+1], 'l', 'm') > with this: > codes = [('m','l')[i] for i in mask] > > >> On Tuesday 21 March 2006 10:04, Darren Dale wrote: >> >>> Please post a brief script that reproduces the problem. >>> >>> On Tuesday 21 March 2006 09:57, Humufr wrote: >>> >>>> Hi, >>>> >>>> I have an error with the SVN version of matplotlib when I'm trying to >>>> save a figure in eps format (it's working fine for png, svg). The >>>> problem appeared when I'm using savefig("image.eps") or the save icon. >>>> The error message is: >>>> >>>> Thanks, >>>> >>>> N. >>>> >>>> >>>> python simple_plot.py >>>> Traceback (most recent call last): >>>> File >>>> "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk >>>> .p y" , line 640, in save_figure >>>> self.canvas.print_figure(fname) >>>> File >>>> "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk >>>> ag g. py", line 112, in print_figure >>>> orientation, **kwargs) >>>> File >>>> "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_agg >>>> .p y" , line 493, in print_figure >>>> orientation, **kwargs) >>>> File >>>> "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps. >>>> py ", line 1141, in print_figure >>>> self.figure.draw(renderer) >>>> File "/usr/local/lib/python2.4/site-packages/matplotlib/figure.py", >>>> line 529, in draw >>>> for a in self.axes: a.draw(renderer) >>>> File "/usr/local/lib/python2.4/site-packages/matplotlib/axes.py", >>>> line 1460, in draw >>>> a.draw(renderer) >>>> File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", >>>> line 370, in draw >>>> lineFunc(renderer, gc, xt, yt) >>>> File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", >>>> line 534, in _draw_solid >>>> renderer.draw_lines(gc, xt, yt, self._transform) >>>> File >>>> "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps. >>>> py ", line 634, in draw_lines >>>> codes = where(mask[start:end+1], 'l', 'm') >>>> File "/usr/local/lib/python2.4/site-packages/numarray/generic.py", >>>> line 1068, in where >>>> return choose(ufunc.not_equal(condition, 0), (y,x), out) >>>> File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line >>>> 1990, in choose >>>> return _choose(selector, population, outarr, clipmode) >>>> File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line >>>> 1896, in __call__ >>>> computation_mode, woutarr, cfunc, ufargs = \ >>>> File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line >>>> 1912, in _setup >>>> convType = _maxPopType(in2) >>>> File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line >>>> 1854, in _maxPopType >>>> t = _nc._maxtype(x) >>>> File >>>> "/usr/local/lib/python2.4/site-packages/numarray/numarraycore.py", line >>>> 131, in _maxtype >>>> return PyLevel2Type[_numarray._maxtype(args)] >>>> TypeError: Expecting a python numeric type, got something else. >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.Net email is sponsored by xPML, a groundbreaking scripting >>>> language that extends applications into web and mobile media. Attend >>>> the live webcast and join the prime developer group breaking into this >>>> new coding territory! >>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=12164 >>>> 2 _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> > >
On Tuesday 21 March 2006 10:11, Darren Dale wrote: > Nevermind, I didnt see the reference to simple plot. This looks like a > problem with the where() function with numarray, it is complaining about > creating a char array. I'm looking into it. Fixed in svn 2190. I found a non-numerix solution, replacing this: codes = where(mask[start:end+1], 'l', 'm') with this: codes = [('m','l')[i] for i in mask] > On Tuesday 21 March 2006 10:04, Darren Dale wrote: > > Please post a brief script that reproduces the problem. > > > > On Tuesday 21 March 2006 09:57, Humufr wrote: > > > Hi, > > > > > > I have an error with the SVN version of matplotlib when I'm trying to > > > save a figure in eps format (it's working fine for png, svg). The > > > problem appeared when I'm using savefig("image.eps") or the save icon. > > > The error message is: > > > > > > Thanks, > > > > > > N. > > > > > > > > > python simple_plot.py > > > Traceback (most recent call last): > > > File > > > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk > > >.p y" , line 640, in save_figure > > > self.canvas.print_figure(fname) > > > File > > > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk > > >ag g. py", line 112, in print_figure > > > orientation, **kwargs) > > > File > > > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_agg > > >.p y" , line 493, in print_figure > > > orientation, **kwargs) > > > File > > > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps. > > >py ", line 1141, in print_figure > > > self.figure.draw(renderer) > > > File "/usr/local/lib/python2.4/site-packages/matplotlib/figure.py", > > > line 529, in draw > > > for a in self.axes: a.draw(renderer) > > > File "/usr/local/lib/python2.4/site-packages/matplotlib/axes.py", > > > line 1460, in draw > > > a.draw(renderer) > > > File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", > > > line 370, in draw > > > lineFunc(renderer, gc, xt, yt) > > > File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", > > > line 534, in _draw_solid > > > renderer.draw_lines(gc, xt, yt, self._transform) > > > File > > > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps. > > >py ", line 634, in draw_lines > > > codes = where(mask[start:end+1], 'l', 'm') > > > File "/usr/local/lib/python2.4/site-packages/numarray/generic.py", > > > line 1068, in where > > > return choose(ufunc.not_equal(condition, 0), (y,x), out) > > > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > > > 1990, in choose > > > return _choose(selector, population, outarr, clipmode) > > > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > > > 1896, in __call__ > > > computation_mode, woutarr, cfunc, ufargs = \ > > > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > > > 1912, in _setup > > > convType = _maxPopType(in2) > > > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > > > 1854, in _maxPopType > > > t = _nc._maxtype(x) > > > File > > > "/usr/local/lib/python2.4/site-packages/numarray/numarraycore.py", line > > > 131, in _maxtype > > > return PyLevel2Type[_numarray._maxtype(args)] > > > TypeError: Expecting a python numeric type, got something else. > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by xPML, a groundbreaking scripting > > > language that extends applications into web and mobile media. Attend > > > the live webcast and join the prime developer group breaking into this > > > new coding territory! > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=12164 > > >2 _______________________________________________ > > > Matplotlib-users mailing list > > > Mat...@li... > > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Darren S. Dale, Ph.D. Cornell High Energy Synchrotron Source Cornell University 200L Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 dd...@co... office: (607) 255-9894 fax: (607) 255-9001
Nevermind, I didnt see the reference to simple plot. This looks like a problem with the where() function with numarray, it is complaining about creating a char array. I'm looking into it. On Tuesday 21 March 2006 10:04, Darren Dale wrote: > Please post a brief script that reproduces the problem. > > On Tuesday 21 March 2006 09:57, Humufr wrote: > > Hi, > > > > I have an error with the SVN version of matplotlib when I'm trying to > > save a figure in eps format (it's working fine for png, svg). The > > problem appeared when I'm using savefig("image.eps") or the save icon. > > The error message is: > > > > Thanks, > > > > N. > > > > > > python simple_plot.py > > Traceback (most recent call last): > > File > > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.p > >y" , line 640, in save_figure > > self.canvas.print_figure(fname) > > File > > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtkag > >g. py", line 112, in print_figure > > orientation, **kwargs) > > File > > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_agg.p > >y" , line 493, in print_figure > > orientation, **kwargs) > > File > > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py > >", line 1141, in print_figure > > self.figure.draw(renderer) > > File "/usr/local/lib/python2.4/site-packages/matplotlib/figure.py", > > line 529, in draw > > for a in self.axes: a.draw(renderer) > > File "/usr/local/lib/python2.4/site-packages/matplotlib/axes.py", line > > 1460, in draw > > a.draw(renderer) > > File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", > > line 370, in draw > > lineFunc(renderer, gc, xt, yt) > > File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", > > line 534, in _draw_solid > > renderer.draw_lines(gc, xt, yt, self._transform) > > File > > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py > >", line 634, in draw_lines > > codes = where(mask[start:end+1], 'l', 'm') > > File "/usr/local/lib/python2.4/site-packages/numarray/generic.py", > > line 1068, in where > > return choose(ufunc.not_equal(condition, 0), (y,x), out) > > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > > 1990, in choose > > return _choose(selector, population, outarr, clipmode) > > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > > 1896, in __call__ > > computation_mode, woutarr, cfunc, ufargs = \ > > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > > 1912, in _setup > > convType = _maxPopType(in2) > > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > > 1854, in _maxPopType > > t = _nc._maxtype(x) > > File > > "/usr/local/lib/python2.4/site-packages/numarray/numarraycore.py", line > > 131, in _maxtype > > return PyLevel2Type[_numarray._maxtype(args)] > > TypeError: Expecting a python numeric type, got something else. > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting > > language that extends applications into web and mobile media. Attend the > > live webcast and join the prime developer group breaking into this new > > coding territory! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Darren S. Dale, Ph.D. Cornell High Energy Synchrotron Source Cornell University 200L Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 dd...@co... office: (607) 255-9894 fax: (607) 255-9001
python simple_plot.py --verbose-helpful matplotlib data path /usr/local/lib/python2.4/site-packages/matplotlib/mpl-data $HOME=/home/humufr CONFIGDIR=/home/humufr/.matplotlib loaded rc file /home/humufr/.matplotlib/matplotlibrc matplotlib version 0.88svn verbose.level helpful interactive is False platform is linux2 numerix numarray 1.5.1 font search path ['/usr/local/lib/python2.4/site-packages/matplotlib/mpl-data', '.', '/.fonts'] loaded ttfcache file /.matplotlib/ttffont.cache backend GTKAgg version 2.8.0 Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py", line 640, in save_figure self.canvas.print_figure(fname) File "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py", line 112, in print_figure orientation, **kwargs) File "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py", line 493, in print_figure orientation, **kwargs) File "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py", line 1141, in print_figure self.figure.draw(renderer) File "/usr/local/lib/python2.4/site-packages/matplotlib/figure.py", line 529, in draw for a in self.axes: a.draw(renderer) File "/usr/local/lib/python2.4/site-packages/matplotlib/axes.py", line 1460, in draw a.draw(renderer) File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", line 370, in draw lineFunc(renderer, gc, xt, yt) File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", line 534, in _draw_solid renderer.draw_lines(gc, xt, yt, self._transform) File "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py", line 634, in draw_lines codes = where(mask[start:end+1], 'l', 'm') File "/usr/local/lib/python2.4/site-packages/numarray/generic.py", line 1068, in where return choose(ufunc.not_equal(condition, 0), (y,x), out) File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line 1990, in choose return _choose(selector, population, outarr, clipmode) File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line 1896, in __call__ computation_mode, woutarr, cfunc, ufargs = \ File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line 1912, in _setup convType = _maxPopType(in2) File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line 1854, in _maxPopType t = _nc._maxtype(x) File "/usr/local/lib/python2.4/site-packages/numarray/numarraycore.py", line 131, in _maxtype return PyLevel2Type[_numarray._maxtype(args)] TypeError: Expecting a python numeric type, got something else. John Hunter wrote: >>>>>> "Humufr" == Humufr <hu...@ya...> writes: >>>>>> > > Humufr> Hi, I have an error with the SVN version of matplotlib > Humufr> when I'm trying to save a figure in eps format (it's > Humufr> working fine for png, svg). The problem appeared when I'm > Humufr> using savefig("image.eps") or the save icon. The error > Humufr> message is: > > When posting a bug, it's most helpful if you run the script in > question with --verbose-helpful option which shows us your default > configuration. > > Thanks, > JDH > >
oups I forgot to indicate the svn revision: revision 2189 N. Humufr wrote: > Hi, > > I have an error with the SVN version of matplotlib when I'm trying to > save a figure in eps format (it's working fine for png, svg). The > problem appeared when I'm using savefig("image.eps") or the save icon. > The error message is: > > Thanks, > > N. > > > python simple_plot.py > Traceback (most recent call last): > File > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py", > line 640, in save_figure > self.canvas.print_figure(fname) > File > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py", > line 112, in print_figure > orientation, **kwargs) > File > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py", > line 493, in print_figure > orientation, **kwargs) > File > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py", > line 1141, in print_figure > self.figure.draw(renderer) > File "/usr/local/lib/python2.4/site-packages/matplotlib/figure.py", > line 529, in draw > for a in self.axes: a.draw(renderer) > File "/usr/local/lib/python2.4/site-packages/matplotlib/axes.py", > line 1460, in draw > a.draw(renderer) > File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", > line 370, in draw > lineFunc(renderer, gc, xt, yt) > File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", > line 534, in _draw_solid > renderer.draw_lines(gc, xt, yt, self._transform) > File > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py", > line 634, in draw_lines > codes = where(mask[start:end+1], 'l', 'm') > File "/usr/local/lib/python2.4/site-packages/numarray/generic.py", > line 1068, in where > return choose(ufunc.not_equal(condition, 0), (y,x), out) > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > 1990, in choose > return _choose(selector, population, outarr, clipmode) > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > 1896, in __call__ > computation_mode, woutarr, cfunc, ufargs = \ > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > 1912, in _setup > convType = _maxPopType(in2) > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > 1854, in _maxPopType > t = _nc._maxtype(x) > File > "/usr/local/lib/python2.4/site-packages/numarray/numarraycore.py", > line 131, in _maxtype > return PyLevel2Type[_numarray._maxtype(args)] > TypeError: Expecting a python numeric type, got something else. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
>>>>> "Humufr" == Humufr <hu...@ya...> writes: Humufr> Hi, I have an error with the SVN version of matplotlib Humufr> when I'm trying to save a figure in eps format (it's Humufr> working fine for png, svg). The problem appeared when I'm Humufr> using savefig("image.eps") or the save icon. The error Humufr> message is: When posting a bug, it's most helpful if you run the script in question with --verbose-helpful option which shows us your default configuration. Thanks, JDH
Please post a brief script that reproduces the problem. On Tuesday 21 March 2006 09:57, Humufr wrote: > Hi, > > I have an error with the SVN version of matplotlib when I'm trying to > save a figure in eps format (it's working fine for png, svg). The > problem appeared when I'm using savefig("image.eps") or the save icon. > The error message is: > > Thanks, > > N. > > > python simple_plot.py > Traceback (most recent call last): > File > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py" >, line 640, in save_figure > self.canvas.print_figure(fname) > File > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg. >py", line 112, in print_figure > orientation, **kwargs) > File > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py" >, line 493, in print_figure > orientation, **kwargs) > File > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py", > line 1141, in print_figure > self.figure.draw(renderer) > File "/usr/local/lib/python2.4/site-packages/matplotlib/figure.py", > line 529, in draw > for a in self.axes: a.draw(renderer) > File "/usr/local/lib/python2.4/site-packages/matplotlib/axes.py", line > 1460, in draw > a.draw(renderer) > File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", > line 370, in draw > lineFunc(renderer, gc, xt, yt) > File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", > line 534, in _draw_solid > renderer.draw_lines(gc, xt, yt, self._transform) > File > "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py", > line 634, in draw_lines > codes = where(mask[start:end+1], 'l', 'm') > File "/usr/local/lib/python2.4/site-packages/numarray/generic.py", > line 1068, in where > return choose(ufunc.not_equal(condition, 0), (y,x), out) > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > 1990, in choose > return _choose(selector, population, outarr, clipmode) > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > 1896, in __call__ > computation_mode, woutarr, cfunc, ufargs = \ > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > 1912, in _setup > convType = _maxPopType(in2) > File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line > 1854, in _maxPopType > t = _nc._maxtype(x) > File > "/usr/local/lib/python2.4/site-packages/numarray/numarraycore.py", line > 131, in _maxtype > return PyLevel2Type[_numarray._maxtype(args)] > TypeError: Expecting a python numeric type, got something else. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live > webcast and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Darren S. Dale, Ph.D. Cornell High Energy Synchrotron Source Cornell University 200L Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 dd...@co... office: (607) 255-9894 fax: (607) 255-9001
Hi, I have an error with the SVN version of matplotlib when I'm trying to save a figure in eps format (it's working fine for png, svg). The problem appeared when I'm using savefig("image.eps") or the save icon. The error message is: Thanks, N. python simple_plot.py Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py", line 640, in save_figure self.canvas.print_figure(fname) File "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py", line 112, in print_figure orientation, **kwargs) File "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py", line 493, in print_figure orientation, **kwargs) File "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py", line 1141, in print_figure self.figure.draw(renderer) File "/usr/local/lib/python2.4/site-packages/matplotlib/figure.py", line 529, in draw for a in self.axes: a.draw(renderer) File "/usr/local/lib/python2.4/site-packages/matplotlib/axes.py", line 1460, in draw a.draw(renderer) File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", line 370, in draw lineFunc(renderer, gc, xt, yt) File "/usr/local/lib/python2.4/site-packages/matplotlib/lines.py", line 534, in _draw_solid renderer.draw_lines(gc, xt, yt, self._transform) File "/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py", line 634, in draw_lines codes = where(mask[start:end+1], 'l', 'm') File "/usr/local/lib/python2.4/site-packages/numarray/generic.py", line 1068, in where return choose(ufunc.not_equal(condition, 0), (y,x), out) File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line 1990, in choose return _choose(selector, population, outarr, clipmode) File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line 1896, in __call__ computation_mode, woutarr, cfunc, ufargs = \ File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line 1912, in _setup convType = _maxPopType(in2) File "/usr/local/lib/python2.4/site-packages/numarray/ufunc.py", line 1854, in _maxPopType t = _nc._maxtype(x) File "/usr/local/lib/python2.4/site-packages/numarray/numarraycore.py", line 131, in _maxtype return PyLevel2Type[_numarray._maxtype(args)] TypeError: Expecting a python numeric type, got something else.
>>>>> "Nils" == Nils Wagner <nw...@me...> writes: Nils> How can I resolve this warning ? Nils> /usr/lib64/python2.4/site-packages/matplotlib/__init__.py:948: Nils> UserWarning: Bad val "free" on line #183 "image.aspect : Nils> free # free | preserve" in file Nils> "/home/nwagner/.matplotlib/matplotlibrc" not a valid aspect Nils> specification warnings.warn('Bad val "%s" on line Nils> #%d\n\t"%s"\n\tin file "%s"\n\t%s' % ( If you are a svn user, please read the devel list. If you are reporting a bug against svn, please report your svn revision number in a bug report. You have been reading and posting on maptlotlib and scipy mailing lists long enough, and using cvs/svn versions of both long enough, that you should know the drill by now. Eric Firing has done excellent work in the last couple of days, building on Mark Bakkar's earler work, in support of image and axes with proper aspect ratio handling, under figure window resizes, etc. He is not finished yet, and as he indicated on the devel list he has not updated the CHANGELOG of API_CHANGES files yet because he is still working out the final details. The new default matplotlibrc.template file in svn, however, lists the new valid options for this image.aspect parameter. JDH
Remove it from your rc file. On Tuesday 21 March 2006 09:10, Nils Wagner wrote: > How can I resolve this warning ? > > /usr/lib64/python2.4/site-packages/matplotlib/__init__.py:948: > UserWarning: Bad val "free" on line #183 > "image.aspect : free # free | preserve" > in file "/home/nwagner/.matplotlib/matplotlibrc" > not a valid aspect specification > warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s' % > ( > > Nils > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live > webcast and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Darren S. Dale, Ph.D. Cornell High Energy Synchrotron Source Cornell University 200L Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 dd...@co... office: (607) 255-9894 fax: (607) 255-9001
How can I resolve this warning ? /usr/lib64/python2.4/site-packages/matplotlib/__init__.py:948: UserWarning: Bad val "free" on line #183 "image.aspect : free # free | preserve" in file "/home/nwagner/.matplotlib/matplotlibrc" not a valid aspect specification warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s' % ( Nils
>>>>> "Diwaker" == Diwaker Gupta <diw...@gm...> writes: Diwaker> I want to plot two quantities on the same graph such that Diwaker> the X-axis remains the same, while the left and right Diwaker> Y-axis show the ranges for the first and second quanties Diwaker> respective. I fished through the demos (shared_axes etc), Diwaker> the cookbook as well as the user manual, but haven't been Diwaker> able to figure out a working example yet. examples/two_scales.py Hope this helps, JDH
I want to plot two quantities on the same graph such that the X-axis remains the same, while the left and right Y-axis show the ranges for the first and second quanties respective. I fished through the demos (shared_axes etc), the cookbook as well as the user manual, but haven't been able to figure out a working example yet. I hope this is easy to do, and if not, IMHO it should be made relatively straight forward to make such plots since they are very common with gnuplot users. TIA, Diwaker -- Web/Blog/Gallery: http://floatingsun.net/blog
That label is called the offset. If you do plot(arange(10)*1e10) a=gca() offset = a.yaxis.get_offset_text() offset is a text object that you can resize, just inspect it's methods. Darren On Monday 20 March 2006 8:31 pm, MICHAEL P MOSSEY wrote: > This is a question about controlling the font size of axis tick labels, in > a linear numeric axis. > > More specifically it is about this situation: You know how sometimes, when > the numeric labels represent very large/small numbers that need scientific > notation, the power of 10 exponent is placed separately from the rest of > the tick labels, at the high end of the axis? I want to change the size of > that separate label. calling xAxisInstance.get_ticklabels(), looping on > that, and setting font size, doesn't do it---apparently that one separate > label is not included in the return list. > > Mike > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live > webcast and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Darren S. Dale, Ph.D. dd...@co...