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
(22) |
2
(17) |
3
(21) |
4
(7) |
5
(7) |
6
(17) |
7
(8) |
8
(8) |
9
(33) |
10
(11) |
11
|
12
(2) |
13
(11) |
14
(29) |
15
(13) |
16
(13) |
17
(3) |
18
(2) |
19
(3) |
20
(7) |
21
(17) |
22
(12) |
23
(19) |
24
(19) |
25
(14) |
26
(5) |
27
(25) |
28
(13) |
|
|
|
|
From: Darren D. <dd...@co...> - 2006-02-03 23:43:12
|
Try setting your ps.distiller.res rc setting to 6000. Does that help? If so, let me know and I will make a comment on the wiki. Darren On Friday 03 February 2006 18:25, Samuel M. Smith wrote: > I just upgraded my Matplotlib to 0.86.2. The display of text using latex > has really poor resolution. This was not the case with 0.83. Anyone know > what Is the problem. The saved .eps files when converted to pdf have > good > resolution. > > I am using Mac OS X 10.4.4 > I have latex installed with > ghostscript 8.51 > dvips(k) 5.95b > numpy 0.9.5 > WXAgg > wxwindows 2.6.2.1 > > the following relevant rc settings > > font.latex.package : type1cm > text.usetex : True # > text.tex.engine : latex > > figure.dpi : 100 > savefig.dpi : 100 > > changing the dpi just makes the window bigger with still poor rendering. > > when I run the example cookbook > http://new.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex > > I get the following on screen display -- 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 |
From: Samuel M. S. <sm...@sa...> - 2006-02-03 23:26:10
|
I just upgraded my Matplotlib to 0.86.2. The display of text using latex has really poor resolution. This was not the case with 0.83. Anyone know what Is the problem. The saved .eps files when converted to pdf have good resolution. I am using Mac OS X 10.4.4 I have latex installed with ghostscript 8.51 dvips(k) 5.95b numpy 0.9.5 WXAgg wxwindows 2.6.2.1 the following relevant rc settings font.latex.package : type1cm text.usetex : True # text.tex.engine : latex figure.dpi : 100 savefig.dpi : 100 changing the dpi just makes the window bigger with still poor rendering. when I run the example cookbook http://new.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex I get the following on screen display |
From: John H. <jdh...@ac...> - 2006-02-03 19:09:39
|
>>>>> "Brian" == Brian Granger <bgr...@sc...> writes: Brian> The odd thing is that I have an earlier build of matplotlib Brian> (maybe a week ago) on my laptop and it runs fine. It also Brian> has this same code in _transforms.cpp. That makes me think Brian> it is an install problem. Brian> Any thoughts? Hey Brian, You need _transforms.cpp revision 1.46. This was a bug I introducted into CVS last night and it is now fixed. JDH |
From: Brian G. <bgr...@sc...> - 2006-02-03 18:59:14
|
Hello, Last night I installed matplotlib from CVS on Mac OS X (python 2.4.1). I am using numpy from svn and have installed the dependencies (zlib, libpng, freetype, wxPython). I don't have Numeric or numarray installed on this machine. Everything builds fine, but when I run ipython -pylab and do plot ((1,2,3)) I the following: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/axes.py in __init__(self, fig, *args, **kwargs) 4127 def __init__(self, fig, *args, **kwargs): 4128 SubplotBase.__init__(self, fig, *args) -> 4129 Axes.__init__(self, fig, [self.figLeft, self.figBottom, 4130 self.figW, self.figH], **kwargs) 4131 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/axes.py in __init__(self, fig, rect, axisbg, frameon, sharex, sharey, label, **kwargs) 367 self._hold = rcParams['axes.hold'] 368 self._connected = {} # a dict from events to (id, func) --> 369 self.cla() 370 371 # funcs used to format x and y - fall back on major formatters /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/axes.py in cla(self) 664 self.yaxis.cla() 665 --> 666 self.dataLim.ignore(1) 667 if self._sharex is not None: 668 self.xaxis.major = self._sharex.xaxis.major IndexError: tuple index out of range I think the code being called in the ignore() method is in _transforms.cpp: Py::Object Bbox::ignore(const Py::Tuple &args) { _VERBOSE("Bbox::ignore"); args.verify_length(1); _ignore = Py::Int(args[1]); return Py::Object(); } If the length of the tuple is 1, should it read: _ignore = Py::Int(args[0]); Or does the Py::Tuple class index tuples beginning with 1? The odd thing is that I have an earlier build of matplotlib (maybe a week ago) on my laptop and it runs fine. It also has this same code in _transforms.cpp. That makes me think it is an install problem. Any thoughts? Brian |
From: Curtis C. <cu...@lp...> - 2006-02-03 17:44:30
|
Darren, Your suggestion to use afm fonts worked! It results in nice, small file sizes and fixes the ps2pdf problem I was having. Thanks, Curtis |
From: <and...@ti...> - 2006-02-03 16:49:19
|
Hello NG, I have sligthly modified the two_scales.py demo, and I am seeing something strange. In the left y-axis I plot a sin(x) curve, while on the right axis I plot an exp(x) curve. In the figure, exp(x) reach very big values so the ticks are adjusted with a "x1e4" multiplier: but this multiplier should be put on the right axis (where exp(x) is plotted) and not on the left axis (where sin(x) is plotted). Does anyone know what I am doing wrong? I attach the script at the end of the mail. Thanks in advance for every suggestion. Andrea. from pylab import * ax1 = subplot(111) t = arange(0.01, 10.0, 0.01) s2 = sin (2*pi*t) plot(t, s2, 'r.') ylabel('sin') # turn off the 2nd axes rectangle # with frameon kwarg ax2 = twinx() s1 = exp(t) plot(t, s1, 'b-') xlabel('time (s)') ylabel('exp') show() |
From: Randewijk P-J <pjr...@su...> - 2006-02-03 13:25:51
|
> -----Original Message----- > From: mat...@li... > [mailto:mat...@li...] On=20 > Behalf Of Jouni K Seppanen > Sent: 03 February 2006 14:23 > To: mat...@li... > Subject: [Matplotlib-users] Re: UserWarning: Bad key=20 > "font.latex.package" >=20 >=20 > TeX power users will want to have the option to tweak everything. >=20 > -- > Jouni I have been playing with a hack in texmanager.py & backend_ps.py to include a preamble that can consist of multiple `\usepackage{}' statements or LaTeX maros etc. just before the `\begin{document}' line, using and additional rcParams `key': rcParams['latex.preamble.filename']=3Dr'my_preamble.tex' It would be a nice addition to LaTeX power users.... if there is any interest, that is.. Peter-Jan |
From: <and...@ti...> - 2006-02-03 13:14:01
|
Hello John & NG, thank you very much for your answer. It seems to me that using set_frame_on() just hides/shows the whole axes content. Probably I didn't make myself clear (sorry for my bad english). I attach a jpeg example of what I mean for bon on/off. The figure at the left if with box "off", while at the right the box is "on". Thanks in advance. Andrea. >I didn't know matlab had such a function, but it looks from your >description like it corresponds to the frame_on attribute of the >axes. You can turn the axes box off with, eg > > ax = subplot(111, frame_on=False) > >or for an existing axes instance > > ax.set_frame_on(False) > >or with matlab-like handle graphics > > setp (ax, frame_on=False) > >( you can get the current axes instance wih gca() ) > >It just added a "box" wrapper function for pylab which >does > >def box(on=None): > """ > Turn the axes box on or off according to 'on' > > If on is None, toggle state > """ > ax = gca() > if on is None: > on = not ax.get_frame_on() > ax. set_frame_on(on) > draw_if_interactive() > > >which is now in CVS. Let me know if this has the desired behavior... > >JDH > |
From: Darren D. <dd...@co...> - 2006-02-03 12:40:52
|
On Friday 03 February 2006 7:22 am, Jouni K Seppanen wrote: > Darren Dale <dd...@co...> writes: > > When you select Times as your serif font, that loads the mathptmx > > package. Likewise, if you select palatino, the mathpazo package is > > loaded. > > Wow, that's neat! If I were to buy the commercial TM Math fonts=B9 from > Micropress, it would be useful to have some way of telling matplotlib > to use them with Times instead of the free mathptmx. I agree that it > is good to handle the usual case gracefully by letting the user > specify simply "Times" instead of an obscure LaTeX package name like > "mathptmx", but TeX power users will want to have the option to tweak > everything. > > =B9 http://www.micropress-inc.com/fonts/tmmath/tmmain.htm I don't know why anyone would want to use TM math fonts with adobe times, w= hen=20 they could use the matching "TM text" fonts instead. For now I prefer to ke= ep=20 it simple, and we can consider complexity if someone really needs it. Darren |
From: Jouni K S. <jk...@ik...> - 2006-02-03 12:23:12
|
Darren Dale <dd...@co...> writes: > When you select Times as your serif font, that loads the mathptmx package. > Likewise, if you select palatino, the mathpazo package is loaded. Wow, that's neat! If I were to buy the commercial TM Math fonts¹ from Micropress, it would be useful to have some way of telling matplotlib to use them with Times instead of the free mathptmx. I agree that it is good to handle the usual case gracefully by letting the user specify simply "Times" instead of an obscure LaTeX package name like "mathptmx", but TeX power users will want to have the option to tweak everything. ¹ http://www.micropress-inc.com/fonts/tmmath/tmmain.htm -- Jouni |
From: Darren D. <dd...@co...> - 2006-02-03 12:11:51
|
On Friday 03 February 2006 7:05 am, Darren Dale wrote: > On Friday 03 February 2006 6:47 am, Jouni K Seppanen wrote: > > Nils Wagner <nw...@me...> writes: > > > How can I get rid of this warnings ? > > > > > > UserWarning: Bad key "font.latex.package" on line 118 in > > > /home/nwagner/.matplotlib/matplotlibrc > > > UserWarning: Bad key "text.tex.engine" on line 127 in > > > /home/nwagner/.matplotlib/matplotlibrc > > > > Remove these lines from your matplotlibrc. You're apparently using the > > CVS version, since these rc keys have been removed since the last > > > > release. You should probably read the CHANGELOG file when you update: > > | 2006-02-01 Dropped TeX engine support in usetex to focus on LaTeX. - > > | DSD > > | > > | 2006-01-29 Improved usetex option to respect the serif, sans-serif, > > | monospace, and cursive rc settings. Removed the font.latex.package rc > > | setting, it is no longer required - DSD > > > > By the way, can the current implementation really do everything you > > could do with font.latex.package? For example, if I want to use the > > mathptm fonts=B9 for math, how do I specify the equivalent of > > \usepackage{mathptmx} in matplotlibrc? > > > > =B9 http://www.tex.ac.uk/cgi-bin/texfaq2html?label=3Dpsfchoice > > Thank you for the link. I was not familiar with it and will give it a clo= se > look, maybe this weekend. > > When you select Times as your serif font, that loads the mathptmx package. > Likewise, if you select palatino, the mathpazo package is loaded. Here is= a > link to a pdf discussing the adobe fon packages that are currently > available, its a good reference for the usetex'ers out there. I'll add a > link to the wiki when it is time to update it. Sorry, here's the link http://www.ctan.org/tex-archive/macros/latex/required/psnfss/psnfss2e.pdf=20 |
From: Darren D. <dd...@co...> - 2006-02-03 12:06:15
|
On Friday 03 February 2006 6:47 am, Jouni K Seppanen wrote: > Nils Wagner <nw...@me...> writes: > > How can I get rid of this warnings ? > > > > UserWarning: Bad key "font.latex.package" on line 118 in > > /home/nwagner/.matplotlib/matplotlibrc > > UserWarning: Bad key "text.tex.engine" on line 127 in > > /home/nwagner/.matplotlib/matplotlibrc > > Remove these lines from your matplotlibrc. You're apparently using the > CVS version, since these rc keys have been removed since the last > > release. You should probably read the CHANGELOG file when you update: > | 2006-02-01 Dropped TeX engine support in usetex to focus on LaTeX. - DSD > | > | 2006-01-29 Improved usetex option to respect the serif, sans-serif, > | monospace, and cursive rc settings. Removed the font.latex.package rc > | setting, it is no longer required - DSD > > By the way, can the current implementation really do everything you > could do with font.latex.package? For example, if I want to use the > mathptm fonts=B9 for math, how do I specify the equivalent of > \usepackage{mathptmx} in matplotlibrc? > > =B9 http://www.tex.ac.uk/cgi-bin/texfaq2html?label=3Dpsfchoice Thank you for the link. I was not familiar with it and will give it a close= =20 look, maybe this weekend. When you select Times as your serif font, that loads the mathptmx package.= =20 Likewise, if you select palatino, the mathpazo package is loaded. Here is a= =20 link to a pdf discussing the adobe fon packages that are currently availabl= e,=20 its a good reference for the usetex'ers out there. I'll add a link to the=20 wiki when it is time to update it. =2D-=20 Darren S. Dale, Ph.D. dd...@co... |
From: Jouni K S. <jk...@ik...> - 2006-02-03 11:48:34
|
Nils Wagner <nw...@me...> writes: > How can I get rid of this warnings ? > > UserWarning: Bad key "font.latex.package" on line 118 in > /home/nwagner/.matplotlib/matplotlibrc > UserWarning: Bad key "text.tex.engine" on line 127 in > /home/nwagner/.matplotlib/matplotlibrc Remove these lines from your matplotlibrc. You're apparently using the CVS version, since these rc keys have been removed since the last release. You should probably read the CHANGELOG file when you update: | 2006-02-01 Dropped TeX engine support in usetex to focus on LaTeX. - DSD | | 2006-01-29 Improved usetex option to respect the serif, sans-serif, monospace, | and cursive rc settings. Removed the font.latex.package rc setting, | it is no longer required - DSD By the way, can the current implementation really do everything you could do with font.latex.package? For example, if I want to use the mathptm fonts¹ for math, how do I specify the equivalent of \usepackage{mathptmx} in matplotlibrc? ¹ http://www.tex.ac.uk/cgi-bin/texfaq2html?label=psfchoice -- Jouni |
From: Nils W. <nw...@me...> - 2006-02-03 08:04:02
|
Hi all, How can I get rid of this warnings ? >>> import matplotlib /usr/lib64/python2.4/site-packages/matplotlib/__init__.py:892: UserWarning: Bad key "font.latex.package" on line 118 in /home/nwagner/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) /usr/lib64/python2.4/site-packages/matplotlib/__init__.py:892: UserWarning: Bad key "text.tex.engine" on line 127 in /home/nwagner/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) >>> matplotlib.__version__ '0.86.2' Nils |
From: Curtis C. <cu...@lp...> - 2006-02-03 05:30:41
|
Thanks for the feedback! It sounds like it's just a quirk of my particular setup and will not inhibit usage of the figures in the paper. So, I'll ignore it, since I can always print it perfectly from just the postscript directly. Cheers, Curtis * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Curtis S. Cooper, Graduate Research Assistant * * Lunar and Planetary Laboratory, University of Arizona * * http://www.lpl.arizona.edu/~curtis/ * * Kuiper Space Sciences, Rm. 318 * * 1629 E. University Blvd., * * Tucson, AZ 85721 * * * * * * * * * * * * * * * * Wk: (520) 621-1471 * * * * * * * * * * * * * On Thu, 2 Feb 2006, Darren Dale wrote: > Hi Curtis, > > I'm afraid I can't be of much help. I've printed your pdf files on two > different computers now, one at work and one at home, without any problems. > Maybe you have a problem with your printer driver? > > Darren > > On Tuesday 31 January 2006 2:55 pm, Curtis Cooper wrote: > > Hi Darren, > > > > Thanks for your reply. I am sending you a postscript figure from my > > upcoming Astrophysical Journal paper and the barebones Python/Pylab code > > used to generate it. > > > > I do not normally use the psdistiller or usetex options. I have changed > > my rc settings by letting numerix = numarray. Otherwise, they are the > > same as the default in all fields. > > > > I am using matplotlib CVS (current as of yesterday). My operating system > > is Debian "testing," which by default uses Python 2.3 (not 2.4). I always > > just use Python 2.3 per the Debian default. The packages are current. > > > > For the paper itself, I use Latex2e (AASTEX just has Latex macros to > > help typeset papers for ApJ). But the problem shows up when I do ps2pdf > > on the fig.ps file as well as ps2pdf on the whole paper. So I don't think > > that's the issue. > > > > I'm using GPL (not Aladdin) Ghostscript for the ps2pdf. Although fig.pdf > > displays correctly in acroread and xpdf, it does not print correctly (when > > I go print... in acroread 7). Using epstopdf produces the same thing: an > > apparently fine pdf file of the figure that doesn't print properly. > > > > Thanks, > > Curtis > > -- > Darren S. Dale, Ph.D. > dd...@co... > |
From: Darren D. <dd...@co...> - 2006-02-03 02:50:45
|
Hi Curtis, I'm afraid I can't be of much help. I've printed your pdf files on two different computers now, one at work and one at home, without any problems. Maybe you have a problem with your printer driver? Darren On Tuesday 31 January 2006 2:55 pm, Curtis Cooper wrote: > Hi Darren, > > Thanks for your reply. I am sending you a postscript figure from my > upcoming Astrophysical Journal paper and the barebones Python/Pylab code > used to generate it. > > I do not normally use the psdistiller or usetex options. I have changed > my rc settings by letting numerix = numarray. Otherwise, they are the > same as the default in all fields. > > I am using matplotlib CVS (current as of yesterday). My operating system > is Debian "testing," which by default uses Python 2.3 (not 2.4). I always > just use Python 2.3 per the Debian default. The packages are current. > > For the paper itself, I use Latex2e (AASTEX just has Latex macros to > help typeset papers for ApJ). But the problem shows up when I do ps2pdf > on the fig.ps file as well as ps2pdf on the whole paper. So I don't think > that's the issue. > > I'm using GPL (not Aladdin) Ghostscript for the ps2pdf. Although fig.pdf > displays correctly in acroread and xpdf, it does not print correctly (when > I go print... in acroread 7). Using epstopdf produces the same thing: an > apparently fine pdf file of the figure that doesn't print properly. > > Thanks, > Curtis -- Darren S. Dale, Ph.D. dd...@co... |
From: John H. <jdh...@ac...> - 2006-02-03 02:50:32
|
>>>>> "Ted" == Ted Drain <ted...@jp...> writes: Ted> Panos, Ordinal in this context is the y values. It's not the Ted> length of the y array, it's the values in the array. Dates Ted> are days past some epoch and dates before the epoch are not Ted> allowed. Maybe you're getting a date value that's < 1 which Ted> is what is causing the problem. Are you plotting dates on Ted> the y axis anywhere? Here ordinal is used in the sense of the python datetime toordinal method, not in the ordinal / abscissa of the y / x axis. Admittendly ambiguous. But I think your first comment is spot on: probably an illegal ordinal value is used, eg import datetime print datetime.datetime.fromordinal(1) print datetime.datetime.fromordinal(0) JDH |
From: John H. <jdh...@ac...> - 2006-02-03 02:47:28
|
>>>>> "Victoria" == Victoria G Laidler <la...@st...> writes: Victoria> Hi folks, I frequently need to make a vector plot that Victoria> shows (dx,dy) displacements from a set of (x,y) Victoria> points. "Quiver" doesn't seem to do quite what I want, Victoria> although maybe I just can't figure out how to use it. There have been a few gripes about quiver...you are not alone. for i in range(len(x)): dhandle=plot([x[i],u[i]],[y[i],v[i]],'o-b', label='shifts [* %4.1f]'%scale) In general, repeated calls to plot can be very inefficient since a new matplotlib.lines.Line2D object is created each time. In cases like these, you want to use a LineCollection or a PolygonCollection (see matplotlib.collections). There are a number of examples in matplotlib.axes and matplotlib.finance. Search for collections... Thanks! JDH |
From: John H. <jdh...@ac...> - 2006-02-03 02:45:33
|
>>>>> "Nils" == Nils Wagner <nw...@me...> writes: Nils> legend(r'u_0') This is a typical error. legend expects you to pass a sequence of strings, not a string (otherwise it interprets the string as a sequence). This has nothing to do with subscripting... But we should warn on this because it is such a common mistake. What you want is legend((r'u_0',)) JDH |
From: John H. <jdh...@ac...> - 2006-02-03 02:42:14
|
>>>>> "Andrea" == Andrea Gavana <and...@ti...> writes: Andrea> Hello NG, I am sorry for the possible stupid Andrea> question. Does it make any sense to ask if it's possible Andrea> to define in matplotlib a Matlab-like command: Andrea> box on Andrea> or: Andrea> box off Andrea> In order to draw/undraw the axes bounding box? I didn't know matlab had such a function, but it looks from your description like it corresponds to the frame_on attribute of the axes. You can turn the axes box off with, eg ax = subplot(111, frame_on=False) or for an existing axes instance ax.set_frame_on(False) or with matlab-like handle graphics setp(ax, frame_on=False) ( you can get the current axes instance wih gca() ) It just added a "box" wrapper function for pylab which does def box(on=None): """ Turn the axes box on or off according to 'on' If on is None, toggle state """ ax = gca() if on is None: on = not ax.get_frame_on() ax.set_frame_on(on) draw_if_interactive() which is now in CVS. Let me know if this has the desired behavior... JDH |