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
(16) |
2
(16) |
3
(5) |
4
(4) |
5
(4) |
6
(10) |
7
(33) |
8
(11) |
9
(20) |
10
(7) |
11
(8) |
12
(18) |
13
(27) |
14
(21) |
15
(15) |
16
(10) |
17
(12) |
18
(3) |
19
(12) |
20
(12) |
21
(14) |
22
(32) |
23
(15) |
24
(20) |
25
(12) |
26
(32) |
27
(29) |
28
(17) |
29
(25) |
30
(12) |
31
(5) |
From: Friedrich R. <fri...@gm...> - 2010-07-31 08:18:35
|
2010/7/30 Jeremy Conlin <jlc...@gm...>: > I recently installed MPL on two Macs, one running 10.6 and another > running 10.5. When I try to plot, I get the following error: > > TclError: couldn't open > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/images/home.ppm": > permission denied > > After checking, it's true that only the owner has read permissions. > This is easy enough on my end, but I wonder if there is a problem with > the distributed installer that should have the correct permissions for > these images. > > Has anyone else seen this problem or is it just me? Yes, we had this problem recently (Jul 12) on the list under subject "permission denied error" started by Isaac Salazar <if...@la...>. I didn't think it was a problem of the installer ... But seems it is. Friedrich |
From: Friedrich R. <fri...@gm...> - 2010-07-31 07:56:20
|
2010/7/29 Waléria Antunes David <wal...@gm...>: > Hi Benjamim, > > I made the changes as bellow and it displays the x-axis values formatted as > expected, see my current image and my code. But, now i need to change the > scale and the numbers of decimal places in order to appear on the graph like > this: 3.0 3.1 3.2 ...... 3.4 I think you need: import matplotlib.ticker [...] axes.xaxis.set_major_locator(matplotlib.ticker.MaxNLocator(nbins=4) maybe with an additional argument steps=[1, 2, 5, 10] as done by AutoLocator. Your pastebin code has expired, so I don't know how your variables are named now. Friedrich |
From: Friedrich R. <fri...@gm...> - 2010-07-31 07:29:15
|
2010/7/29 Simon Friedberger <sim...@a-...>: > For some magical reason when I set the ticks_position to none, setting > the label_position to 'top' is ignored. > Did you try this? Is it another command arrangement thing? > > On 09:26 Thu 29.07.10, Friedrich Romstedt wrote: >> axis.set_label_position('top') >> axis.set_ticks_position('none') No, I didn't try, it was just a collection of commands, but I was wrong: .set_label_position() refers to the axis label, this is the single string labeling all the ticks with their "labels", e.g. "This is $x$ axis.". What you will want to use is .set_tick_params(top=True, labeltop=False, labelbottom=False) . (But I didn't try this either. :-) set_ticks_position() is just a shorthand for .set_tick_params(). Friedrich |
From: skorpio11 <sko...@gm...> - 2010-07-31 04:10:33
|
Bump. Is this possible using mplot3d?? I would, also like to turn off the ticks and the tick labels. skavhaug wrote: > > On Fri, Jun 11, 2010 at 4:50 PM, Benjamin Root <ben...@ou...> wrote: >> Ola, >> >> Just to make sure, have you tried "ax.set_xticks([])"? > > Yes, I have tried that, but without success. Looks like the tick-logic > is overridden for 3d plotting. Or at least, I cannot figure out how it > works. > > Ola > >> Ben Root >> >> >> >> On Fri, Jun 11, 2010 at 3:05 AM, Ola Skavhaug <ska...@si...> wrote: >>> >>> Hi, >>> >>> I'm trying to remove the xtickmarks and ytickmarks from a 3d plot, >>> without any success. >>> >>> The example I experiment with is the following: >>> >>> from mpl_toolkits.mplot3d import axes3d >>> import matplotlib.pyplot as plt >>> >>> fig = plt.figure() >>> ax = axes3d.Axes3D(fig) >>> X, Y, Z = axes3d.get_test_data(0.05) >>> cset = ax.contour(X, Y, Z, 16, extend3d=True) >>> ax.clabel(cset, fontsize=9, inline=1) >>> >>> #One try that didn't work >>> ax.set_xticklabels("") >>> >>> plt.show() >>> >>> It looks like the final plot ignores all my efforts in turning the >>> ticks off. Any help on this matter would be greatly appreciated. >>> >>> Regards, >>> -- >>> Ola Skavhaug >>> Research Programmer >>> Simula Research Laboratory >>> >>> >>> ------------------------------------------------------------------------------ >>> ThinkGeek and WIRED's GeekDad team up for the Ultimate >>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >>> lucky parental unit. See the prize list and enter to win: >>> http://p.sf.net/sfu/thinkgeek-promo >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > > > -- > Ola Skavhaug > Research Programmer > Simula Research Laboratory > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://old.nabble.com/3d-plotting-without-ticklabels-tp28852287p29311338.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Nikolaus R. <Nik...@ra...> - 2010-07-31 01:06:28
|
Ryan May <rma...@pu...> writes: > On Jul 30, 2010, at 14:34, Nikolaus Rath <Nik...@pu...> wrote: > >> Hi, >> >> Consider this: >> >> X = np.linspace(0.70, 1.1, 100) >> Y = np.linspace(-1.19, 1.19, 70) >> (Xs, Ys) = np.meshgrid(X, Y) >> Z = np.sqrt((Xs-0.9)**2 + Ys**2) - 0.10 >> fig = plt.figure() >> ax = fig.add_subplot(111) >> ax.contour(X, Y, Z) >> fig.show() >> >> This works, but gives the y axis a different scale than the x axis so >> the ellipses look like circles. >> >> How can I get the same scale for the x- and y-axis? >> >> I tried to set ax.set_autoscale_on(False), but that resulted in a >> totally different part of the coordinate system being > > Try: > > ax.set_aspect('equal') Works perfectly, thanks! -Nikolaus -- »Time flies like an arrow, fruit flies like a Banana.« PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C |
From: Jeremy C. <jlc...@gm...> - 2010-07-30 21:07:29
|
I recently installed MPL on two Macs, one running 10.6 and another running 10.5. When I try to plot, I get the following error: TclError: couldn't open "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/images/home.ppm": permission denied After checking, it's true that only the owner has read permissions. This is easy enough on my end, but I wonder if there is a problem with the distributed installer that should have the correct permissions for these images. Has anyone else seen this problem or is it just me? Jeremy |
From: william r. <wil...@gm...> - 2010-07-30 19:49:04
|
Thanks! On Fri, Jul 30, 2010 at 2:49 PM, Jeff Whitaker <js...@fa...> wrote: > On 7/30/10 12:38 PM, william ratcliff wrote: > >> building 'mpl_toolkits.natgrid._natgrid' extension >> c:\Program Files\pythonxy\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall >> -Isrc -Ic >> :\python25\include -Ic:\python25\PC -c src\natgridd.c -o >> build\temp.win32-2.5\Re >> lease\src\natgridd.o >> src\natgridd.c:17:26: ncarg/ngmath.h: No such file or directory >> src\natgridd.c: In function `c_natgridd': >> src\natgridd.c:25: warning: 'x_sav' might be used uninitialized in this >> function >> >> src\natgridd.c:25: warning: 'y_sav' might be used uninitialized in this >> function >> >> src\natgridd.c:25: warning: 'z_sav' might be used uninitialized in this >> function >> >> src\natgridd.c:26: warning: 'n_sav' might be used uninitialized in this >> function >> >> error: command 'gcc' failed with exit status 1 >> >> OK, there was a header missing from MANIFEST.in. Just uploaded a 0.2.1 > tar file to sourceforege. > > > -Jeff > > -- > Jeffrey S. Whitaker Phone : (303)497-6313 > Meteorologist FAX : (303)497-6449 > NOAA/OAR/PSD R/PSD1 Email : Jef...@no... > 325 Broadway Office : Skaggs Research Cntr 1D-113 > Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg > > |
From: Ryan M. <rm...@gm...> - 2010-07-30 19:46:32
|
On Jul 30, 2010, at 14:34, Nikolaus Rath <Nik...@ra...> wrote: > Hi, > > Consider this: > > X = np.linspace(0.70, 1.1, 100) > Y = np.linspace(-1.19, 1.19, 70) > (Xs, Ys) = np.meshgrid(X, Y) > Z = np.sqrt((Xs-0.9)**2 + Ys**2) - 0.10 > fig = plt.figure() > ax = fig.add_subplot(111) > ax.contour(X, Y, Z) > fig.show() > > This works, but gives the y axis a different scale than the x axis so > the ellipses look like circles. > > How can I get the same scale for the x- and y-axis? > > I tried to set ax.set_autoscale_on(False), but that resulted in a > totally different part of the coordinate system being Try: ax.set_aspect('equal') Ryan |
From: Nikolaus R. <Nik...@ra...> - 2010-07-30 19:34:47
|
Hi, Consider this: X = np.linspace(0.70, 1.1, 100) Y = np.linspace(-1.19, 1.19, 70) (Xs, Ys) = np.meshgrid(X, Y) Z = np.sqrt((Xs-0.9)**2 + Ys**2) - 0.10 fig = plt.figure() ax = fig.add_subplot(111) ax.contour(X, Y, Z) fig.show() This works, but gives the y axis a different scale than the x axis so the ellipses look like circles. How can I get the same scale for the x- and y-axis? I tried to set ax.set_autoscale_on(False), but that resulted in a totally different part of the coordinate system being shown. Thanks, -Nikolaus -- »Time flies like an arrow, fruit flies like a Banana.« PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C |
From: Jeff W. <js...@fa...> - 2010-07-30 19:28:03
|
On 7/30/10 12:21 PM, william ratcliff wrote: > Is it just me, or are some of the headers missing in the mpl-toolkit > on source-forge required to build natgrid 0.2? Works for me. Can you be more specific (what's the compilation error?) -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
From: Jeff W. <js...@fa...> - 2010-07-30 18:49:46
|
On 7/30/10 12:38 PM, william ratcliff wrote: > building 'mpl_toolkits.natgrid._natgrid' extension > c:\Program Files\pythonxy\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall > -Isrc -Ic > :\python25\include -Ic:\python25\PC -c src\natgridd.c -o > build\temp.win32-2.5\Re > lease\src\natgridd.o > src\natgridd.c:17:26: ncarg/ngmath.h: No such file or directory > src\natgridd.c: In function `c_natgridd': > src\natgridd.c:25: warning: 'x_sav' might be used uninitialized in > this function > > src\natgridd.c:25: warning: 'y_sav' might be used uninitialized in > this function > > src\natgridd.c:25: warning: 'z_sav' might be used uninitialized in > this function > > src\natgridd.c:26: warning: 'n_sav' might be used uninitialized in > this function > > error: command 'gcc' failed with exit status 1 > OK, there was a header missing from MANIFEST.in. Just uploaded a 0.2.1 tar file to sourceforege. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
From: william r. <wil...@gm...> - 2010-07-30 18:38:22
|
building 'mpl_toolkits.natgrid._natgrid' extension c:\Program Files\pythonxy\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Isrc -Ic :\python25\include -Ic:\python25\PC -c src\natgridd.c -o build\temp.win32-2.5\Re lease\src\natgridd.o src\natgridd.c:17:26: ncarg/ngmath.h: No such file or directory src\natgridd.c: In function `c_natgridd': src\natgridd.c:25: warning: 'x_sav' might be used uninitialized in this function src\natgridd.c:25: warning: 'y_sav' might be used uninitialized in this function src\natgridd.c:25: warning: 'z_sav' might be used uninitialized in this function src\natgridd.c:26: warning: 'n_sav' might be used uninitialized in this function error: command 'gcc' failed with exit status 1 On Fri, Jul 30, 2010 at 2:27 PM, Jeff Whitaker <js...@fa...> wrote: > On 7/30/10 12:21 PM, william ratcliff wrote: > >> Is it just me, or are some of the headers missing in the mpl-toolkit on >> source-forge required to build natgrid 0.2? >> > Works for me. Can you be more specific (what's the compilation error?) > > -Jeff > > > -- > Jeffrey S. Whitaker Phone : (303)497-6313 > Meteorologist FAX : (303)497-6449 > NOAA/OAR/PSD R/PSD1 Email : Jef...@no... > 325 Broadway Office : Skaggs Research Cntr 1D-113 > Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg > > |
From: william r. <wil...@gm...> - 2010-07-30 18:21:44
|
Is it just me, or are some of the headers missing in the mpl-toolkit on source-forge required to build natgrid 0.2? |
From: Eric F. <ef...@ha...> - 2010-07-30 17:09:42
|
On 07/29/2010 05:52 AM, bobnojio wrote: > > I am trying to figure out how to set 'buffers' or something of the sort on my > matplotlib plots, so that my first and last data points are not centered > exactly on the left and right border of the axis. > my Y axis does this just fine (integer data), but my X axis has no > buffer/margin what soever. If you are using, or can upgrade to, mpl 1.0, then you can use the margins() Axes method or pyplot function. Otherwise, you can use the Axes get_xlim and set_xlim methods, or the pyplot xlim function, to manually add to the x-axis boundaries. For example, plot([1.1, 5.2], 'ro') x0, x1 = xlim() dx = 0.02 * (x1 - x0) xlim(x0-dx, x1+dx) Eric > > > my graphing routine is as such (most fields are variables) any help is > appreciated!: > PlotVar.set_xlabel(xlabel) > PlotVar.set_ylabel(ylabel) > PlotVar.set_title(title) > PlotVar.plot(data[xtarget][np.isfinite(data[ytarget1])], > data[ytarget1][np.isfinite(data[ytarget1])], '-o', ms=6, lw=2, alpha=0.5, > mfc='orange', label=label1) > PlotVar.plot(data[xtarget][np.isfinite(data[ytarget2])], > data[ytarget2][np.isfinite(data[ytarget2])], '-o', ms=6, lw=2, alpha=0.5, > mfc='red', label=label2) > PlotVar.xaxis.set_major_locator(xdays) > PlotVar.xaxis.set_major_formatter(DateFormatter('%m-%d')) > PlotVar.xaxis.set_minor_locator(xhours) > PlotVar.fmt_xdata = DateFormatter('%m-%d') > figVar.autofmt_xdate(rotation=-90, ha='left') > highY1 = > max(data[ytarget1][np.isfinite(data[ytarget1])]) > lowY1 = > min(data[ytarget1][np.isfinite(data[ytarget1])]) > highY2 = > max(data[ytarget2][np.isfinite(data[ytarget2])]) > lowY2 = > min(data[ytarget2][np.isfinite(data[ytarget2])]) > maxvalue = max(highY1, highY2) > minvalue = min(lowY1, lowY2) > > PlotVar.yaxis.set_major_locator(mticker.MultipleLocator(base=round(((maxvalue > - minvalue)/10),3))) > > PlotVar.yaxis.set_minor_locator(mticker.MultipleLocator(base=round(((maxvalue > - minvalue)/40),5))) > plt.legend(loc='best', > prop=matplotlib.font_manager.FontProperties(size=10)) > PlotVar.grid() > figVar.savefig(saveto) |
From: Waléria A. D. <wal...@gm...> - 2010-07-30 12:31:44
|
Hi Paul, Thank you very much.. You tip helped me a lot, problem solved. Thank you On Thu, Jul 29, 2010 at 9:47 PM, <PH...@ge...> wrote: > Whoops. That didn’t stick like I thought it would. Try here: > http://pastebin.com/rJtUuWne > > -paul > > > > *From:* Paul Hobson > *Sent:* Thursday, July 29, 2010 5:46 PM > *To:* Waléria Antunes David; mat...@li... > *Subject:* RE: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue > 80 > > > > I submitted a correction to the code in your pastebin link below. Revisit > the link (http://pastebin.com/vSbkXDzE) and run that code. > > -paul > > > > ------------------------- > > *From:* Waléria Antunes David [mailto:wal...@gm...] > *Sent:* Thursday, July 29, 2010 12:08 PM > *To:* mat...@li... > *Subject:* Re: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue > 80 > > > > Hi , > > I made the changes as bellow and it displays the x-axis values formatted as > expected, see my current image and my code. But, now i need to change the > scale and the numbers of decimal places in order to appear on the graph like > this: 3.0 3.1 3.2 ...... 3.4 > > My code: http://pastebin.com/vSbkXDzE > > Can you help me? > > > > > |
From: <PH...@Ge...> - 2010-07-30 00:58:54
|
Whoops. That didn't stick like I thought it would. Try here: http://pastebin.com/rJtUuWne -paul From: Paul Hobson Sent: Thursday, July 29, 2010 5:46 PM To: Waléria Antunes David; mat...@li... Subject: RE: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue 80 I submitted a correction to the code in your pastebin link below. Revisit the link (http://pastebin.com/vSbkXDzE) and run that code. -paul ------------------------- From: Waléria Antunes David [mailto:wal...@gm...] Sent: Thursday, July 29, 2010 12:08 PM To: mat...@li... Subject: Re: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue 80 Hi , I made the changes as bellow and it displays the x-axis values formatted as expected, see my current image and my code. But, now i need to change the scale and the numbers of decimal places in order to appear on the graph like this: 3.0 3.1 3.2 ...... 3.4 My code: http://pastebin.com/vSbkXDzE Can you help me? |
From: <PH...@Ge...> - 2010-07-30 00:58:53
|
I submitted a correction to the code in your pastebin link below. Revisit the link (http://pastebin.com/vSbkXDzE) and run that code. -paul ------------------------- From: Waléria Antunes David [mailto:wal...@gm...] Sent: Thursday, July 29, 2010 12:08 PM To: mat...@li... Subject: Re: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue 80 Hi , I made the changes as bellow and it displays the x-axis values formatted as expected, see my current image and my code. But, now i need to change the scale and the numbers of decimal places in order to appear on the graph like this: 3.0 3.1 3.2 ...... 3.4 My code: http://pastebin.com/vSbkXDzE Can you help me? |
From: Gökhan S. <gok...@gm...> - 2010-07-29 19:06:11
|
On Thu, Jul 29, 2010 at 2:02 PM, Gary Pajer <gar...@gm...> wrote: > I recall that there is an site online that produces all kinds of plots > using mpl to render them. It has a name something like "zumzum". > > Does anyone know what I'm talking about (and can you point me there?) > > thx, > gary > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > Very close, it is at zunzun.com :) -- Gökhan |
From: Waléria A. D. <wal...@gm...> - 2010-07-29 19:05:23
|
On Thu, Jul 29, 2010 at 8:45 AM, Waléria Antunes David < wal...@gm...> wrote: > Hi > > I made the changes as bellow and it displays the x-axis values formatted as > expected, see my current image and my code. But, now i need to change the > scale and the numbers of decimal places in order to appear on the graph like > this: 3.0 3.1 3.2 ...... 3.4 > > My code: http://pastebin.com/vSbkXDzE > > Can you help me? > > Waleria > > > On Wed, Jul 28, 2010 at 8:41 PM, < > mat...@li...> wrote: > >> Send Matplotlib-users mailing list submissions to >> mat...@li... >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> or, via email, send a message with subject or body 'help' to >> mat...@li... >> >> You can reach the person managing the list at >> mat...@li... >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Matplotlib-users digest..." >> >> >> Today's Topics: >> >> 1. Re: hz to khz (Angus McMorland) >> 2. Re: hz to khz (Benjamin Root) >> 3. Arrow in log space (Thomas Robitaille) >> 4. Re: Arrow in log space (Benjamin Root) >> 5. Re: Confusion Matrix (Simon Friedberger) >> 6. Re: Saving as eps file shifts image? (Jae-Joon Lee) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Wed, 28 Jul 2010 15:39:29 -0400 >> From: Angus McMorland <am...@gm...> >> Subject: Re: [Matplotlib-users] hz to khz >> To: Matplotlib Users <mat...@li...> >> Message-ID: >> <AAN...@ma...<AANLkTinomazdZccuuKenq%2BC99Y%2B0EWC_o7O%2B6...@ma...> >> > >> Content-Type: text/plain; charset=ISO-8859-1 >> >> On 28 July 2010 15:25, Wal?ria Antunes David <wal...@gm...> >> wrote: >> > Hello all, >> > >> > Well, my problem is ... My current code is as follow bellow: >> > http://pastebin.com/7p2N5d64 >> >> Hi Wal?ria, >> >> We can't easily fix your problem without knowing what data f and >> Sserie contain. It would help us to help you if you could post a >> standalone example that shows your problem without relying on external >> data. >> >> Angus. >> -- >> AJC McMorland >> Post-doctoral research fellow >> Neurobiology, University of Pittsburgh >> >> >> >> ------------------------------ >> >> Message: 2 >> Date: Wed, 28 Jul 2010 14:59:35 -0500 >> From: Benjamin Root <ben...@ou...> >> Subject: Re: [Matplotlib-users] hz to khz >> To: Angus McMorland <am...@gm...> >> Cc: Matplotlib Users <mat...@li...> >> Message-ID: >> <AANLkTi=O73E3atkQprZO5_LMpfOu=72C...@ma...> >> Content-Type: text/plain; charset="iso-8859-1" >> >> On Wed, Jul 28, 2010 at 2:39 PM, Angus McMorland <am...@gm...> >> wrote: >> >> > On 28 July 2010 15:25, Wal?ria Antunes David <wal...@gm...> >> > wrote: >> > > Hello all, >> > > >> > > Well, my problem is ... My current code is as follow bellow: >> > > http://pastebin.com/7p2N5d64 >> > >> > Hi Wal?ria, >> > >> > We can't easily fix your problem without knowing what data f and >> > Sserie contain. It would help us to help you if you could post a >> > standalone example that shows your problem without relying on external >> > data. >> > >> > Angus. >> > -- >> > AJC McMorland >> > Post-doctoral research fellow >> > Neurobiology, University of Pittsburgh >> > >> > >> Angus is correct that providing a stand-alone version of the script that >> replicates your problem would be most useful. I would like to mention a >> couple of possible improvements to your code. These improvements may or >> may >> not fix your issue, but they will improve your current code. >> >> 1) Use list comprehensions >> >> Change >> >> y=[] >> for n in f: >> y.append(n/Decimal(1000)) >> y = numpy.array(y) >> >> into: >> >> y = numpy.array(f) / 1000.0 >> >> Also, >> >> ax.grid('TRUE') >> >> should be: >> >> ax.grid(True) >> >> I hope this helps. If not, then please send a stand-alone example that >> duplicates the problem you are having. >> Ben Root >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> >> ------------------------------ >> >> Message: 3 >> Date: Wed, 28 Jul 2010 16:56:41 -0400 >> From: Thomas Robitaille <tho...@gm...> >> Subject: [Matplotlib-users] Arrow in log space >> To: mat...@li... >> Message-ID: <FC4...@gm...> >> Content-Type: text/plain; charset=us-ascii >> >> Hi, >> >> How does one plot an arrow in a log log plot? In the following example, I >> can't get the arrow head, regardless of what value I use for the head width: >> >> import matplotlib as mpl >> mpl.use('Agg') >> import matplotlib.pyplot as plt >> >> fig = plt.figure() >> ax = fig.add_subplot(1,1,1) >> ax.arrow(0.2,0.2,0.5,0.5,head_width=1.) >> ax.set_xscale('log') >> ax.set_yscale('log') >> ax.set_xlim(0.1,1.) >> ax.set_ylim(0.1,1.) >> fig.savefig('test.png') >> >> In addition, the documentation for arrow does not even mention any arrow >> specific options such as the head width/length, and the example plot is >> missing (there is a 'Exception occurred rendering plot.' message instead) >> >> >> http://matplotlib.sourceforge.net/api/axes_api.html?highlight=arrow#matplotlib.axes.Axes.arrow >> >> Thanks for any help, >> >> Thomas >> >> >> ------------------------------ >> >> Message: 4 >> Date: Wed, 28 Jul 2010 16:45:39 -0500 >> From: Benjamin Root <ben...@ou...> >> Subject: Re: [Matplotlib-users] Arrow in log space >> To: Thomas Robitaille <tho...@gm...> >> Cc: mat...@li... >> Message-ID: >> <AANLkTi=hCGCs9FVO0O6z=qVybsBMNwoBo=OW9...@ma...> >> Content-Type: text/plain; charset="iso-8859-1" >> >> On Wed, Jul 28, 2010 at 3:56 PM, Thomas Robitaille < >> tho...@gm...> wrote: >> >> > Hi, >> > >> > How does one plot an arrow in a log log plot? In the following example, >> I >> > can't get the arrow head, regardless of what value I use for the head >> width: >> > >> > import matplotlib as mpl >> > mpl.use('Agg') >> > import matplotlib.pyplot as plt >> > >> > fig = plt.figure() >> > ax = fig.add_subplot(1,1,1) >> > ax.arrow(0.2,0.2,0.5,0.5,head_width=1.) >> > ax.set_xscale('log') >> > ax.set_yscale('log') >> > ax.set_xlim(0.1,1.) >> > ax.set_ylim(0.1,1.) >> > fig.savefig('test.png') >> > >> > In addition, the documentation for arrow does not even mention any arrow >> > specific options such as the head width/length, and the example plot is >> > missing (there is a 'Exception occurred rendering plot.' message >> instead) >> > >> > >> > >> http://matplotlib.sourceforge.net/api/axes_api.html?highlight=arrow#matplotlib.axes.Axes.arrow >> > >> > Thanks for any help, >> > >> > Thomas >> > >> >> I can't say anything with regards to why your figure is not working, or >> why >> the plot fails to render online (it renders just fine for myself when >> built >> locally). However, I have noticed that the lack of information regarding >> the options for arrow seems to be related to the docstring for arrow() >> referring to the kwargs for FancyArrow, but none of those are defined. >> And >> the docstring for FancyArrow appears to be incomplete. >> >> Ben Root >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> >> ------------------------------ >> >> Message: 5 >> Date: Thu, 29 Jul 2010 00:04:41 +0200 >> From: Simon Friedberger <sim...@a-...<simon%2Bm...@a-...> >> > >> Subject: Re: [Matplotlib-users] Confusion Matrix >> To: mat...@li... >> Message-ID: <201...@a-...> >> Content-Type: text/plain; charset=us-ascii >> >> On 18:32 Sun 18.07.10, Friedrich Romstedt wrote: >> > Try to add: >> > ax.set_xticks(range(0, 10)) >> > ax.set_yticks(range(0, 10)) >> > >> > before the imshow call. >> > >> > For some reason it must happen before the imshow call and not after, >> > else the yscaling will change (I don't understand this). >> >> Thanks for this tip. Apparently there is a necessary order for some calls. >> Is this documented anywhere? It seems quite problematic. >> >> Also I have now finished my confusion matrix program: >> http://paste.pocoo.org/show/242834/ >> Comments on the code would be very welcome. >> >> If people like it maybe it could be included in the examples. I think it's >> a >> relatively common usecase. >> >> Regards >> Simon >> >> >> >> ------------------------------ >> >> Message: 6 >> Date: Thu, 29 Jul 2010 08:40:54 +0900 >> From: Jae-Joon Lee <lee...@gm...> >> Subject: Re: [Matplotlib-users] Saving as eps file shifts image? >> To: "Jenna L." <je...@as...> >> Cc: mat...@li... >> Message-ID: >> <AAN...@ma...> >> Content-Type: text/plain; charset="utf-8" >> >> On Thu, Jul 29, 2010 at 1:17 AM, Jenna L. <je...@as...> >> wrote: >> > That looks fine to me too, but if you plot that as one subplot in a 5x5 >> array >> > of subplots or more, then you can see the shift I am talking about in >> the >> > eps file. ?Example: >> >> I still don't see it (a capture of my eps output is attached). >> Can you post your output (original eps file that shows the shift)? >> >> Again, what is your matplotlib version? >> >> Regards, >> >> -JJ >> -------------- next part -------------- >> A non-text attachment was scrubbed... >> Name: image_shift_test.png >> Type: image/png >> Size: 13176 bytes >> Desc: not available >> >> ------------------------------ >> >> >> ------------------------------------------------------------------------------ >> The Palm PDK Hot Apps Program offers developers who use the >> Plug-In Development Kit to bring their C/C++ apps to Palm for a share >> of $1 Million in cash or HP Products. Visit us here for more details: >> http://p.sf.net/sfu/dev2dev-palm >> >> ------------------------------ >> >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> >> End of Matplotlib-users Digest, Vol 50, Issue 79 >> ************************************************ >> > > |
From: Gary P. <gar...@gm...> - 2010-07-29 19:02:38
|
I recall that there is an site online that produces all kinds of plots using mpl to render them. It has a name something like "zumzum". Does anyone know what I'm talking about (and can you point me there?) thx, gary |
From: Pellegrini E. <eri...@ya...> - 2010-07-29 19:01:38
|
Hi Ryan, bad luck, I use the version 0.99.3 ... and currently I must keep on using it ... Would you see another way to proceed from matplotlib ? thanks Eric --- En date de : Jeu 29.7.10, Ryan May <rm...@gm...> a écrit : De: Ryan May <rm...@gm...> Objet: Re: [Matplotlib-users] catching close figure event À: "Pellegrini Eric" <eri...@ya...> Cc: "Benjamin Root" <ben...@ou...>, mat...@li... Date: Jeudi 29 juillet 2010, 19h29 On Thu, Jul 29, 2010 at 12:26 PM, Benjamin Root <ben...@ou...> wrote: On Thu, Jul 29, 2010 at 12:18 PM, Pellegrini Eric <eri...@ya...> wrote: Hello everybody, I would like to call a function when I close manually a window previously opened by a pylab.figure. I tried the following: f = pylab.figure() f.canvas.mpl_connect('close_event',my_function) but it fails because the 'close_event' is not recognized as a valid event (button_press_event, axis_leave_event ...). Would you have any idea ? thank you very much Eric, Which version of matplotlib are you using? "close_event" is a valid event identifier. It was added in the most recent 1.0, so make sure you have that. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |
From: Pellegrini E. <eri...@ya...> - 2010-07-29 19:00:03
|
Hi Ben, I use the version 0.99.3. Eric --- En date de : Jeu 29.7.10, Benjamin Root <ben...@ou...> a écrit : De: Benjamin Root <ben...@ou...> Objet: Re: [Matplotlib-users] catching close figure event À: "Pellegrini Eric" <eri...@ya...> Cc: mat...@li... Date: Jeudi 29 juillet 2010, 19h26 On Thu, Jul 29, 2010 at 12:18 PM, Pellegrini Eric <eri...@ya...> wrote: Hello everybody, I would like to call a function when I close manually a window previously opened by a pylab.figure. I tried the following: f = pylab.figure() f.canvas.mpl_connect('close_event',my_function) but it fails because the 'close_event' is not recognized as a valid event (button_press_event, axis_leave_event ...). Would you have any idea ? thank you very much regards Eric Pellegrini Eric, Which version of matplotlib are you using? "close_event" is a valid event identifier. Ben Root |
From: Ryan M. <rm...@gm...> - 2010-07-29 17:30:13
|
On Thu, Jul 29, 2010 at 12:26 PM, Benjamin Root <ben...@ou...> wrote: > On Thu, Jul 29, 2010 at 12:18 PM, Pellegrini Eric <eri...@ya... > > wrote: > >> Hello everybody, >> >> I would like to call a function when I close manually a window previously >> opened by a pylab.figure. I tried the following: >> >> f = pylab.figure() >> f.canvas.mpl_connect('close_event',my_function) >> >> but it fails because the 'close_event' is not recognized as a valid event >> (button_press_event, axis_leave_event ...). Would you have any idea ? >> >> thank you very much >> >> Eric, > > Which version of matplotlib are you using? "close_event" is a valid event > identifier. > It was added in the most recent 1.0, so make sure you have that. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |
From: Benjamin R. <ben...@ou...> - 2010-07-29 17:26:39
|
On Thu, Jul 29, 2010 at 12:18 PM, Pellegrini Eric <eri...@ya...>wrote: > Hello everybody, > > I would like to call a function when I close manually a window previously > opened by a pylab.figure. I tried the following: > > f = pylab.figure() > f.canvas.mpl_connect('close_event',my_function) > > but it fails because the 'close_event' is not recognized as a valid event > (button_press_event, axis_leave_event ...). Would you have any idea ? > > thank you very much > > regards > > Eric Pellegrini > > > Eric, Which version of matplotlib are you using? "close_event" is a valid event identifier. Ben Root |
From: Pellegrini E. <eri...@ya...> - 2010-07-29 17:18:59
|
Hello everybody, I would like to call a function when I close manually a window previously opened by a pylab.figure. I tried the following: f = pylab.figure() f.canvas.mpl_connect('close_event',my_function) but it fails because the 'close_event' is not recognized as a valid event (button_press_event, axis_leave_event ...). Would you have any idea ? thank you very much regards Eric Pellegrini |