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
(10) |
2
(30) |
3
(11) |
4
(5) |
5
(14) |
6
(21) |
7
(19) |
8
(29) |
9
(23) |
10
(5) |
11
(3) |
12
(9) |
13
(6) |
14
(12) |
15
(10) |
16
(15) |
17
(5) |
18
(6) |
19
(4) |
20
(28) |
21
(8) |
22
(5) |
23
(10) |
24
(4) |
25
(1) |
26
(6) |
27
(13) |
28
(11) |
29
(9) |
30
(23) |
|
On 9/1/05, Eric Emsellem <ems...@ob...> wrote: > I am trying to use hlines and vlines but there seems to be an > "asymmetry" in these 2 commands. > > ==> hlines accept "fmt" as a keyword, but vlines does NOT seem to accept it. > > Any reason why this is so? (I want to draw a small dashed line across > part of my plot) Just a bug -- I just updated CVS to unify the hlines and vlines arguments. Both now take a fmt argument, as well as optional kwargs that are passed on to Line2d. So you can do, for example vlines(x, ymin, ymax, fmt='b--', linewidth=2) and likewise for hlines axes.py revision: 1.134 . Thanks, JDH
>>>>> "Achim" == Achim Gaedke <Ach...@ph...> writes: Achim> Hello! I'd like to plot some errorbars, removing them and Achim> again plot new ones or just supply new coordinates. So now Achim> I know how to draw errorbars, but I could not find a Achim> set_yerrdata function or how to remove all the lines, Achim> returned from errorbar method. You can remove any line from the axes with ax.lines.remove(line) errorbar returns (yline, errlines) and so if for example you want to remove all the err lines yline, errlines = errorbar(t, s, e, f, fmt='o') for line in errlines: ax.lines.remove(line) and then force a redraw as desired. JDH
>>>>> "Alan" == Alan G Isaac <ai...@am...> writes: Alan> Unlike 'plot', 'plot_date' does not completely honor the Alan> linestyle specification if given in a dictionary. Try this: Alan> import pylab l=dict(linestyle='-') Alan> pylab.plot_date([100000,200000,300000],[1,2,3],**l) Alan> You will see points as well as lines plotted. I suspect a Alan> small bug here? There is a slight inconsistency in that plot_date and plot have different default behavior, you can control the plot_date marker with the dictionary; note that the linestyle and marker are independent line properties. # use no marker l=dict(linestyle='-', marker=None) # use a square marker l=dict(linestyle='-', marker='s') JDH
Unlike 'plot', 'plot_date' does not completely honor the linestyle specification if given in a dictionary. Try this: import pylab l=dict(linestyle='-') pylab.plot_date([100000,200000,300000],[1,2,3],**l) You will see points as well as lines plotted. I suspect a small bug here? Thanks, Alan Isaac using 0.83.2
Hi John, thank you very much for your quick reply! It seems things are slightly more complicated, though... On Thu, 1 Sep 2005, John Hunter wrote: > On 9/1/05, Arnd Baecker <arn...@we...> wrote: > > > today I urgently needed to plot a matrix in a given > > region of a plot. It seems that imshow does not > > support this (at least I could not find how) > > and I don't understand the internals well > > enough to add such a feature. > > As work-around I have set up the quick hack listed > > at the end of this mail. > > It is not really complicated, but > > maybe it is useful to someone else. > > If I'm understanding you correctly, you want to set the "extent" > argument of imshow Well, I thought so too, but I also need `axis("equal")` and depending on the order of setting the axis intervals (`axis([-0.35,2.1,-0.2,1.25])`) before or after this, one obtains completely different results. Below is an example, where this is illustrated, by changing the code at the places marked by ===>. So the example I posted was stripped down too strongly (and your solution does work for that case!). Best, Arnd P.S.: I ran my test with yesterdays CVS. ################### from pylab import * # ===> uncommenting this gives a different result: #ax=subplot(111,autoscale_on=False) # ===> changing the order of these two gives different results: axis("equal") axis([-0.35,2.1,-0.2,1.25]) # (note that -0.2 and 1.25 are not respected) arr=reshape(arange(25),(5,5)) # ===> commenting this one out, when autoscale_on=False # gives the expected result imshow(arr, extent=[0.5,1.0,0.2,0.8]) # plot a circle to see if the aspect ratio is correct: phi=arange(0.0,2.0*pi,0.01) x=0.5*cos(phi)+0.5 y=0.5*sin(phi)+0.5 plot(x,y,lw="8") show()
I don't have a mac accessible to me right now, but are you using python or pythonw? You can/should actually use the python command with the CocoaAgg. Multiple figures is the big problem right now, but simple cases have seemed to work fine. - Charlie Rob Hetland wrote: > > I just tried out your developing CocoaAgg backend for matplotlib. I am > very excited to get this working -- I think it is a great idea. > Unfortunately, I am getting an error ending with when I import pylab: > > [....] > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ > python2.4/site-packages/PyObjC/PyObjCTools/NibClassBuilder.py", line > 150, in _extractClassesFromNibFromBundle > raise NibLoaderError, ("Could not find nib named '%s' " > PyObjCTools.NibClassBuilder.NibLoaderError: Could not find nib named > 'Matplotlib.nib' in bundle 'NSBundle </Library/Frameworks/ > Python.framework/Versions/2.4/share/matplotlib> (not yet loaded)' > > Any ideas? > > -Rob > > > ----- > Rob Hetland, Assistant Professor > Dept of Oceanography, Texas A&M University > p: 979-458-0096, f: 979-845-6331 > e: he...@ta..., w: http://pong.tamu.edu >
On 9/1/05, Arnd Baecker <arn...@we...> wrote: > today I urgently needed to plot a matrix in a given > region of a plot. It seems that imshow does not > support this (at least I could not find how) > and I don't understand the internals well > enough to add such a feature. > As work-around I have set up the quick hack listed > at the end of this mail. > It is not really complicated, but > maybe it is useful to someone else. If I'm understanding you correctly, you want to set the "extent" argument of imshow from pylab import * arr=3Dreshape(arange(25),(5,5)) imshow(arr, extent=3D[5.0,8.0,15.0,50.0]) x=3Darange(2.0,10.0,0.1) line1,=3Dplot(x,x**2) line2,=3Dplot(x,x**2) setp(line2,data=3D(x,0.25*x**3),zorder=3D1000) show() > Note, that there are a couple of problems: > - zooming does not work as expected > (the displayed matrix stays fixed in absolute coords wrt to > the current graph) > - drawing a line over the shown bitmap is not possible > - presumably more The approach above should fix these three problems. JDH
Hi, today I urgently needed to plot a matrix in a given region of a plot. It seems that imshow does not support this (at least I could not find how) and I don't understand the internals well enough to add such a feature. As work-around I have set up the quick hack listed at the end of this mail. It is not really complicated, but maybe it is useful to someone else. Note, that there are a couple of problems: - zooming does not work as expected (the displayed matrix stays fixed in absolute coords wrt to the current graph) - drawing a line over the shown bitmap is not possible - presumably more Is there a way to this better with imshow? Best, Arnd ######################### from pylab import * def plot_mat(mat,extent=None): """ Plot a matrix (or whatever suits imshow) at the place defined by extent=[x0,x1,y0,y1]. """ g=gca() l,b,w,h=g.get_position() x0,x1=g.get_xlim() y0,y1=g.get_ylim() #print "Axes coords of curr axes:",l,b,w,h #print "Ranges:",x0,x1,y0,y1 if extent!=None: inset_x0=extent[0] inset_x1=extent[1] inset_y0=extent[2] inset_y1=extent[3] else: inset_x0=x0 inset_x1=x1 inset_y0=y0 inset_y1=y1 #print "WANTED:",inset_x0,inset_x1,inset_y0,inset_y1 inset_w=w*(inset_x1-inset_x0)/(x1-x0) inset_h=h*(inset_y1-inset_y0)/(y1-y0) inset_l=l+(inset_x0-x0)/(x1-x0)*w inset_b=b+(inset_y0-y0)/(y1-y0)*h #print "RESULT:",inset_l , inset_b , inset_w , inset_h ax=axes( [inset_l , inset_b , inset_w , inset_h],axisbg="y") setp(ax,xticks=[],yticks=[]) imshow(arr,interpolation="nearest") # 2D arr=reshape(arange(25),(5,5)) # 1D plot x=arange(2.0,10.0,0.1) line1,=plot(x,x**2) line2,=plot(x,x**2) #draw() plot_mat(arr,extent=[5.0,8.0,15.0,50.0]) # Problem: try to plot this over the other plot, # does not work setp(line2,data=(x,0.25*x**3),zorder=1000) show()
Hello! I'd like to plot some errorbars, removing them and again plot new ones or just supply new coordinates. So now I know how to draw errorbars, but I could not find a set_yerrdata function or how to remove all the lines, returned from errorbar method. Yours, Achim
Hi, I am trying to use hlines and vlines but there seems to be an "asymmetry" in these 2 commands. ==> hlines accept "fmt" as a keyword, but vlines does NOT seem to accept it. Any reason why this is so? (I want to draw a small dashed line across part of my plot) thanks Eric -- =============================================================== Observatoire de Lyon ems...@ob... 9 av. Charles-Andre tel: +33 4 78 86 83 84 69561 Saint-Genis Laval Cedex fax: +33 4 78 86 83 86 France http://www-obs.univ-lyon1.fr/eric.emsellem ===============================================================