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
(4) |
2
(13) |
3
(4) |
4
(6) |
5
(6) |
6
|
|
7
|
8
(6) |
9
(2) |
10
(2) |
11
(3) |
12
(3) |
13
(2) |
|
14
(2) |
15
(2) |
16
(6) |
17
(8) |
18
(10) |
19
(17) |
20
(8) |
|
21
(4) |
22
(10) |
23
(7) |
24
(7) |
25
(8) |
26
(11) |
27
(5) |
|
28
|
29
(5) |
30
|
31
(4) |
|
|
|
|
From: Gene C. <gc...@br...> - 2006-05-22 13:21:52
|
Work around: break up the data into pieces and plot() the pieces rather than the entire data set. Gene Carter wrote: > Greetings, > > I believe I've hit the bug noted in the 2004-07-28 matplotlib-users post > with a subject "plot dense and large array, AGG limit?". > > I'm wondering if there has been a work around identified. I looked for a > follow up in the matplotlib lists as well as the vector-agg-general list. > > I've tried to use cairo, but I'm having problems getting my mathtext to > work, even after setting my numerix to numpy. > > Any help would be appreciated as I'd like to use matplotlib to make > figures for a manuscript I'm writing. > > Gene Carter > > |
|
From: John H. <jdh...@ac...> - 2006-05-22 13:20:13
|
>>>>> "Eric" == Eric Emsellem <ems...@ob...> writes:
Eric> Hi, I have now a problem when using setp, please try this
Eric> (maybe it is wrong, but it worked before...). Thanks for
Eric> any help here Eric
This was a bug I introduced into svn last night and fixed this
morning. make sure you are using revision 2410 or later.
JDH
|
|
From: Eric E. <ems...@ob...> - 2006-05-22 13:19:17
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
ok: it didn't work for me because I was trying brute force (showing my
bad knowledge of python), so changing it using p.set_edgecolor ...<br>
Indeed it should work with setp... <br>
<br>
Except that now I have a systematic error trying to use setp. (same as
the one indicated in "BUG ..." I just sent)<br>
<br>
thanks<br>
Eric<br>
<br>
John Hunter wrote:
<blockquote cite="mid...@pe..."
type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">"Eric" == Eric Emsellem <a class="moz-txt-link-rfc2396E" href="mailto:ems...@ob..."><ems...@ob...></a> writes:
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->
Eric> Hi, how would you easily set the EDGEcolor of the bars
Eric> (using "bar")? I see a "set/get_edgecolor" in the output of
Eric> the bar command (p1 = bar ...) but I cannot manage to change
Eric> the edgecolors of my bars...
Works for me...
from pylab import subplot, show, setp, nx
ax = subplot(111)
p = ax.bar(range(10), range(10))
setp(p, edgecolor='red', facecolor='green', linewidth=4)
show()
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
====================================================================
Eric Emsellem <a class="moz-txt-link-abbreviated" href="mailto:ems...@ob...">ems...@ob...</a>
Centre de Recherche Astrophysique de Lyon
9 av. Charles-Andre tel: +33 (0)4 78 86 83 84
69561 Saint-Genis Laval Cedex fax: +33 (0)4 78 86 83 86
France <a class="moz-txt-link-freetext" href="http://www-obs.univ-lyon1.fr/eric.emsellem">http://www-obs.univ-lyon1.fr/eric.emsellem</a>
====================================================================
</pre>
</body>
</html>
|
|
From: Eric E. <ems...@ob...> - 2006-05-22 13:16:30
|
Hi,
I have now a problem when using setp, please try this (maybe it is
wrong, but it worked before...).
Thanks for any help here
Eric
---------------------------------------------------------------------------
scatter([0,1],[0,1])
xticklabels = get(gca(), 'xticklabels')
setp(xticklabels, fontsize='large')
---------------------------------------------------------------------------
exceptions.TypeError Traceback (most
recent call last)
/home/science/Sauron/AnalysisKin/Paper7/<ipython console>
/usr/lib/python2.4/site-packages/matplotlib/pylab.py in setp(*args,
**kwargs)
1444
1445 def setp(*args, **kwargs):
-> 1446 ret = _setp(*args, **kwargs)
1447 draw_if_interactive()
1448 return ret
/usr/lib/python2.4/site-packages/matplotlib/artist.py in setp(h, *args,
**kwargs)
488
489 ret = []
--> 490 for o in h:
491 for s, val in funcvals:
492 s = s.lower()
/usr/lib/python2.4/site-packages/matplotlib/cbook.py in flatten(seq,
scalarp)
96 if scalarp(item): yield item
97 else:
---> 98 for subitem in flatten(item, scalarp):
99 yield subitem
100
/usr/lib/python2.4/site-packages/matplotlib/cbook.py in flatten(seq,
scalarp)
93 and Recipe 1.12 in cookbook
94 """
---> 95 for item in seq:
96 if scalarp(item): yield item
97 else:
TypeError: iteration over non-sequence
|
|
From: John H. <jdh...@ac...> - 2006-05-22 13:05:00
|
>>>>> "Eric" == Eric Emsellem <ems...@ob...> writes:
Eric> Hi, how would you easily set the EDGEcolor of the bars
Eric> (using "bar")? I see a "set/get_edgecolor" in the output of
Eric> the bar command (p1 = bar ...) but I cannot manage to change
Eric> the edgecolors of my bars...
Works for me...
from pylab import subplot, show, setp, nx
ax = subplot(111)
p = ax.bar(range(10), range(10))
setp(p, edgecolor='red', facecolor='green', linewidth=4)
show()
|
|
From: Eric E. <ems...@ob...> - 2006-05-22 13:00:19
|
HI,
sorry I just found the way to change the edgecolor of my "bars" by just
changing the global option:
rc('patch', edgecolor='r')
before I use
p1 = bar(......)
cheers
Eric
Eric Emsellem wrote:
> Hi,
>
> how would you easily set the EDGEcolor of the bars (using "bar")?
> I see a "set/get_edgecolor" in the output of the bar command (p1 = bar
> ...) but I cannot manage to change the edgecolors of my bars...
>
> thanks
>
> Eric
>
--
====================================================================
Eric Emsellem ems...@ob...
Centre de Recherche Astrophysique de Lyon
9 av. Charles-Andre tel: +33 (0)4 78 86 83 84
69561 Saint-Genis Laval Cedex fax: +33 (0)4 78 86 83 86
France http://www-obs.univ-lyon1.fr/eric.emsellem
====================================================================
|
|
From: Eric E. <ems...@ob...> - 2006-05-22 12:44:16
|
Hi, how would you easily set the EDGEcolor of the bars (using "bar")? I see a "set/get_edgecolor" in the output of the bar command (p1 = bar ...) but I cannot manage to change the edgecolors of my bars... thanks Eric |
|
From: Steve S. <el...@gm...> - 2006-05-21 22:57:41
|
John Hunter wrote:
>>>>>>"Ryan" == Ryan Krauss <rya...@gm...> writes:
>
>
> Ryan> Is there a built-in way for pylab to put the legend off to
> Ryan> the right of the plot. I need to have a fairly long legend
> Ryan> (12 entries) and I need to figure out what to do with it.
> Ryan> (The plot is not as ugly as it sounds with 12 things on it.)
>
> You can use a figure legend to place a legend outside the axes; see
> examples/figlegend_demo.py
>
> JDH
>
I played arround with something like that:
x = arange(0,5,.1)
axes([.1, .1, .75, .8])
plot(x, sin(x), x, cos(x))
y_loc = 0.917
legend(('sin', 'cos'), loc=(1.01, y_loc))
However, the downsides are:
1) You have to play arround with axes() to get the same whitespace
arround the plot (bottom, left, top) as in a normal plot. BTW where are
these defined (I found nothing in my matplotlibrc)?
2) One has to adjust the 'y_loc' value for every new legend entry.
How much effort would go into adding an inside/outside switch to the
legend() command (like in gnuplot)?
cheers,
steve
--
Random number generation is the art of producing pure gibberish as
quickly as possible.
|
|
From: John H. <jdh...@ac...> - 2006-05-21 15:42:27
|
>>>>> "Ryan" == Ryan Krauss <rya...@gm...> writes:
Ryan> Is there a built-in way for pylab to put the legend off to
Ryan> the right of the plot. I need to have a fairly long legend
Ryan> (12 entries) and I need to figure out what to do with it.
Ryan> (The plot is not as ugly as it sounds with 12 things on it.)
You can use a figure legend to place a legend outside the axes; see
examples/figlegend_demo.py
JDH
|
|
From: Alan G I. <ai...@am...> - 2006-05-21 13:45:35
|
On Sun, 21 May 2006, Wenjie He apparently wrote:=20 > I have some data in discrete spot to represent a specific region,=20 > and want to trace some "contour" in the aera to show that.=20 http://www.scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_data= =20 might help. Cheers, Alan Isaac |
|
From: Wenjie H. <laz...@gm...> - 2006-05-21 13:29:56
|
SSBoYXZlIHNvbWUgZGF0YSBpbiBkaXNjcmV0ZSBzcG90IHRvIHJlcHJlc2VudCBhIHNwZWNpZmlj IHJlZ2lvbiwKYW5kIHdhbnQgdG8gdHJhY2Ugc29tZSAiY29udG91ciIgaW4gdGhlIGFlcmEgdG8g c2hvdyB0aGF0LgoKQnV0IHdoZW4gSSB1c2UgdGhlIGNvbnRvdXIgZnVuY3Rpb24gc2ltcGxlIGxp a2UgdGhpczoKY29udG91cihYLCBZLCBaKQp0aGUgY29udG91ciB3YXMgdHJhY2VkLCBidXQgdXNp bmcgYnJva2VuIGxpbmUgbm90IHNtb290aCBjdXJ2ZS4KCkkgZmluZCBzb21lIHNpbXBsZSBjb250 b3VyIGFsZ29yaXRobSxhbmQgd2l0aCBhIGxpdHRsZSBoYWNrIGNhbiBkbyB0aGlzLApCdXQgc3Rp bGwsIEkganVzdCBsaWtlIHRoZSB2ZXJ5IHNtb290aCBjb250b3VyIHNob3duIGluIGV4YW1wbGUK ImNvbnRvdXJfZGVtby5weSIKSSB0aGluayBteSBwcm9ibGVtIGlzIG5vdCB2ZXJ5IHNjYXJjZSwK SXMgYW55Ym9keSBoYXZlIHRyaWNrIHRvIGRvIHRoaXM/CgpNYW55IHRoYW5rcy4KCldlbmppZQoK LS0KSSdtIGxhenksIEknbSBjb2RpbmcuCmh0dHA6Ly9teS5kb25ld3MuY29tL2hlbm90aWkK |
|
From: Eric F. <ef...@ha...> - 2006-05-20 18:36:51
|
Rory, I applied your patch to svn, revision 2408. Thanks. Eric Rory Yorke wrote: > Dear list, > > There is a bug in stem, demonstrated by: > > > from matplotlib.pylab import * > > stem(arange(10),arange(10),hold=False) > show() > > > A simple fix is below; it simply sets hold to True for the duration of > the stem method, and restores the hold state once done. > > This was tested with the very simple > > > plot(arange(10)); stem(arange(10),arange(10),hold=True); show() > > > and > > > plot(arange(10)); stem(arange(10),arange(10),hold=False); show() > > > Regards, > > Rory > > Index: axes.py > =================================================================== > --- axes.py (revision 2406) > +++ axes.py (working copy) > @@ -2509,7 +2509,10 @@ > http://www.mathworks.com/access/helpdesk/help/techdoc/ref/stem.html > for details and examples/stem_plot.py for a demo. > """ > + remember_hold=self._hold > if not self._hold: self.cla() > + self.hold(True) > + > markerline, = self.plot(x, y, markerfmt) > > stemlines = [] > @@ -2518,6 +2521,9 @@ > stemlines.append(l) > > baseline, = self.plot([amin(x), amax(x)], [0,0], basefmt) > + > + self.hold(remember_hold) > + > return markerline, stemlines, baseline > > > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Darren D. <dd...@co...> - 2006-05-20 18:07:04
|
Try passing the "loc" kwarg, like loc=(1.05, 0) to the legend command. plot([1,2]) legend(['line1'], loc=(1.05,0)) Darren On Saturday 20 May 2006 13:48, Ryan Krauss wrote: > Is there a built-in way for pylab to put the legend off to the right > of the plot. I need to have a fairly long legend (12 entries) and I > need to figure out what to do with it. (The plot is not as ugly as it > sounds with 12 things on it.) > > Ryan > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&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 |
|
From: Ryan K. <rya...@gm...> - 2006-05-20 17:48:11
|
Is there a built-in way for pylab to put the legend off to the right of the plot. I need to have a fairly long legend (12 entries) and I need to figure out what to do with it. (The plot is not as ugly as it sounds with 12 things on it.) Ryan |
|
From: John H. <jdh...@ac...> - 2006-05-20 17:33:36
|
>>>>> "Ryan" == Ryan Krauss <rya...@gm...> writes:
Ryan> I have to plot some things that are the results of
Ryan> hyperbolic sines and cosines. This leads to large
Ryan> amplitudes on the y-axis. I am having trouble saving these
Ryan> plots to eps files. But I have done this successfully
Ryan> before.
Ryan> These lines
Ryan> b=arange(1,40,0.5) y=sinh(b) figure(5) plot(b,y)
Ryan> savefig('test3.eps') savefig('test3.png')
Ryan> where the png is fine and the eps shows only an empty axis.
Ryan> I have to get my thesis to my committee next week and I am
Ryan> freaking out a bit.
It looks fine for me using matplotlib svn -- try dropping the attached
backend_ps file into your site-packages/matplotlib/backends/ dir
Darren went through some last minute matplotlib thesis panics too,
mainly over mathtext, but got through. Breath deeply -- I'm sure we
can get it worked out....
|
|
From: Darren D. <dd...@co...> - 2006-05-20 17:21:21
|
On Saturday 20 May 2006 13:03, Ryan Krauss wrote:
> Updating to the latest svn seems to have solved my problems.
Thats good to hear. Your problem may have been caused by the conversion of the
ps backend to use the new api, which may have been incomplete at the time of
your last update. I believe the backend has stabilized.
> One weird note though, it seems like the version I was using (svn from
> a month or so ago) was more tolerant to latex errors. The first time
> after I updated, I got errors on some of the scripts I wrote
> yesterday. The current version gives a message about Latex not being
> able to process my file. The old version made it through. It turns
> out that I has omitted open and/or closing $'s in the Latex x and y
> labels. Some how the old version handled '\\beta' and '$\\omega'
> just fine. It is probably better to just print out the Latex errors
> and not try to guess how to fix it, but the older version was guessing
> correctly.
I put some effort into making usetex behave this way. What you are seeing is
latex returning an exit status indicating an error. When that happens, mpl
raises an error and passes along the latex error. I think this is much better
than failing silently and hoping for the best, because often latex would not
guess correctly (\frac{1}{2} vs $\frac{1}{2}$ is a good example).
I apologize for any trouble it may cause you, especially considering you are
finishing up your thesis. But this change was necessary in order to help me
track down problems, which was becoming time consuming.
Darren
|
|
From: Ryan K. <rya...@gm...> - 2006-05-20 17:03:16
|
Updating to the latest svn seems to have solved my problems.
One weird note though, it seems like the version I was using (svn from
a month or so ago) was more tolerant to latex errors. The first time
after I updated, I got errors on some of the scripts I wrote
yesterday. The current version gives a message about Latex not being
able to process my file. The old version made it through. It turns
out that I has omitted open and/or closing $'s in the Latex x and y
labels. Some how the old version handled '\\beta' and '$\\omega'
just fine. It is probably better to just print out the Latex errors
and not try to guess how to fix it, but the older version was guessing
correctly.
FWIH,
Ryan
On 5/20/06, Darren Dale <dd...@co...> wrote:
> On Saturday 20 May 2006 12:23, you wrote:
> > I am installing the latest svn version right now. We will see what
> > happens.
>
> I understand your caution. Dealing with thesis deadlines can be stressful.
>
> I tried your example with svn mpl, with usetex and without, and the eps output
> looked fine.
>
> Darren
>
> > On 5/20/06, Ryan Krauss <rya...@gm...> wrote:
> > > '0.88svn'
> > >
> > > I am a little nervous about changing versions and having something
> > > break at this point, but if that is what it takes.
> > >
> > > Ryan
> > >
> > > On 5/20/06, Darren Dale <dd...@co...> wrote:
> > > > On Saturday 20 May 2006 11:36 am, you wrote:
> > > > > I have to plot some things that are the results of hyperbolic sines
> > > > > and cosines. This leads to large amplitudes on the y-axis. I am
> > > > > having trouble saving these plots to eps files. But I have done this
> > > > > successfully before.
> > > > >
> > > > > These lines
> > > > >
> > > > > b=arange(1,40,0.5)
> > > > > y=sinh(b)
> > > > > figure(5)
> > > > > plot(b,y)
> > > > > savefig('test3.eps')
> > > > > savefig('test3.png')
> > > > >
> > > > > where the png is fine and the eps shows only an empty axis.
> > > > >
> > > > > I have to get my thesis to my committee next week and I am freaking
> > > > > out a bit.
> > > > >
> > > > > Please help me.
> > > >
> > > > What version are you using
>
> --
> 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: Ryan K. <rya...@gm...> - 2006-05-20 15:36:18
|
I have to plot some things that are the results of hyperbolic sines
and cosines. This leads to large amplitudes on the y-axis. I am
having trouble saving these plots to eps files. But I have done this
successfully before.
These lines
b=arange(1,40,0.5)
y=sinh(b)
figure(5)
plot(b,y)
savefig('test3.eps')
savefig('test3.png')
where the png is fine and the eps shows only an empty axis.
I have to get my thesis to my committee next week and I am freaking out a bit.
Please help me.
Thanks,
Ryan
|
|
From: Rory Y. <ry...@te...> - 2006-05-20 08:22:52
|
Dear list,
There is a bug in stem, demonstrated by:
from matplotlib.pylab import *
stem(arange(10),arange(10),hold=False)
show()
A simple fix is below; it simply sets hold to True for the duration of
the stem method, and restores the hold state once done.
This was tested with the very simple
plot(arange(10)); stem(arange(10),arange(10),hold=True); show()
and
plot(arange(10)); stem(arange(10),arange(10),hold=False); show()
Regards,
Rory
Index: axes.py
===================================================================
--- axes.py (revision 2406)
+++ axes.py (working copy)
@@ -2509,7 +2509,10 @@
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/stem.html
for details and examples/stem_plot.py for a demo.
"""
+ remember_hold=self._hold
if not self._hold: self.cla()
+ self.hold(True)
+
markerline, = self.plot(x, y, markerfmt)
stemlines = []
@@ -2518,6 +2521,9 @@
stemlines.append(l)
baseline, = self.plot([amin(x), amax(x)], [0,0], basefmt)
+
+ self.hold(remember_hold)
+
return markerline, stemlines, baseline
|
|
From: Gene C. <gc...@br...> - 2006-05-19 22:26:41
|
Greetings, I believe I've hit the bug noted in the 2004-07-28 matplotlib-users post with a subject "plot dense and large array, AGG limit?". I'm wondering if there has been a work around identified. I looked for a follow up in the matplotlib lists as well as the vector-agg-general list. I've tried to use cairo, but I'm having problems getting my mathtext to work, even after setting my numerix to numpy. Any help would be appreciated as I'd like to use matplotlib to make figures for a manuscript I'm writing. Gene Carter |
|
From: JUAN E. F. B. <jua...@ho...> - 2006-05-19 18:07:14
|
hi you all, actually i am trying to install matplotlib toolkits, i typed to install basemap-0.8.2 ------------------------------------------------- python setup.py install running install running build running build_py running build_ext running install_lib ------------------------------------------------- to install basemap-data-0.8: ------------------------------------------------- python setup.py install install usr/share/basemap countries_c.txt install usr/share/basemap countries_h.txt install usr/share/basemap countries_i.txt install usr/share/basemap countries_l.txt install usr/share/basemap gshhs_c.txt install usr/share/basemap gshhs_h.txt install usr/share/basemap gshhs_i.txt install usr/share/basemap gshhs_l.txt install usr/share/basemap rivers_c.txt install usr/share/basemap rivers_h.txt install usr/share/basemap rivers_i.txt install usr/share/basemap rivers_l.txt install usr/share/basemap states_c.txt install usr/share/basemap states_h.txt install usr/share/basemap states_i.txt install usr/share/basemap states_l.txt however everytime i try: #from matplotlib.toolkits.basemap import Basemap i receive the following messagge: ImportError: No module named toolkits.basemap i did entered to /usr/share/basemap and found out there are the txt data files, the same at /usr/lib/python2.4/site-packages/matplotlib/toolkits/basemap what the problem could be?? do ia have to configure aything else, or should i downgrade to basemap-0.8.1 module?? thanks for your answers in advance juan |
|
From: John H. <jdh...@ac...> - 2006-05-19 16:51:41
|
>>>>> "Eric" == Eric Emsellem <ems...@ob...> writes:
Eric> I think there is a bug with the new verts because it
Eric> cannot then use "scales" with len(scales)=1.:
Eric> /usr/lib/python2.4/site-packages/matplotlib/axes.py in
Eric> scatter(self, x, y, s, c, marker, cmap, norm, vmin, vmax,
Eric> alpha, linewidths, faceted, verts, **kwargs) 3072 #scales =
Eric> sqrt(scales * self.figure.dpi.get() / 72.) 3073 if
Eric> len(scales)==1:
-> 3074 verts = [s[0]*verts]
Fixed in svn 2404 -- thanks.
JDH
|
|
From: Eric E. <ems...@ob...> - 2006-05-19 16:47:34
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I think there is a bug with the new verts because it cannot then use
"scales" with len(scales)=1.:<br>
<br>
/usr/lib/python2.4/site-packages/matplotlib/axes.py in scatter(self, x,
y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, faceted,
verts, **kwargs)<br>
3072 #scales = sqrt(scales * self.figure.dpi.get() / 72.)<br>
3073 if len(scales)==1:<br>
-> 3074 verts = [s[0]*verts]<br>
<br>
Eric<br>
<br>
<br>
John Hunter wrote:
<blockquote cite="mid...@pe..."
type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">"Eric" == Eric Emsellem <a class="moz-txt-link-rfc2396E" href="mailto:ems...@ob..."><ems...@ob...></a> writes:
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->
Eric> Hi again, I am trying to see if I could produce a scatter
Eric> plot (using "scatter" or "plot") but using NEW symbols (so
Eric> not already available in the list provided). I would like to
Eric> design new symbols (in some way which is to be defined) so
Eric> that scatter and/or plot would be able to use them.
Eric> Examples: horizontal or vertical or even rotated ellipses,
Eric> icon sketched galaxy-looking symbols, ...
Eric> Any hint on how to do this?
Eric> thanks in advance for any help here!
Eric> Eric P.S.: I already posted a similar question a few days
Eric> ago, so forgive me for this repetition...
persistence wins the day!
I added an option to scatter to support custom markers. You pass in a
list if x,y vertices for the polygon you want to use as the marker.
I haven't quite worked out the scaling yet, so for now use scale
arguments that look right and understand that this may change when we
get the scaling issue cleaned up.
I added an example to svn revision 2402
examples/scatter_custom_symbol.py. Here it is, using an ellipse
from pylab import figure, nx, show
# unit area ellipse
rx, ry = 3., 1.
area = rx * ry * nx.pi
theta = nx.arange(0, 2*nx.pi+0.01, 0.1)
verts = zip(rx/area*nx.cos(theta), ry/area*nx.sin(theta))
x,y,s,c = nx.rand(4, 30)
s*= 10**2.
fig = figure()
ax = fig.add_subplot(111)
ax.scatter(x,y,s,c,marker=None,verts =verts)
show()
One thing we can do to make this more user friendly is to add new
symbols to the scatter symbol table, eg
'wellipse' : a wide ellipse
'tellipse' : a tall ellipse
and map names to sequences of vertices. So as you create the custom
symbols you want to use, send them to me and I'll add them to the
defaults, where appropriate.
Cheers,
JDH
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
====================================================================
Eric Emsellem <a class="moz-txt-link-abbreviated" href="mailto:ems...@ob...">ems...@ob...</a>
Centre de Recherche Astrophysique de Lyon
9 av. Charles-Andre tel: +33 (0)4 78 86 83 84
69561 Saint-Genis Laval Cedex fax: +33 (0)4 78 86 83 86
France <a class="moz-txt-link-freetext" href="http://www-obs.univ-lyon1.fr/eric.emsellem">http://www-obs.univ-lyon1.fr/eric.emsellem</a>
====================================================================
</pre>
</body>
</html>
|
|
From: John H. <jdh...@ac...> - 2006-05-19 16:35:24
|
>>>>> "Nicolas" == Nicolas Gruel <gr...@as...> writes:
Nicolas> Hi, it seems that there are a bug in numerix with
Nicolas> numarray (it's working fine with numpy) and the random
Nicolas> array package.
Nicolas> $ python scatter_custom_symbol.py Traceback (most recent
Nicolas> call last): File "scatter_custom_symbol.py", line 9, in ?
Nicolas> x,y,s,c = nx.rand(4, 30) AttributeError: 'module' object
Nicolas> has no attribute 'rand'
Nicolas> humufr@tigane:~/tmp/Python/SCIPY/matplotlib/matplotlib/examples
Fixed in svn -- thanks.
JDH
|
|
From: Nicolas G. <gr...@as...> - 2006-05-19 16:31:41
|
Hi,
it seems that there are a bug in numerix with numarray (it's working fine w=
ith=20
numpy) and the random array package.
$ python scatter_custom_symbol.py
Traceback (most recent call last):
File "scatter_custom_symbol.py", line 9, in ?
x,y,s,c =3D nx.rand(4, 30)
AttributeError: 'module' object has no attribute 'rand'
humufr@tigane:~/tmp/Python/SCIPY/matplotlib/matplotlib/examples
N.
Le Friday 19 Mai 2006 10:10, John Hunter a =E9crit=A0:
> >>>>> "Eric" =3D=3D Eric Emsellem <ems...@ob...> writes:
>
> Eric> Hi again, I am trying to see if I could produce a scatter
> Eric> plot (using "scatter" or "plot") but using NEW symbols (so
> Eric> not already available in the list provided). I would like to
> Eric> design new symbols (in some way which is to be defined) so
> Eric> that scatter and/or plot would be able to use them.
> Eric> Examples: horizontal or vertical or even rotated ellipses,
> Eric> icon sketched galaxy-looking symbols, ...
>
> Eric> Any hint on how to do this?
>
> Eric> thanks in advance for any help here!
>
> Eric> Eric P.S.: I already posted a similar question a few days
> Eric> ago, so forgive me for this repetition...
>
> persistence wins the day!
>
> I added an option to scatter to support custom markers. You pass in a
> list if x,y vertices for the polygon you want to use as the marker.
>
> I haven't quite worked out the scaling yet, so for now use scale
> arguments that look right and understand that this may change when we
> get the scaling issue cleaned up.
>
> I added an example to svn revision 2402
> examples/scatter_custom_symbol.py. Here it is, using an ellipse
>
> from pylab import figure, nx, show
>
> # unit area ellipse
> rx, ry =3D 3., 1.
> area =3D rx * ry * nx.pi
> theta =3D nx.arange(0, 2*nx.pi+0.01, 0.1)
> verts =3D zip(rx/area*nx.cos(theta), ry/area*nx.sin(theta))
>
> x,y,s,c =3D nx.rand(4, 30)
> s*=3D 10**2.
>
>
> fig =3D figure()
> ax =3D fig.add_subplot(111)
> ax.scatter(x,y,s,c,marker=3DNone,verts =3Dverts)
>
> show()
>
> One thing we can do to make this more user friendly is to add new
> symbols to the scatter symbol table, eg
>
> 'wellipse' : a wide ellipse
> 'tellipse' : a tall ellipse
>
> and map names to sequences of vertices. So as you create the custom
> symbols you want to use, send them to me and I'll add them to the
> defaults, where appropriate.
>
> Cheers,
> JDH
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|