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
|
2
(13) |
3
(5) |
4
(5) |
5
(21) |
6
(10) |
7
(9) |
|
8
(4) |
9
(11) |
10
(9) |
11
(11) |
12
(25) |
13
(5) |
14
(2) |
|
15
(5) |
16
(8) |
17
(16) |
18
(11) |
19
(15) |
20
(5) |
21
(8) |
|
22
(4) |
23
(24) |
24
(9) |
25
(14) |
26
(5) |
27
(28) |
28
(2) |
|
29
(13) |
30
(14) |
31
(11) |
|
|
|
|
|
From: Paul I. <piv...@gm...> - 2012-01-19 05:44:22
|
Hi David, David Perlman, on 2012-01-06 16:57, wrote: > Am I doing this wrong? I am doing the best I can to follow the > documentation exactly. It doesn't look like you're doing it wrong - and your example works for me, though I'm not running OS X and can't verify that it works as it should on your chosen backend. Can anyone else who has OS X verify David's error? David, it'd be useful to know what your matplotlib.__version__ is, as well as whether or not the error occurs on the latest version, if that's possible. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |
|
From: Jeff W. <jef...@no...> - 2012-01-18 21:02:23
|
On 1/18/12 1:10 PM, Hans-Martin v. Gaudecker wrote: > I fought some time with NumPy, SciPy, and Matplotlib under the same configuration -- in the end I settled for re-installing Python via homebrew. Everything worked like a charme out of the box. Nice guide to be found here: http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/#numpy > > Best, > Hans-Martin You can also install numpy/scipy/matplotlib/basemap with macports. Worked for me out of the box on my new macbook air. -Jeff > > > > On 18 Jan 2012, at 20:08, mat...@li... wrote: > >> Hi, >> >> I am having troubles getting matplotlib to install. I have mac os X lion with Xcode 4.2.1 installed and I have used git to get the latest version of matplotlib. I am also running python 2.7.2 from the python.org site. The installation process was going fine based on the make.osx file supplied . The only thing I had to do was add a symbolic link to map gcc-4.2 to gcc to get it to compile, the I hit the following problem: >> >> gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/freetype2 -I./freetype2 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/ft2font.cpp -o build/temp.macosx-10.6-intel-2.7/src/ft2font.o >> In file included from src/ft2font.cpp:3: >> src/ft2font.h:16:22: error: ft2build.h: No such file or directory >> src/ft2font.h:17:10: error: #include expects "FILENAME" or<FILENAME> >> src/ft2font.h:18:10: error: #include expects "FILENAME" or<FILENAME> >> src/ft2font.h:19:10: error: #include expects "FILENAME" or<FILENAME> >> src/ft2font.h:20:10: error: #include expects "FILENAME" or<FILENAME> >> src/ft2font.h:21:10: error: #include expects "FILENAME" or<FILENAME> >> In file included from src/ft2font.cpp:3: >> src/ft2font.h:34: error: ?FT_Bitmap? has not been declared >> src/ft2font.h:34: error: ?FT_Int? has not been declared >> src/ft2font.h:34: error: ?FT_Int? has not been declared >> src/ft2font.h:86: error: expected ?,? or ?...? before ?&? token >> src/ft2font.h:86: error: ISO C++ forbids declaration of ?FT_Face? with no type >> src/ft2font.h:131: error: ?FT_Face? does not name a type >> src/ft2font.h:132: error: ?FT_Matrix? does not name a type >> src/ft2font.h:133: error: ?FT_Vector? does not name a type >> src/ft2font.h:134: error: ?FT_Error? does not name a type >> src/ft2font.h:135: error: ?FT_Glyph? was not declared in this scope >> src/ft2font.h:135: error: template argument 1 is invalid >> src/ft2font.h:135: error: template argument 2 is invalid >> src/ft2font.h:136: error: ?FT_Vector? was not declared in this scope >> src/ft2font.h:136: error: template argument 1 is invalid >> src/ft2font.h:136: error: template argument 2 is invalid >> src/ft2font.h:141: error: ?FT_BBox? does not name a type >> src/ft2font.cpp:51: error: ?FT_Library? does not name a type >> src/ft2font.cpp:116: error: variable or field ?draw_bitmap? declared void >> src/ft2font.cpp:116: error: ?FT_Bitmap? was not declared in this scope >> src/ft2font.cpp:116: error: ?bitmap? was not declared in this scope >> src/ft2font.cpp:117: error: ?FT_Int? was not declared in this scope >> src/ft2font.cpp:118: error: ?FT_Int? was not declared in this scope >> In file included from src/ft2font.cpp:3: >> src/ft2font.h:16:22: error: ft2build.h: No such file or directory >> src/ft2font.h:17:10: error: #include expects "FILENAME" or<FILENAME> >> src/ft2font.h:18:10: error: #include expects "FILENAME" or<FILENAME> >> src/ft2font.h:19:10: error: #include expects "FILENAME" or<FILENAME> >> src/ft2font.h:20:10: error: #include expects "FILENAME" or<FILENAME> >> src/ft2font.h:21:10: error: #include expects "FILENAME" or<FILENAME> >> In file included from src/ft2font.cpp:3: >> src/ft2font.h:34: error: ?FT_Bitmap? has not been declared >> src/ft2font.h:34: error: ?FT_Int? has not been declared >> src/ft2font.h:34: error: ?FT_Int? has not been declared >> src/ft2font.h:86: error: expected ?,? or ?...? before ?&? token >> src/ft2font.h:86: error: ISO C++ forbids declaration of ?FT_Face? with no type >> src/ft2font.h:131: error: ?FT_Face? does not name a type >> src/ft2font.h:132: error: ?FT_Matrix? does not name a type >> src/ft2font.h:133: error: ?FT_Vector? does not name a type >> src/ft2font.h:134: error: ?FT_Error? does not name a type >> src/ft2font.h:135: error: ?FT_Glyph? was not declared in this scope >> src/ft2font.h:135: error: template argument 1 is invalid >> src/ft2font.h:135: error: template argument 2 is invalid >> src/ft2font.h:136: error: ?FT_Vector? was not declared in this scope >> src/ft2font.h:136: error: template argument 1 is invalid >> src/ft2font.h:136: error: template argument 2 is invalid >> src/ft2font.h:141: error: ?FT_BBox? does not name a type >> src/ft2font.cpp:51: error: ?FT_Library? does not name a type >> src/ft2font.cpp:116: error: variable or field ?draw_bitmap? declared void >> src/ft2font.cpp:116: error: ?FT_Bitmap? was not declared in this scope >> src/ft2font.cpp:116: error: ?bitmap? was not declared in this scope >> src/ft2font.cpp:117: error: ?FT_Int? was not declared in this scope >> src/ft2font.cpp:118: error: ?FT_Int? was not declared in this scope >> lipo: can't figure out the architecture type of: /var/folders/2d/t8xdmbdj103bmcjbm72j49980000gp/T//ccOY6Ibr.out >> error: command 'gcc-4.2' failed with exit status 1 >> >> Any thoughts on how to fix it? >> >> thanks, Andrew >> >> > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- 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: Hans-Martin v. G. <hmg...@gm...> - 2012-01-18 20:10:26
|
I fought some time with NumPy, SciPy, and Matplotlib under the same configuration -- in the end I settled for re-installing Python via homebrew. Everything worked like a charme out of the box. Nice guide to be found here: http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/#numpy Best, Hans-Martin On 18 Jan 2012, at 20:08, mat...@li... wrote: > Hi, > > I am having troubles getting matplotlib to install. I have mac os X lion with Xcode 4.2.1 installed and I have used git to get the latest version of matplotlib. I am also running python 2.7.2 from the python.org site. The installation process was going fine based on the make.osx file supplied . The only thing I had to do was add a symbolic link to map gcc-4.2 to gcc to get it to compile, the I hit the following problem: > > gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I. -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/freetype2 -I./freetype2 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/ft2font.cpp -o build/temp.macosx-10.6-intel-2.7/src/ft2font.o > In file included from src/ft2font.cpp:3: > src/ft2font.h:16:22: error: ft2build.h: No such file or directory > src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:20:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:21:10: error: #include expects "FILENAME" or <FILENAME> > In file included from src/ft2font.cpp:3: > src/ft2font.h:34: error: ?FT_Bitmap? has not been declared > src/ft2font.h:34: error: ?FT_Int? has not been declared > src/ft2font.h:34: error: ?FT_Int? has not been declared > src/ft2font.h:86: error: expected ?,? or ?...? before ?&? token > src/ft2font.h:86: error: ISO C++ forbids declaration of ?FT_Face? with no type > src/ft2font.h:131: error: ?FT_Face? does not name a type > src/ft2font.h:132: error: ?FT_Matrix? does not name a type > src/ft2font.h:133: error: ?FT_Vector? does not name a type > src/ft2font.h:134: error: ?FT_Error? does not name a type > src/ft2font.h:135: error: ?FT_Glyph? was not declared in this scope > src/ft2font.h:135: error: template argument 1 is invalid > src/ft2font.h:135: error: template argument 2 is invalid > src/ft2font.h:136: error: ?FT_Vector? was not declared in this scope > src/ft2font.h:136: error: template argument 1 is invalid > src/ft2font.h:136: error: template argument 2 is invalid > src/ft2font.h:141: error: ?FT_BBox? does not name a type > src/ft2font.cpp:51: error: ?FT_Library? does not name a type > src/ft2font.cpp:116: error: variable or field ?draw_bitmap? declared void > src/ft2font.cpp:116: error: ?FT_Bitmap? was not declared in this scope > src/ft2font.cpp:116: error: ?bitmap? was not declared in this scope > src/ft2font.cpp:117: error: ?FT_Int? was not declared in this scope > src/ft2font.cpp:118: error: ?FT_Int? was not declared in this scope > In file included from src/ft2font.cpp:3: > src/ft2font.h:16:22: error: ft2build.h: No such file or directory > src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:20:10: error: #include expects "FILENAME" or <FILENAME> > src/ft2font.h:21:10: error: #include expects "FILENAME" or <FILENAME> > In file included from src/ft2font.cpp:3: > src/ft2font.h:34: error: ?FT_Bitmap? has not been declared > src/ft2font.h:34: error: ?FT_Int? has not been declared > src/ft2font.h:34: error: ?FT_Int? has not been declared > src/ft2font.h:86: error: expected ?,? or ?...? before ?&? token > src/ft2font.h:86: error: ISO C++ forbids declaration of ?FT_Face? with no type > src/ft2font.h:131: error: ?FT_Face? does not name a type > src/ft2font.h:132: error: ?FT_Matrix? does not name a type > src/ft2font.h:133: error: ?FT_Vector? does not name a type > src/ft2font.h:134: error: ?FT_Error? does not name a type > src/ft2font.h:135: error: ?FT_Glyph? was not declared in this scope > src/ft2font.h:135: error: template argument 1 is invalid > src/ft2font.h:135: error: template argument 2 is invalid > src/ft2font.h:136: error: ?FT_Vector? was not declared in this scope > src/ft2font.h:136: error: template argument 1 is invalid > src/ft2font.h:136: error: template argument 2 is invalid > src/ft2font.h:141: error: ?FT_BBox? does not name a type > src/ft2font.cpp:51: error: ?FT_Library? does not name a type > src/ft2font.cpp:116: error: variable or field ?draw_bitmap? declared void > src/ft2font.cpp:116: error: ?FT_Bitmap? was not declared in this scope > src/ft2font.cpp:116: error: ?bitmap? was not declared in this scope > src/ft2font.cpp:117: error: ?FT_Int? was not declared in this scope > src/ft2font.cpp:118: error: ?FT_Int? was not declared in this scope > lipo: can't figure out the architecture type of: /var/folders/2d/t8xdmbdj103bmcjbm72j49980000gp/T//ccOY6Ibr.out > error: command 'gcc-4.2' failed with exit status 1 > > Any thoughts on how to fix it? > > thanks, Andrew > > |
|
From: Benjamin R. <ben...@ou...> - 2012-01-18 19:20:13
|
On Sun, Jan 15, 2012 at 1:14 AM, Nathan Salomonis <nsa...@gm...>wrote: > Greetings, > > I just installed matplotlib on my Mac OS 10.6 Machine (64bit) with default > Python 2.7.1 (easy_install). While the initial 2D graph examples work > great, when testing any of the animations, such as: > http://matplotlib.sourceforge.net/examples/animation/simple_anim.html > > I always get the same error: > > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/animation.py", > line 248, in _blit_clear > a.figure.canvas.restore_region(bg_cache[a]) > AttributeError: 'FigureCanvasMac' object has no attribute 'restore_region' > > Since "restore_region" is only in backend_agg.py and not in > backend_macosx.py, After reading more on this, I thought this might be > corrected by re-installing from source and setting the setup.cfg to macosx > = True and backend = MacOSX prior to building, but this did not correct the > issue. Also, changing backend: Agg to backend: MacOSX in: > > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc > > didn't work either. Does anyone have experience with this or further > insight? > > Thanks, > Nathan > > Yes, I encountered this before. The problem is with blitting and the macosx backend. Have you tried using a different backend or setting blit=False in some of the animation commands? Ben Root |
|
From: Christoph G. <cg...@uc...> - 2012-01-18 19:16:32
|
On 1/17/2012 5:04 PM, Mac Juneau wrote: > Problem: Installation of matlibplot for Python 2.7's .exe file requires > that Numby be installed first. But the Numby installation list does not > include a version for Python 2.7. The highest available version is for > Python 2.6. > So, Numby 2.6 won't install because it can't find a Python 2.6 and > matlibplot for Python 2.7 won't run because it can't find an installed > Numby. > Is there a work around? > > Numpy-1.6.1 installers for Python 2.5 to 3.2 are at <http://sourceforge.net/projects/numpy/files/NumPy/1.6.1/> Christoph |
|
From: Benjamin R. <ben...@ou...> - 2012-01-18 19:16:12
|
On Tue, Jan 17, 2012 at 10:54 AM, Matthew Lennig <ma...@in...> wrote: > I have found several broken links on the matplotlib documentation pages. > The broken links I've found occur when I click on an example to see the > source code. Here's one of them: > > http://matplotlib.sourceforge.net/examples/pylab_examples/demo_tight_layout_00.html > The above link generates a 404 error. > > Hmm, that address is completely wrong. It should be mpl_examples/pylab_examples/demo_tight_layout_00.py [note: examples -> mpl_examples and .html --> .py] I wonder what is causing that? Ben Root |
|
From: Eric F. <ef...@ha...> - 2012-01-18 19:15:52
|
On 01/17/2012 03:04 PM, Mac Juneau wrote: > Problem: Installation of matlibplot for Python 2.7's .exe file requires > that Numby be installed first. But the Numby installation list does not > include a version for Python 2.7. The highest available version is for > Python 2.6. > So, Numby 2.6 won't install because it can't find a Python 2.6 and > matlibplot for Python 2.7 won't run because it can't find an installed > Numby. > Is there a work around? I see what looks like a Win py 2.7 version of numpy: http://sourceforge.net/projects/numpy/files/NumPy/1.6.1/ Eric |
|
From: gsal <sal...@gm...> - 2012-01-18 15:38:33
|
Any ideas? Also, as in the example http://matplotlib.sourceforge.net/examples/pylab_examples/multiple_yaxis_with_spines.html here , the legend seems to be behind the quantity being plotted against the one of the secondary y-axis....does this have anything to do with that?...it is that maybe the legend is draggable but I am not getting to it? gsal -- View this message in context: http://old.nabble.com/legend-not-draggable-when-secondary-y-axis-present-tp33162008p33162008.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Michael R. <raw...@ya...> - 2012-01-18 15:13:32
|
________________________________ From: Benjamin Root <ben...@ou...> To: Michael Rawlins <raw...@ya...> Cc: "mat...@li..." <mat...@li...> Sent: Tuesday, January 17, 2012 2:02 PM Subject: Re: [Matplotlib-users] placing colorbar when using subplot command On Tue, Jan 17, 2012 at 12:37 PM, Michael Rawlins <raw...@ya...> wrote: > > > > >________________________________ > From: Benjamin Root <ben...@ou...> >To: Michael Rawlins <raw...@ya...> >Cc: "mat...@li..." <mat...@li...> >Sent: Tuesday, January 17, 2012 10:36 AM >Subject: Re: [Matplotlib-users] placing colorbar when using subplot command > > > > >On Tue, Jan 17, 2012 at 9:30 AM, Michael Rawlins <raw...@ya...> wrote: > > >> >>I'm relatively new to matplotlib. Trying to place a colorbar in a figure. The code below, placed in a file and executed with python, draws 4 maps using basemap. I've been unable to get a colorbar to show up anywhere on the figure. Ideally I would like the option of placing a colorbar across the bottom, spanning across both bottom map panels. Also would need the option of placing a colorbar either to the right of or below each map. Uncommenting the two lines under "Here make a colorbar" cause an error. I've used those commands when creating just one map using the figure command. >> >> >>TIA, >>Mike >> >> >> >> > >Mike, > >Try using the axes_grid1 toolkit to produce your axes objects and to allocate enough room for colorbars. > >http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/index.html > >Cheers! >Ben Root > >P.S. - a little history, there used to be an axes_grid toolkit, but has since been superseded by axes_grid1. > > >Clicking on source code on that page produces an error. For several of the graphic on that page, dropping the code into a file and running also produces various errors. Being new to this software, having a specific example that I can run and then incorporate into my code would be a big help. > >Mike > > > Mike, I do apologize for that. We will have to get that fixed on the website (not sure why it is happening). I have attached an example file for you to try. Also, which version of matplotlib are you running? Without the error message you are getting, it would be hard to tell you what is wrong (most likely it is a version issue). Ben Root Version 0.99.1.1 installed through Synaptic package manager on system running Ubuntu 10.04. I'd rather not attempt a fresh install from sources just yet. Adding a colorbar alonside each map panel is possible. Anyone able to modify that code to make that work? I'm assuming it very simple for an experienced user. Also, is it possible to add axes_grid1.py to my directory? If I want to get fancy in the future I will install version 1 and use axes_grid1.py. Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib >>> matplotlib.__version__ '0.99.1.1' >>> |
|
From: Yann T. <yan...@bu...> - 2012-01-18 13:52:11
|
Hi Per, I think you want to use the 'ticklabel_format' method: http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.ticklabel_format Here's your example modified some. 'some_point2A.pdf' produces exactly the same as the default. 'some_point2B.pdf' does not use an offset, and maybe produces more of what you were looking for. import pylab as pl some_points = [0.94589396231920286, 0.94593953605915637, 0.94601787712257401, 0.94597530431819743, 0.9459922123931529, 0.94622433138703055] pl.plot(some_points, '.-') pl.ticklabel_format(style='plain',useOffset=0.9458,axis='y') pl.savefig('some_point2A.pdf') pl.ticklabel_format(style='plain',useOffset=False,axis='y') pl.savefig('some_point2B.pdf') -Yann On Wed, Jan 18, 2012 at 4:15 AM, Per Nielsen <ev...@gm...> wrote: > Hi all > > I get a rather strange scaling / choice of y-axis ticks for the following > script: > > import pylab as pl > > some_points = [0.94589396231920286, 0.94593953605915637, > 0.94601787712257401, 0.94597530431819743, 0.9459922123931529, > 0.94622433138703055] > pl.plot(some_points, '.-') > pl.savefig('some_point2.pdf') > > output here: > > http://dl.dropbox.com/u/2244215/some_point2.pdf > > This is a rather simple plot, but matplotlib choses a strange scaling of > the y-axis by default. How do I get a more standard scaling without > specifying the yticks manually? > > Best > > Per > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
|
From: Per N. <ev...@gm...> - 2012-01-18 09:15:39
|
Hi all
I get a rather strange scaling / choice of y-axis ticks for the following
script:
import pylab as pl
some_points = [0.94589396231920286, 0.94593953605915637,
0.94601787712257401, 0.94597530431819743, 0.9459922123931529,
0.94622433138703055]
pl.plot(some_points, '.-')
pl.savefig('some_point2.pdf')
output here:
http://dl.dropbox.com/u/2244215/some_point2.pdf
This is a rather simple plot, but matplotlib choses a strange scaling of
the y-axis by default. How do I get a more standard scaling without
specifying the yticks manually?
Best
Per
|
|
From: Mac J. <ma...@fr...> - 2012-01-18 01:04:49
|
Problem: Installation of matlibplot for Python 2.7's .exe file requires that Numby be installed first. But the Numby installation list does not include a version for Python 2.7. The highest available version is for Python 2.6. So, Numby 2.6 won't install because it can't find a Python 2.6 and matlibplot for Python 2.7 won't run because it can't find an installed Numby. Is there a work around? |
|
From: Michael R. <raw...@ya...> - 2012-01-17 19:17:24
|
________________________________ From: Benjamin Root <ben...@ou...> To: Michael Rawlins <raw...@ya...> Cc: "mat...@li..." <mat...@li...> Sent: Tuesday, January 17, 2012 2:02 PM Subject: Re: [Matplotlib-users] placing colorbar when using subplot command On Tue, Jan 17, 2012 at 12:37 PM, Michael Rawlins <raw...@ya...> wrote: > > > > >________________________________ > From: Benjamin Root <ben...@ou...> >To: Michael Rawlins <raw...@ya...> >Cc: "mat...@li..." <mat...@li...> >Sent: Tuesday, January 17, 2012 10:36 AM >Subject: Re: [Matplotlib-users] placing colorbar when using subplot command > > > > >On Tue, Jan 17, 2012 at 9:30 AM, Michael Rawlins <raw...@ya...> wrote: > > >> >>I'm relatively new to matplotlib. Trying to place a colorbar in a figure. The code below, placed in a file and executed with python, draws 4 maps using basemap. I've been unable to get a colorbar to show up anywhere on the figure. Ideally I would like the option of placing a colorbar across the bottom, spanning across both bottom map panels. Also would need the option of placing a colorbar either to the right of or below each map. Uncommenting the two lines under "Here make a colorbar" cause an error. I've used those commands when creating just one map using the figure command. >> >> >>TIA, >>Mike >> >> >> >> > >Mike, > >Try using the axes_grid1 toolkit to produce your axes objects and to allocate enough room for colorbars. > >http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/index.html > >Cheers! >Ben Root > >P.S. - a little history, there used to be an axes_grid toolkit, but has since been superseded by axes_grid1. > > >Clicking on source code on that page produces an error. For several of the graphic on that page, dropping the code into a file and running also produces various errors. Being new to this software, having a specific example that I can run and then incorporate into my code would be a big help. > >Mike > > > Mike, I do apologize for that. We will have to get that fixed on the website (not sure why it is happening). I have attached an example file for you to try. Also, which version of matplotlib are you running? Without the error message you are getting, it would be hard to tell you what is wrong (most likely it is a version issue). Ben Root Ben et al. This line causes the error: from mpl_toolkits.axes_grid1 import AxesGrid Traceback (most recent call last): File "demo_axes_grid.py", line 2, in <module> from mpl_toolkits.axes_grid1 import AxesGrid File "/usr/local/lib/python2.6/dist-packages/mpl_toolkits/axes_grid1/__init__.py", line 4, in <module> from axes_grid import Grid, ImageGrid, AxesGrid File "/usr/local/lib/python2.6/dist-packages/mpl_toolkits/axes_grid1/axes_grid.py", line 6, in <module> import colorbar as mcolorbar File "/usr/local/lib/python2.6/dist-packages/mpl_toolkits/axes_grid1/colorbar.py", line 26, in <module> from matplotlib import docstring ImportError: cannot import name docstring I see no axes_grid1.py where I guess it belongs. Here's what's in /usr/share/pyshared/mpl_toolkits/axes_grid parasite_axes.py axislines.py anchored_artists.py inset_locator.py grid_helper_curvelinear.py axes_size.py __init__.py grid_finder.py axes_rgb.py axes_divider.py clip_path.py axes_grid.py angle_helper.py Do I need to upgrade python? Matplotlib? Add just a file or two? Mike |
|
From: Benjamin R. <ben...@ou...> - 2012-01-17 19:03:23
|
On Tue, Jan 17, 2012 at 12:37 PM, Michael Rawlins <raw...@ya...>wrote: > > > ------------------------------ > *From:* Benjamin Root <ben...@ou...> > *To:* Michael Rawlins <raw...@ya...> > *Cc:* "mat...@li..." < > mat...@li...> > *Sent:* Tuesday, January 17, 2012 10:36 AM > *Subject:* Re: [Matplotlib-users] placing colorbar when using subplot > command > > > On Tue, Jan 17, 2012 at 9:30 AM, Michael Rawlins <raw...@ya...>wrote: > > > I'm relatively new to matplotlib. Trying to place a colorbar in a figure. > The code below, placed in a file and executed with python, draws 4 maps > using basemap. I've been unable to get a colorbar to show up anywhere on > the figure. Ideally I would like the option of placing a colorbar across > the bottom, spanning across both bottom map panels. Also would need the > option of placing a colorbar either to the right of or below each map. > Uncommenting the two lines under "Here make a colorbar" cause an error. > I've used those commands when creating just one map using the figure > command. > > TIA, > Mike > > > > Mike, > > Try using the axes_grid1 toolkit to produce your axes objects and to > allocate enough room for colorbars. > > http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/index.html > > Cheers! > Ben Root > > P.S. - a little history, there used to be an axes_grid toolkit, but has > since been superseded by axes_grid1. > > > Clicking on source code on that page produces an error. For several of the > graphic on that page, dropping the code into a file and running also > produces various errors. Being new to this software, having a specific > example that I can run and then incorporate into my code would be a big > help. > > Mike > > > Mike, I do apologize for that. We will have to get that fixed on the website (not sure why it is happening). I have attached an example file for you to try. Also, which version of matplotlib are you running? Without the error message you are getting, it would be hard to tell you what is wrong (most likely it is a version issue). Ben Root |
|
From: Ethan S. <es...@vt...> - 2012-01-17 18:41:45
|
It's a bit of a pain:
xPix = 900
yPix = 600
xSize = 3 #inches
ySize = xSize/xPix*yPix
gcf().set_inches_size(xSize,ySize)
gcf().savefig('test.png',dpi=xSize/xPix)
You can also chance pyplot.rcParams - it's a dictionary of default values.
On 1/17/2012 12:10 PM, Keith Hughitt wrote:
> I'd also be interested if anyone has a suggestion for how to save a
> figure such that the pixel dimensions of a subplot (e.g. an image) are
> set.
>
> On Sat, Jan 14, 2012 at 8:57 AM, klo uo <kl...@gm...
> <mailto:kl...@gm...>> wrote:
>
> I browsed Google, and found mainly outdated code examples (also on
> scipy cookbook) then some 2008 posts on StackOverflow where at
> least I find some trace that matplotlib.figure.Figure has some
> instruments to change output image size, but it's in combination
> from inches and dpi set. However I just couldn't find how to tell
> my plt graph to use this matplotlib.figure.Figure settings, and
> ended editing matplotlibrc file and changing inches and DPI there
>
> Shouldn't be there some easier setting to set image size for
> savefig() output?
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Mar 27 - Feb 2
> Save $400 by Jan. 27
> Register now!
> http://p.sf.net/sfu/rsa-sfdev2dev2
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> <mailto:Mat...@li...>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: Michael R. <raw...@ya...> - 2012-01-17 18:38:02
|
________________________________ From: Benjamin Root <ben...@ou...> To: Michael Rawlins <raw...@ya...> Cc: "mat...@li..." <mat...@li...> Sent: Tuesday, January 17, 2012 10:36 AM Subject: Re: [Matplotlib-users] placing colorbar when using subplot command On Tue, Jan 17, 2012 at 9:30 AM, Michael Rawlins <raw...@ya...> wrote: > >I'm relatively new to matplotlib. Trying to place a colorbar in a figure. The code below, placed in a file and executed with python, draws 4 maps using basemap. I've been unable to get a colorbar to show up anywhere on the figure. Ideally I would like the option of placing a colorbar across the bottom, spanning across both bottom map panels. Also would need the option of placing a colorbar either to the right of or below each map. Uncommenting the two lines under "Here make a colorbar" cause an error. I've used those commands when creating just one map using the figure command. > > >TIA, >Mike > > > > Mike, Try using the axes_grid1 toolkit to produce your axes objects and to allocate enough room for colorbars. http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/index.html Cheers! Ben Root P.S. - a little history, there used to be an axes_grid toolkit, but has since been superseded by axes_grid1. Clicking on source code on that page produces an error. For several of the graphic on that page, dropping the code into a file and running also produces various errors. Being new to this software, having a specific example that I can run and then incorporate into my code would be a big help. Mike |
|
From: Matthew L. <ma...@in...> - 2012-01-17 17:19:07
|
I have found several broken links on the matplotlib documentation pages. The broken links I've found occur when I click on an example to see the source code. Here's one of them: http://matplotlib.sourceforge.net/examples/pylab_examples/demo_tight_layout_00.html The above link generates a 404 error. |
|
From: Keith H. <kei...@gm...> - 2012-01-17 17:11:02
|
I'd also be interested if anyone has a suggestion for how to save a figure such that the pixel dimensions of a subplot (e.g. an image) are set. On Sat, Jan 14, 2012 at 8:57 AM, klo uo <kl...@gm...> wrote: > I browsed Google, and found mainly outdated code examples (also on scipy > cookbook) then some 2008 posts on StackOverflow where at least I find some > trace that matplotlib.figure.Figure has some instruments to change output > image size, but it's in combination from inches and dpi set. However I just > couldn't find how to tell my plt graph to use this matplotlib.figure.Figure > settings, and ended editing matplotlibrc file and changing inches and DPI > there > > Shouldn't be there some easier setting to set image size for savefig() > output? > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
|
From: German S. <sal...@gm...> - 2012-01-17 15:53:27
|
Any ideas? Also, as in the example here<http://matplotlib.sourceforge.net/examples/pylab_examples/multiple_yaxis_with_spines.html>, the legend seems to be behind the quantity being plotted against the one of the secondary y-axis....does this have anything to do with that?...it is that maybe the legend is draggable but I am not getting to it? gsal |
|
From: Benjamin R. <ben...@ou...> - 2012-01-17 15:37:21
|
On Tue, Jan 17, 2012 at 9:30 AM, Michael Rawlins <raw...@ya...>wrote: > > I'm relatively new to matplotlib. Trying to place a colorbar in a figure. > The code below, placed in a file and executed with python, draws 4 maps > using basemap. I've been unable to get a colorbar to show up anywhere on > the figure. Ideally I would like the option of placing a colorbar across > the bottom, spanning across both bottom map panels. Also would need the > option of placing a colorbar either to the right of or below each map. > Uncommenting the two lines under "Here make a colorbar" cause an error. > I've used those commands when creating just one map using the figure > command. > > TIA, > Mike > > > Mike, Try using the axes_grid1 toolkit to produce your axes objects and to allocate enough room for colorbars. http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/index.html Cheers! Ben Root P.S. - a little history, there used to be an axes_grid toolkit, but has since been superseded by axes_grid1. |
|
From: Michael R. <raw...@ya...> - 2012-01-17 15:31:06
|
I'm relatively new to matplotlib. Trying to place a colorbar in a figure. The code below, placed in a file and executed with python, draws 4 maps using basemap. I've been unable to get a colorbar to show up anywhere on the figure. Ideally I would like the option of placing a colorbar across the bottom, spanning across both bottom map panels. Also would need the option of placing a colorbar either to the right of or below each map. Uncommenting the two lines under "Here make a colorbar" cause an error. I've used those commands when creating just one map using the figure command.
TIA,
Mike
verbose=0 #verbose=2 says a bit more
import sys,getopt
from mpl_toolkits.basemap import Basemap, shiftgrid, cm
#from netCDF3 import Dataset as NetCDFFile
from mpl_toolkits.basemap import NetCDFFile
from pylab import *
alloptions, otherargs= getopt.getopt(sys.argv[1:],'ro:p:X:Y:v:t:l:u:n:') # note the : after o and p
proj='lam'
cmap = cm.get_cmap('jet', 10) # 10 discrete colors
print "\nPlotting, please wait...maybe more than 10 seconds"
if proj=='lam': #Lambert Conformal
m = Basemap(llcrnrlon=-80.6,llcrnrlat=38.4,urcrnrlon=-66.0,urcrnrlat=47.7,\
resolution='l',area_thresh=1000.,projection='lcc',\
lat_1=65.,lon_0=-73.3)
xtxt=200000. #offset for text
ytxt=200000.
parallels = arange(38.,48.,2.)
meridians = arange(-80.,-64.,2.)
xsize = rcParams['figure.figsize'][0]
fig=figure(figsize=(xsize,m.aspect*xsize))
cax = axes([0.88, 0.1, 0.06, 0.81]) # colorbar axes for map w/ graticule
############################################################################################
subplots_adjust(left=None, bottom=None, right=None, top=None, wspace=0.15, hspace=0.11)
# Make the first map at upper left
sp = plt.subplot(2,2,1)
# Here make a colorbar.
#cax = axes([0.88, 0.1, 0.06, 0.81]) # colorbar axes for map w/ graticule
#colorbar(format='%3.1f', ticks=[-1.5, -1.2, -0.9, -0.6, -0.3, 0.0, 0.3, 0.6, 0.9, 1.2, 1.5], cax=cax)
# draw coastlines and political boundaries.
m.drawcoastlines()
m.drawcountries()
m.drawstates()
# Make the second map #########################################################################
sp = plt.subplot(2,2,2)
# draw coastlines and political boundaries.
m.drawcoastlines()
m.drawcountries()
m.drawstates()
# Make the third map #########################################################################
sp = plt.subplot(2,2,3)
# draw coastlines and political boundaries.
m.drawcoastlines()
m.drawcountries()
m.drawstates()
# Make the fourth map #########################################################################
sp = plt.subplot(2,2,4)
# draw coastlines and political boundaries.
m.drawcoastlines()
m.drawcountries()
m.drawstates()
plt.show()
plt.savefig("map.eps")
plt.clf() # Clears the figure object |
|
From: Jeff W. <js...@fa...> - 2012-01-17 14:48:57
|
On 1/17/12 3:50 AM, Serhiy Hrechanyy wrote: >> Yes, they all make squares. Why is it so important the plot be round? > > Well, it is definitely not a matter of life or death. Just think that > round polar plots look a bit nicer. > > I haven't tried your workaround solution yet (must do something urgent > first). But thanks a lot for your help and of course for the Basemap. > Very helpful tool even with square maps))!! > > Serhiy > Serhiy: I've added this feature to my github fork (https://github.com/jswhit/basemap). You just specify 'round=True' when creating the pole-centered basemap. Meridian labels are not working yet though. -Jeff |
|
From: <edu...@in...> - 2012-01-17 14:16:07
|
I don' t know what version of basemap do I need for matplotlib 0.99.3, I'm using the debian 6 installation of matplotlib (0.99.3) and geos. |
|
From: Nils W. <nw...@ia...> - 2012-01-17 13:15:56
|
On Mon, 16 Jan 2012 08:18:03 -0600 Benjamin Root <ben...@ou...> wrote: > On Monday, January 16, 2012, Nils Wagner ><nw...@ia...> > wrote: >> Hi all, >> >> I have filed a ticket for adding a printer button to the >> navigation toolbar. >> https://github.com/matplotlib/matplotlib/issues/670 >> I am interested in a wider response. >> >> Any further comments ? >> >> Nils >> >> > > Adding a button is easy... Adding cross-platform printer >capability is not. > The only way I envision it could happen is if the GUI >toolkits have some > sort of printing API. We already can convert to >postscript. > > Ben Root A customization of the navigation toolbar is possible. I have used the qt4 backend. However the quality of the print-out is poor using QPrinter. Moreover the frame including the navigation toolbar is printed. How can I omit that ? How can I improve the quality of the hardcopy. I have attached the program. Any hint would be appreciated. Thanks in advance. Nils |
|
From: Fabien L. <laf...@gm...> - 2012-01-17 12:43:52
|
I'm using an example from Sandro's Tosi book. I've just modified it to
use random data instead cpu_datas.
But the autoscale doesn't work even if I turn
self.ax.set_autoscale_on(True). Do you have an Idea why?
from pylab import *
import random
import sys
from PyQt4 import QtGui
import numpy as np
from matplotlib.figure import Figure
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg
as NavigationToolbar
#===============================================================================
#
#===============================================================================
class CPUMonitor(FigureCanvas):
"""Matplotlib Figure widget"""
def __init__(self,parent):
# first image setup
self.fig = Figure()
self.ax = self.fig.add_subplot(111)
# initialization of the canvas
FigureCanvas.__init__(self, self.fig)
FigureCanvas.updateGeometry(self)
# generates first "empty" plots
self.user, self.nice = [], []
self.l_user, = self.ax.plot([], self.user, label='Voltage')
self.l_nice, = self.ax.plot([], self.nice, label='Voltage2')
self.ax.set_autoscale_on(True)
# force a redraw of the Figure
# self.fig.canvas.draw()
# start the timer, to trigger an event every x milliseconds)
self.timer = self.startTimer(1000)
self.timerEvent(None)
def get_info(self):
val1 = random.randint(0,4)
return [val1]
def get_info2(self) :
val2 = random.randint(0,12)
return [val2]
def timerEvent(self, evt):
"""Custom timerEvent code, called upon timer event receive"""
result1 = self.get_info()
result2 = self.get_info2()
# append new data to the datasets
self.user.append(result1)
self.nice.append(result2)
# update lines data using the lists with new data
self.l_user.set_data(range(len(self.user)), self.user)
self.l_nice.set_data(range(len(self.nice)), self.nice)
# force a redraw of the Figure
self.fig.canvas.draw()
FigureCanvas.updateGeometry(self)
#===============================================================================
#
#===============================================================================
class ApplicationWindow(QtGui.QMainWindow):
"""Example main window"""
def __init__(self):
# initialization of Qt MainWindow widget
QtGui.QMainWindow.__init__(self)
# set window title
self.setWindowTitle("QHE manip")
# instantiate a widget, it will be the main one
self.main_widget = QtGui.QWidget(self)
# create a vertical box layout widget
vbl = QtGui.QVBoxLayout(self.main_widget)
# instantiate our Matplotlib canvas widget
qmc = CPUMonitor(self.main_widget)
# instantiate the navigation toolbar
ntb = NavigationToolbar(qmc, self.main_widget)
# pack these widget into the vertical box
vbl.addWidget(qmc)
vbl.addWidget(ntb)
# set the focus on the main widget
self.main_widget.setFocus()
# set the central widget of MainWindow to main_widget
self.setCentralWidget(self.main_widget)
# create the GUI application
qApp = QtGui.QApplication(sys.argv)
# instantiate the ApplicationWindow widget
aw = ApplicationWindow()
# show the widget
aw.show()
# start the Qt main loop execution, exiting from this script
# with the same return code of Qt application
sys.exit(qApp.exec_())
|