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
(11) |
2
|
3
(6) |
4
(19) |
5
(20) |
6
(3) |
7
(9) |
8
(1) |
9
(1) |
10
(8) |
11
(4) |
12
(15) |
13
(6) |
14
(14) |
15
(3) |
16
(3) |
17
(2) |
18
(9) |
19
(11) |
20
(26) |
21
(12) |
22
(2) |
23
(6) |
24
(9) |
25
(6) |
26
(16) |
27
(13) |
28
(4) |
29
|
30
(3) |
|
|
|
|
|
|
From: <jk...@ik...> - 2007-09-20 19:36:48
|
"Shishir Ramam" <sr...@gm...> writes: > What I cannot understand is why the vertical bars don't align to the > y-axis 0 point. Also if you don't draw some of the green lines, the red ones extend beyond the x-axis. I wonder if this is an artifact from the subpixel rendering in Agg and the snap-to-pixel corrections in axis lines... -- Jouni K. Seppänen http://www.iki.fi/jks |
From: Fabian B. <f.b...@gm...> - 2007-09-20 19:23:37
|
Hi Jouni, Jouni K. Seppänen schrieb am 09/20/2007 06:50 PM: > Fabian Braennstroem <f.b...@gm...> writes: > >> Jouni K. Seppänen schrieb am 09/16/2007 05:51 PM: >>> def myplot(ax, matrix, linestyle, color): > [...] >> Thanks for your help! add_line seems to be the right >> function... I am not sure yet, if I need your function call, >> but I will check it!? > > Oh, I just wrote my suggestion as a "myplot" function called by a main > program as an example of what you could use instead of the built-in > "plot". There are of course many possible ways to organize your program. Thanks for your help; I was just a bit confused. I got it now. Fabian |
From: <jk...@ik...> - 2007-09-20 19:14:50
|
sidimok <si...@gm...> writes: > Thank you very much indeed for the help, both solutions work like a > charm. However Dave's one gives rough cirlces, approximated by > polygones, which is not very accurate for my buisness. As he said, increasing the number of vertices could be enough, depending on your exact needs. If you zoom in on polygons, you will of course eventually see the difference. > May I ask how to create a circleCollection as Jouni "The Expert" > proposed? I meant that you could read through collections.py and implement a CircleCollection along the lines of the other collections there. I'm not quite sure what exactly this entails [so I'm not expert enough to answer your question :-)]. At least it would mean a new method for backends, although one that you could implement once in backend_bases. (Now that I look at collections.py, the base class Collection has a get_verts method that derived classes should override and that other parts of matplotlib call, so perhaps collections of non-polygons would require more extensive changes than just adding a new subclass.) The advantage would be speed of rendering in case you draw lots of circles, so if speed is not a problem, don't worry about this. -- Jouni K. Seppänen http://www.iki.fi/jks |
From: <jk...@ik...> - 2007-09-20 18:53:25
|
Fabian Braennstroem <f.b...@gm...> writes: > Jouni K. Seppänen schrieb am 09/16/2007 05:51 PM: >> def myplot(ax, matrix, linestyle, color): [...] > Thanks for your help! add_line seems to be the right > function... I am not sure yet, if I need your function call, > but I will check it!? Oh, I just wrote my suggestion as a "myplot" function called by a main program as an example of what you could use instead of the built-in "plot". There are of course many possible ways to organize your program. -- Jouni K. Seppänen http://www.iki.fi/jks |
From: <jk...@ik...> - 2007-09-20 18:41:22
|
Jordan Atlas <jc...@co...> writes: > I'm having trouble saving eps or pdf versions of plots that have > TeX labels using matplotlib. Which version of matplotlib are you using? The error message you quote for the pdf backend shows a line 1085 in get_canvas_width_height, which is impossible both in the latest released version 0.90.1 and in current svn. I vaguely remember there being a bug like that quite some time ago. In any case, no released version of matplotlib supports using TeX with the pdf backend. Do you mean the (TeX-like) mathtext format parsed by matplotlib? In current svn there is some support for TeX with the pdf backend, but it has not (AFAIK) been tested on Windows. > I saw an older thread > (http://www.mail-archive.com/mat...@li.../msg03953.html > ) that seems to address similar issues, but I don't understand the > solution (using XPDF distiller). Gmane mangles the URL (to protect email addresses) so I can't read the message you cite, but using the XPDF distiller means setting ps.usedistiller to xpdf in your matplotlibrc file. You will need to have ps2pdf (from ghostscript) and pdftops (from xpdf or poppler) installed. -- Jouni K. Seppänen http://www.iki.fi/jks |
From: jetxee <je...@gm...> - 2007-09-20 17:35:25
|
Wed, 19 Sep 2007 19:58:30 -0400, "Cizhong Jiang" <cu...@ps...>: > I have a long ylabel that is displayed in two lines. Thus, the ylabel > overlaps with yticklabels. Does anyone know how to control the space between > ylabel and yticklabel? Thank you very much. > This should help: gca().yaxis.LABELPAD=20 # or the value you like I had the same problem recently and found the solution here: http://thread.gmane.org/gmane.comp.python.matplotlib.general/3896/focus=3904 -- jx |
From: Jordan A. <jc...@co...> - 2007-09-20 17:33:46
|
Hello, I'm having trouble saving eps or pdf versions of plots that have TeX labels using matplotlib. When I try to save an EPS file, I get the message: ... RuntimeError: ghostscript was not able to process your image. Here is the full report generated by ghostscript: (Author's note: No 'report' is actually printed) When I try to save a PDF file, I get the message: ... File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_pdf.py", line 1085, in get_canvas_ width_height return d*self.file.width, d*self.file.height AttributeError: PdfFile instance has no attribute 'width' Does anyone have any suggestions for how to fix this? The TeX labels work fine is I save as a PNG file. I saw an older thread (http://www.mail-archive.com/mat...@li.../msg03953.html ) that seems to address similar issues, but I don't understand the solution (using XPDF distiller). Thank you for your help, --Jordan |
From: John H. <jd...@gm...> - 2007-09-20 17:08:00
|
On 9/19/07, Yo mismo Hotmail <miq...@gm...> wrote: > Hi all! > > I'm actually working with Matplotlib/Pylab Interface for making 2D plot. I > need to specify screen location where the frame will appear and I don't know > how. Supose a simple example like: > > from pylab import * > > t = arange(0.0,10,0.01) > s = 20*sin(2*pi*t) > c = 20*cos(2*pi*t) > > figure(1) > plot(s) > figure(2) > plot(c) > show() > > If I do it in this way, one frame is hidded behind the other one. How can I > modify frames attributes in order to change their position on the screen? pylab doesn't explicitly support this -- I have encouraged backend maintainers to attach the window instance to the figure manager instance, but I am not sure of all backends support this (GTK* and Tk do...). The window instance will be a GUI specific widget. Eg in the GTK* backends, a gtk.Window fig = figure() fig.canvas.manager.window.move(100,400) and other methods at http://www.pygtk.org/pygtk2reference/class-gtkwindow.html#method-gtkwindow--set-position If you need a lot of control, you are advised to embed mpl into a GUI app, eg see examples/embedding*.py in the mpl examples dir http://matplotlib.sourceforge.net/examples/http://matplotlib.sourceforge.net/examples/ JDH |
From: Eric F. <ef...@ha...> - 2007-09-20 16:54:06
|
Manu Hack wrote: > import numpy > import pylab > > x = y = ybar = numpy.arange(0, 10) > errorbar(x, y, ybar) > errorbar(x, 2 * y, 0.5 * ybar) > legend(["hi" , "hi2"], loc=0) > > > That gave a AttributeError: LineCollection instance has no attribute > 'get_lines'. This was fixed in svn. I don't recall exactly when. Eric > > I'm running matplotlib on Debian Lenny. Thanks a lot. |
From: John H. <jd...@gm...> - 2007-09-20 15:26:04
|
On 9/19/07, Cizhong Jiang <cu...@ps...> wrote: > I have a long ylabel that is displayed in two lines. Thus, the ylabel > overlaps with yticklabels. Does anyone know how to control the space between > ylabel and yticklabel? Thank you very much. > https://lists.sourceforge.net/lists/listinfo/matplotlib-users Could you provide some example code that shows this problem -- the layout is supposed to prevent this from happening. JDH |
From: Ryan K. <rya...@gm...> - 2007-09-20 14:59:55
|
bling-bling. I know it is eye candy and in questionable taste, but I think it fits my non-technical audience in this case. I think this is enough to get me going. Thanks John. Ryan On 9/20/07, John Hunter <jd...@gm...> wrote: > On 9/20/07, Ryan Krauss <rya...@gm...> wrote: > > I would need to create a timeline for a Latex document (eps output). > > There may be other tools besides Matplotlib and I am open to > > suggestions. But I were going to use mpl, what would it take to do > > something along these lines: > > http://www.timelinemaker.com/product-samplecharts-constructiontimeline.html > > > > Basically, I would need a nicely formatted dates along the x-axis and > > then lightly colored rectangles with text in them. The width would > > show when I anticipate some part of the project starting and ending. > > The y coordinate of the rectangle would used to allow project portions > > to overlap. It would be nice but not essential if the rectangles had > > a little fade in and out in their back ground color instead of a solid > > color, but that is not essential. > > > > Is there a clean way to do this with mpl? > > See examples/broken_barh.py (this also allows breaks in the horizontal > bars, eg if an event is interrupted and then resumes). I haven't > added gradient fills on bars because I don't think they convey little > if any information but just add to the glitz factor (an example of > "chart junk" to use Tufte's phrase) but at some point we should bow to > popular pressure and add it. Actually, you can hack gradient filled > bars and axes backgrounds -- be careful, viewing the figure below may > induce seizures. > > from pylab import figure, show, nx, cm > > def gbar(ax, x, y, width=0.5, bottom=0): > X = [[.6, .6],[.7,.7]] > for left,top in zip(x, y): > right = left+width > ax.imshow(X, interpolation='bicubic', cmap=cm.Blues, > extent=(left, right, bottom, top), alpha=1) > > fig = figure() > > xmin, xmax = xlim = 0,10 > ymin, ymax = ylim = 0,1 > ax = fig.add_subplot(111, xlim=xlim, ylim=ylim, > autoscale_on=False) > X = [[.6, .6],[.7,.7]] > > ax.imshow(X, interpolation='bicubic', cmap=cm.copper, > extent=(xmin, xmax, ymin, ymax), alpha=1) > > N = 10 > x = nx.arange(N)+0.25 > y = nx.mlab.rand(N) > gbar(ax, x, y, width=0.7) > ax.set_aspect('normal') > show() > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: John H. <jd...@gm...> - 2007-09-20 14:14:37
|
On 9/20/07, Matthias Michler <Mat...@gm...> wrote: > Hello developers, > > I'm sorry for reposting again. I really would like to have this feature in > mpl. > Please let me know if there is anything I can do to change my proposal to make > it match with matplotlib. Committed to svn revision 3867 -- thanks for the patch and reminder. JDH |
From: John H. <jd...@gm...> - 2007-09-20 13:49:31
|
On 9/20/07, Ryan Krauss <rya...@gm...> wrote: > I would need to create a timeline for a Latex document (eps output). > There may be other tools besides Matplotlib and I am open to > suggestions. But I were going to use mpl, what would it take to do > something along these lines: > http://www.timelinemaker.com/product-samplecharts-constructiontimeline.html > > Basically, I would need a nicely formatted dates along the x-axis and > then lightly colored rectangles with text in them. The width would > show when I anticipate some part of the project starting and ending. > The y coordinate of the rectangle would used to allow project portions > to overlap. It would be nice but not essential if the rectangles had > a little fade in and out in their back ground color instead of a solid > color, but that is not essential. > > Is there a clean way to do this with mpl? See examples/broken_barh.py (this also allows breaks in the horizontal bars, eg if an event is interrupted and then resumes). I haven't added gradient fills on bars because I don't think they convey little if any information but just add to the glitz factor (an example of "chart junk" to use Tufte's phrase) but at some point we should bow to popular pressure and add it. Actually, you can hack gradient filled bars and axes backgrounds -- be careful, viewing the figure below may induce seizures. from pylab import figure, show, nx, cm def gbar(ax, x, y, width=0.5, bottom=0): X = [[.6, .6],[.7,.7]] for left,top in zip(x, y): right = left+width ax.imshow(X, interpolation='bicubic', cmap=cm.Blues, extent=(left, right, bottom, top), alpha=1) fig = figure() xmin, xmax = xlim = 0,10 ymin, ymax = ylim = 0,1 ax = fig.add_subplot(111, xlim=xlim, ylim=ylim, autoscale_on=False) X = [[.6, .6],[.7,.7]] ax.imshow(X, interpolation='bicubic', cmap=cm.copper, extent=(xmin, xmax, ymin, ymax), alpha=1) N = 10 x = nx.arange(N)+0.25 y = nx.mlab.rand(N) gbar(ax, x, y, width=0.7) ax.set_aspect('normal') show() |
From: Ryan K. <rya...@gm...> - 2007-09-20 13:40:48
|
I would need to create a timeline for a Latex document (eps output). There may be other tools besides Matplotlib and I am open to suggestions. But I were going to use mpl, what would it take to do something along these lines: http://www.timelinemaker.com/product-samplecharts-constructiontimeline.html Basically, I would need a nicely formatted dates along the x-axis and then lightly colored rectangles with text in them. The width would show when I anticipate some part of the project starting and ending. The y coordinate of the rectangle would used to allow project portions to overlap. It would be nice but not essential if the rectangles had a little fade in and out in their back ground color instead of a solid color, but that is not essential. Is there a clean way to do this with mpl? Thanks, Ryan |
From: Jose Gomez-D. <jgo...@gm...> - 2007-09-20 13:00:42
|
Hi Lionel, On 9/20/07, Lionel Roubeyrie <lro...@li...> wrote: > Hi Jeff, > thanks for the reply. Effectively, I saw the warpimage example, and based on > that I just want to know if somebody has already used the PCL module to > retrieve geographical informations (or another module). With GDAL, it's trivial. I work with data from many sources, and I am usually bypassing basemap altogether and going GDAL/OGR+MPL. To show the first band of a raster map, I just do the following: import pylab import gdal fname="/path/to/file" g = gdal.Open ( fname) data = g.GetRasterBand(1).ReadAsArray() #data is a Numeric/numpy array. Can modify at will pylab.imshow(data) pylab.show() Cheers, Jose |
From: Lionel R. <lro...@li...> - 2007-09-20 12:43:05
|
Hi Jeff, thanks for the reply. Effectively, I saw the warpimage example, and based o= n=20 that I just want to know if somebody has already used the PCL module to=20 retrieve geographical informations (or another module). Le jeudi 20 septembre 2007, Jeff Whitaker a =E9crit=A0: > Lionel Roubeyrie wrote: > > Hi all, > > Can't find any examples on google, then I come here to see if it's > > possible to display a georeferenced map (geotiff on my side) into > > Basemap. > > The PCL module seems great, but there's not useful information on the > > Trac website. > > Thanks > > Lionel: There's an example in Basemap (warpimage.py) of displaying a > plain old png file on different map projections. If you can figure out > how to read a geotiff (I've never tried it, but GDAL should be able to > do it), you should be able to use the projection information in the file > to figure out the lat/lon values of each pixel. Then you could follow > the warpimage.py example to transform it to some other map projection. > Or, if you want to display it in it's native projection, just use the > projection information in the geotiff to define a Basemap instance, > extract the rgba values and plot them with Basemap.imshow. > > -Jeff =2D-=20 Lionel Roubeyrie - lro...@li... Charg=E9 d'=E9tudes et de maintenance LIMAIR - la Surveillance de l'Air en Limousin http://www.limair.asso.fr |
From: Mika, D. P (G. Research) <mi...@cr...> - 2007-09-20 12:38:02
|
In the solution I gave, CirclePolygon has a resolution argument for number of vertices to approximate the circle (default=3D20). You could increase that value to some more appropriate level: import matplotlib from matplotlib.patches import CirclePolygon from matplotlib.collections import PolyCollection import pylab=20 fig=3Dpylab.figure() ax=3Dfig.add_subplot(111)=20 resolution =3D 50 # the number of vertices=20 N =3D 20 x =3D pylab.rand(N) y =3D pylab.rand(N) radii =3D 0.1*pylab.rand(N) colors =3D 100*pylab.rand(N) verts =3D [] for x1,y1,r in zip(x, y, radii): circle =3D CirclePolygon((x1,y1), r, resolution) verts.append(circle.get_verts()) =20 p =3D PolyCollection(verts, cmap=3Dmatplotlib.cm.jet) p.set_array(pylab.array(colors)) ax.add_patch(p) pylab.colorbar(p) ax.axis('equal') pylab.show() -----Original Message----- From: mat...@li... [mailto:mat...@li...] On Behalf Of sidimok Sent: Thursday, September 20, 2007 4:59 AM To: mat...@li... Subject: Re: [Matplotlib-users] Drawing filled circles (discs) Mika, David P (GE, Research) wrote: >=20 > How about this solution? I'm a complete newbe, but this seems to do=20 > the trick. I didn't see a CircleCollection so I used CirclePolygon to > generate vertices for a circle; these I grab and toss into a=20 > PolyCollection. Enjoy, Dave >=20 >=20 Hi all! Thank you very much indeed for the help, both solutions work like a charm. However Dave's one gives rough cirlces, approximated by polygones, which is not very accurate for my buisness. May I ask how to create a circleCollection as Jouni "The Expert" proposed? You can find below one of my plottings rendered by Jouni's first trick. http://www.nabble.com/file/p12793350/image.png -- View this message in context: http://www.nabble.com/Drawing-filled-circles-%28discs%29-tf4441651.html# a12793350 Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Jeff W. <js...@fa...> - 2007-09-20 12:01:53
|
Lionel Roubeyrie wrote: > Hi all, > Can't find any examples on google, then I come here to see if it's possible to > display a georeferenced map (geotiff on my side) into Basemap. > The PCL module seems great, but there's not useful information on the Trac > website. > Thanks > > Lionel: There's an example in Basemap (warpimage.py) of displaying a plain old png file on different map projections. If you can figure out how to read a geotiff (I've never tried it, but GDAL should be able to do it), you should be able to use the projection information in the file to figure out the lat/lon values of each pixel. Then you could follow the warpimage.py example to transform it to some other map projection. Or, if you want to display it in it's native projection, just use the projection information in the geotiff to define a Basemap instance, extract the rgba values and plot them with Basemap.imshow. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449 325 Broadway Boulder, CO, USA 80305-3328 |
From: Lionel R. <lro...@li...> - 2007-09-20 09:33:43
|
Hi all, Can't find any examples on google, then I come here to see if it's possible= to=20 display a georeferenced map (geotiff on my side) into Basemap. The PCL module seems great, but there's not useful information on the Trac= =20 website. Thanks =2D-=20 Lionel Roubeyrie - lro...@li... Charg=C3=A9 d'=C3=A9tudes et de maintenance LIMAIR - la Surveillance de l'Air en Limousin http://www.limair.asso.fr |
From: Matthias M. <Mat...@gm...> - 2007-09-20 09:17:28
|
Hello developers, I'm sorry for reposting again. I really would like to have this feature in mpl. Please let me know if there is anything I can do to change my proposal to make it match with matplotlib. thanks in advance and best regards, Matthias |
From: sidimok <si...@gm...> - 2007-09-20 08:58:49
|
Mika, David P (GE, Research) wrote: > > How about this solution? I'm a complete newbe, but this seems to do the > trick. I didn't see a CircleCollection so I used CirclePolygon to > generate vertices for a circle; these I grab and toss into a > PolyCollection. Enjoy, Dave > > Hi all! Thank you very much indeed for the help, both solutions work like a charm. However Dave's one gives rough cirlces, approximated by polygones, which is not very accurate for my buisness. May I ask how to create a circleCollection as Jouni "The Expert" proposed? You can find below one of my plottings rendered by Jouni's first trick. http://www.nabble.com/file/p12793350/image.png -- View this message in context: http://www.nabble.com/Drawing-filled-circles-%28discs%29-tf4441651.html#a12793350 Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Werner F. B. <wer...@fr...> - 2007-09-20 08:49:43
|
Hi Emmanuel, Emmanuel wrote: > With the setup you provided. I could get py2exe to make an exe of the > simple_plot.py from simple_plot_wxagg of py2exe examples. I use matplotlib only from within wxPython, that is why I used this example script. Which of the matplotlib example script is closest to what you want to do? If you let me know I try to create/adapt the setup.py for it. Werner |
From: Cizhong J. <cu...@ps...> - 2007-09-19 23:59:29
|
Hi, all, I have a long ylabel that is displayed in two lines. Thus, the ylabel overlaps with yticklabels. Does anyone know how to control the space between ylabel and yticklabel? Thank you very much. Best, cj |
From: Shishir R. <sr...@gm...> - 2007-09-19 23:48:10
|
Hi, I am trying to use the simple test.py program to draw a stacked bar graph. My intention is eventually to shrink this into a sparkline. Both the sample program and the image output are attached. What I cannot understand is why the vertical bars don't align to the y-axis 0 point. Any help is appreciated. -shishir |
From: Orest K. <ore...@gm...> - 2007-09-19 21:13:47
|
I'm embedding a FigureCanvasWxAgg into a wx.Panel and binding key events to it: class MyPanel(wx.Panel) def __init__(self, parent, file, id=-1): wx.Panel.__init__(self, parent, style=wx.WANTS_CHARS | wx.NO_FULL_REPAINT_ON_RESIZE) #Set up the canvas self.figure = Figure((9,8),75) self.canvas = FigureCanvasWxAgg(self, -1, self.figure) self.subplot = self.figure.add_subplot(111) #Set up the toolbar self.toolbar = NavigationToolbar2Wx(self.canvas) tw, th = self.toolbar.GetSizeTuple() fw, fh = self.canvas.GetSizeTuple() self.toolbar.SetSize(wx.Size(fw, th)) #Set up figure manager self.figmgr = FigureManager(self.canvas, 1, self) self.canvas.Bind(wx.EVT_KEY_UP, self.__keyup) self.canvas.Bind(wx.EVT_KEY_DOWN, self.__keydown) def self.__keyup(self, evt): print 'key up' def self.__keydown(self, evt): print 'key down' The program successfully detects keydown events for just about every key with three major exceptions: wx.WXK_RETURN, wx.WXK_RIGHT, wx.WXK_LEFT. There may be other keys out there, but those three keys are the ones I need to process events for. I've tried subclassing FigureCanvasWxAgg and defining key_press_event (which doesn't seem to work) and overriding _onKeyDown (which still does not capture the keys I need). Something weird seems to be happening to these keys, and was wondering if anyone could help me? I am able to detect the EVT_KEY_UP for these three keys. Just not the key down ones. Thanks! Orest |