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
(9) |
2
(6) |
3
(8) |
4
(6) |
5
|
6
(1) |
7
(4) |
8
(15) |
9
(11) |
10
|
11
(1) |
12
(13) |
13
(5) |
14
(10) |
15
(12) |
16
(7) |
17
(12) |
18
(5) |
19
(4) |
20
(11) |
21
(4) |
22
(11) |
23
(28) |
24
(24) |
25
(23) |
26
(6) |
27
(7) |
28
(17) |
29
(21) |
30
(6) |
|
|
|
Hi all, I am trying to setup matplotbib on my computer (which is unfortunately running on windows) and for some reason, it doesn't seem to be working. I believe I have downloaded everything I should have downloaded (Python 2.5, numpy, ipython, lpng1226, zlib, gtk, and I'm probably forgetting a few other things that I did download), yet when I open Ipython and plot the recommended example plot([1,2,3]) all I get is the error "NameError: name 'plot' is not defined". Possibly, the things I downloaded did not go to the right directories. Does anybody know if this matters, and if yes, where should the files be located? Part of the problem also is that my computer skills are low, so I don't understand many of the terms used (such as "backends", for instance - what is it?). I would really appreciate it if somebody could tell me what I should try to do or point me to a step-by-step guide ! (I would really, really love to be able to plot data I generate on Python...) Many thanks in advance for your help, Nathanael
Joshua Lippai wrote: > Also, I assume I should also take out the no-cpp-precomp flag since > that doesn't work with GCC 4.2 either? Or does it not matter? > Josh: Apparently it just ignores that flag. > Josh > > On Tue, Apr 8, 2008 at 1:57 PM, Joshua Lippai <dis...@gm...> wrote: > >> Thanks, Jeff. But is there a downside to removing the Wno-long-double >> flag I should know about? >> >> Josh >> No idea. -Jeff >> >> >> On Tue, Apr 8, 2008 at 9:06 AM, Jeff Whitaker <js...@fa...> wrote: >> > >> > Joshua Lippai wrote: >> > >> > > Hello all, >> > > >> > > I'v been trying to get the same python module setup in 10.5 qorking >> > > that I had going in 10.4, and so far I've been unable to install >> > > matplotlib from svn on my own. I've managed to use an installer >> > > (easy_install I think...) in the mean time, but I'd really like to be >> > > able to keep more up-to-date. When I run python setup.py build, I get >> > > the following output: >> > > >> > > BUILDING MATPLOTLIB >> > > matplotlib: 0.98pre >> > > python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC >> > > 4.0.1 (Apple Computer, Inc. build 5363)] >> > > platform: darwin >> > > >> > > REQUIRED DEPENDENCIES >> > > numpy: 1.0.5.dev4951 >> > > freetype2: 9.16.3 >> > > >> > > OPTIONAL BACKEND DEPENDENCIES >> > > libpng: 1.2.22 >> > > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 >> > > wxPython: 2.8.7.1 >> > > * WxAgg extension not required for wxPython >= 2.8 >> > > Gtk+: no >> > > * Building for Gtk+ requires pygtk; you must be >> > able >> > > * to "import gtk" in your build/install environment >> > > Qt: no >> > > Qt4: no >> > > Cairo: no >> > > >> > > OPTIONAL DATE/TIMEZONE DEPENDENCIES >> > > datetime: present, version unknown >> > > dateutil: 1.4 >> > > pytz: 2008a >> > > >> > > OPTIONAL USETEX DEPENDENCIES >> > > dvipng: 1.9 >> > > ghostscript: 8.57 >> > > latex: 3.141592 >> > > >> > > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES >> > > configobj: matplotlib will provide >> > > enthought.traits: matplotlib will provide >> > > >> > > [Edit setup.cfg to suppress the above messages] >> > > >> > ============================================================================ >> > > running build >> > > running build_py >> > > copying lib/matplotlib/cbook.py -> >> > build/lib.macosx-10.4-fat-2.5/matplotlib >> > > copying lib/matplotlib/collections.py -> >> > > build/lib.macosx-10.4-fat-2.5/matplotlib >> > > copying lib/matplotlib/lines.py -> >> > build/lib.macosx-10.4-fat-2.5/matplotlib >> > > copying lib/matplotlib/rcsetup.py -> >> > build/lib.macosx-10.4-fat-2.5/matplotlib >> > > copying lib/matplotlib/backends/backend_qt4agg.py -> >> > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends >> > > copying lib/matplotlib/backends/backend_qtagg.py -> >> > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends >> > > copying lib/matplotlib/mpl-data/matplotlibrc -> >> > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data >> > > copying lib/matplotlib/mpl-data/matplotlib.conf -> >> > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data >> > > running build_ext >> > > building 'matplotlib.backends._backend_agg' extension >> > > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk >> > > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd >> > > -fno-common -dynamic -DNDEBUG -g -O3 >> > > >> > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include >> > > -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include >> > > -I/usr/X11R6/include -I. >> > > >> > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include >> > > -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2 >> > > -I/opt/gtk/include -I/usr/local/include -I/usr/include >> > > -I/usr/X11R6/include -I. >> > > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 >> > > -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o >> > > src/_image.cpp: In member function 'Py::Object >> > > _image_module::from_images(const Py::Tuple&)': >> > > src/_image.cpp:842: error: insn does not satisfy its constraints: >> > > (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set >> > > (mem:QI (plus:SI (reg/f:SI 6 bp) >> > > (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8]) >> > > (reg:QI 5 di)) 56 {*movqi_1} (nil) >> > > (nil)) >> > > src/_image.cpp:842: internal compiler error: in >> > > reload_cse_simplify_operands, at postreload.c:391 >> > > Please submit a full bug report, >> > > with preprocessed source if appropriate. >> > > See <URL:http://developer.apple.com/bugreporter> for instructions. >> > > error: command 'gcc' failed with exit status 1 >> > > >> > > I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer >> > > tools, so I really am not sure exactly of what's going on here. I know >> > > this has (obviously) been built for OS X 10.5 before, and I'm >> > > wondering if anyone else has run into this and knows how to get around >> > > it. >> > > >> > > Thanks, >> > > Josh >> > > >> > > >> > > >> > Josh: I've been able to work around this by installing the gcc 4.2 beta >> > from Apple. You then have to manually symlink gcc to gcc-4.2 in /usr/bin, >> > and edit the Makefile buried within the python installation to remove the >> > -Wno-long-double compiler flag (since it doesn't work with gcc-4.2). I >> > believe the Makefile is located in >> > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config. >> > >> > -Jeff >> > >> > >> >>
Also, I assume I should also take out the no-cpp-precomp flag since that doesn't work with GCC 4.2 either? Or does it not matter? Josh On Tue, Apr 8, 2008 at 1:57 PM, Joshua Lippai <dis...@gm...> wrote: > Thanks, Jeff. But is there a downside to removing the Wno-long-double > flag I should know about? > > Josh > > > > On Tue, Apr 8, 2008 at 9:06 AM, Jeff Whitaker <js...@fa...> wrote: > > > > Joshua Lippai wrote: > > > > > Hello all, > > > > > > I'v been trying to get the same python module setup in 10.5 qorking > > > that I had going in 10.4, and so far I've been unable to install > > > matplotlib from svn on my own. I've managed to use an installer > > > (easy_install I think...) in the mean time, but I'd really like to be > > > able to keep more up-to-date. When I run python setup.py build, I get > > > the following output: > > > > > > BUILDING MATPLOTLIB > > > matplotlib: 0.98pre > > > python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC > > > 4.0.1 (Apple Computer, Inc. build 5363)] > > > platform: darwin > > > > > > REQUIRED DEPENDENCIES > > > numpy: 1.0.5.dev4951 > > > freetype2: 9.16.3 > > > > > > OPTIONAL BACKEND DEPENDENCIES > > > libpng: 1.2.22 > > > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 > > > wxPython: 2.8.7.1 > > > * WxAgg extension not required for wxPython >= 2.8 > > > Gtk+: no > > > * Building for Gtk+ requires pygtk; you must be > > able > > > * to "import gtk" in your build/install environment > > > Qt: no > > > Qt4: no > > > Cairo: no > > > > > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > > > datetime: present, version unknown > > > dateutil: 1.4 > > > pytz: 2008a > > > > > > OPTIONAL USETEX DEPENDENCIES > > > dvipng: 1.9 > > > ghostscript: 8.57 > > > latex: 3.141592 > > > > > > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES > > > configobj: matplotlib will provide > > > enthought.traits: matplotlib will provide > > > > > > [Edit setup.cfg to suppress the above messages] > > > > > ============================================================================ > > > running build > > > running build_py > > > copying lib/matplotlib/cbook.py -> > > build/lib.macosx-10.4-fat-2.5/matplotlib > > > copying lib/matplotlib/collections.py -> > > > build/lib.macosx-10.4-fat-2.5/matplotlib > > > copying lib/matplotlib/lines.py -> > > build/lib.macosx-10.4-fat-2.5/matplotlib > > > copying lib/matplotlib/rcsetup.py -> > > build/lib.macosx-10.4-fat-2.5/matplotlib > > > copying lib/matplotlib/backends/backend_qt4agg.py -> > > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends > > > copying lib/matplotlib/backends/backend_qtagg.py -> > > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends > > > copying lib/matplotlib/mpl-data/matplotlibrc -> > > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data > > > copying lib/matplotlib/mpl-data/matplotlib.conf -> > > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data > > > running build_ext > > > building 'matplotlib.backends._backend_agg' extension > > > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk > > > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd > > > -fno-common -dynamic -DNDEBUG -g -O3 > > > > > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include > > > -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include > > > -I/usr/X11R6/include -I. > > > > > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include > > > -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2 > > > -I/opt/gtk/include -I/usr/local/include -I/usr/include > > > -I/usr/X11R6/include -I. > > > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 > > > -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o > > > src/_image.cpp: In member function 'Py::Object > > > _image_module::from_images(const Py::Tuple&)': > > > src/_image.cpp:842: error: insn does not satisfy its constraints: > > > (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set > > > (mem:QI (plus:SI (reg/f:SI 6 bp) > > > (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8]) > > > (reg:QI 5 di)) 56 {*movqi_1} (nil) > > > (nil)) > > > src/_image.cpp:842: internal compiler error: in > > > reload_cse_simplify_operands, at postreload.c:391 > > > Please submit a full bug report, > > > with preprocessed source if appropriate. > > > See <URL:http://developer.apple.com/bugreporter> for instructions. > > > error: command 'gcc' failed with exit status 1 > > > > > > I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer > > > tools, so I really am not sure exactly of what's going on here. I know > > > this has (obviously) been built for OS X 10.5 before, and I'm > > > wondering if anyone else has run into this and knows how to get around > > > it. > > > > > > Thanks, > > > Josh > > > > > > > > > > > Josh: I've been able to work around this by installing the gcc 4.2 beta > > from Apple. You then have to manually symlink gcc to gcc-4.2 in /usr/bin, > > and edit the Makefile buried within the python installation to remove the > > -Wno-long-double compiler flag (since it doesn't work with gcc-4.2). I > > believe the Makefile is located in > > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config. > > > > -Jeff > > > > >
Thanks, Jeff. But is there a downside to removing the Wno-long-double flag I should know about? Josh On Tue, Apr 8, 2008 at 9:06 AM, Jeff Whitaker <js...@fa...> wrote: > > Joshua Lippai wrote: > > > Hello all, > > > > I'v been trying to get the same python module setup in 10.5 qorking > > that I had going in 10.4, and so far I've been unable to install > > matplotlib from svn on my own. I've managed to use an installer > > (easy_install I think...) in the mean time, but I'd really like to be > > able to keep more up-to-date. When I run python setup.py build, I get > > the following output: > > > > BUILDING MATPLOTLIB > > matplotlib: 0.98pre > > python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC > > 4.0.1 (Apple Computer, Inc. build 5363)] > > platform: darwin > > > > REQUIRED DEPENDENCIES > > numpy: 1.0.5.dev4951 > > freetype2: 9.16.3 > > > > OPTIONAL BACKEND DEPENDENCIES > > libpng: 1.2.22 > > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 > > wxPython: 2.8.7.1 > > * WxAgg extension not required for wxPython >= 2.8 > > Gtk+: no > > * Building for Gtk+ requires pygtk; you must be > able > > * to "import gtk" in your build/install environment > > Qt: no > > Qt4: no > > Cairo: no > > > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > > datetime: present, version unknown > > dateutil: 1.4 > > pytz: 2008a > > > > OPTIONAL USETEX DEPENDENCIES > > dvipng: 1.9 > > ghostscript: 8.57 > > latex: 3.141592 > > > > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES > > configobj: matplotlib will provide > > enthought.traits: matplotlib will provide > > > > [Edit setup.cfg to suppress the above messages] > > > ============================================================================ > > running build > > running build_py > > copying lib/matplotlib/cbook.py -> > build/lib.macosx-10.4-fat-2.5/matplotlib > > copying lib/matplotlib/collections.py -> > > build/lib.macosx-10.4-fat-2.5/matplotlib > > copying lib/matplotlib/lines.py -> > build/lib.macosx-10.4-fat-2.5/matplotlib > > copying lib/matplotlib/rcsetup.py -> > build/lib.macosx-10.4-fat-2.5/matplotlib > > copying lib/matplotlib/backends/backend_qt4agg.py -> > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends > > copying lib/matplotlib/backends/backend_qtagg.py -> > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends > > copying lib/matplotlib/mpl-data/matplotlibrc -> > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data > > copying lib/matplotlib/mpl-data/matplotlib.conf -> > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data > > running build_ext > > building 'matplotlib.backends._backend_agg' extension > > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk > > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd > > -fno-common -dynamic -DNDEBUG -g -O3 > > > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include > > -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include > > -I/usr/X11R6/include -I. > > > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include > > -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2 > > -I/opt/gtk/include -I/usr/local/include -I/usr/include > > -I/usr/X11R6/include -I. > > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 > > -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o > > src/_image.cpp: In member function 'Py::Object > > _image_module::from_images(const Py::Tuple&)': > > src/_image.cpp:842: error: insn does not satisfy its constraints: > > (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set > > (mem:QI (plus:SI (reg/f:SI 6 bp) > > (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8]) > > (reg:QI 5 di)) 56 {*movqi_1} (nil) > > (nil)) > > src/_image.cpp:842: internal compiler error: in > > reload_cse_simplify_operands, at postreload.c:391 > > Please submit a full bug report, > > with preprocessed source if appropriate. > > See <URL:http://developer.apple.com/bugreporter> for instructions. > > error: command 'gcc' failed with exit status 1 > > > > I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer > > tools, so I really am not sure exactly of what's going on here. I know > > this has (obviously) been built for OS X 10.5 before, and I'm > > wondering if anyone else has run into this and knows how to get around > > it. > > > > Thanks, > > Josh > > > > > > > Josh: I've been able to work around this by installing the gcc 4.2 beta > from Apple. You then have to manually symlink gcc to gcc-4.2 in /usr/bin, > and edit the Makefile buried within the python installation to remove the > -Wno-long-double compiler flag (since it doesn't work with gcc-4.2). I > believe the Makefile is located in > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config. > > -Jeff > >
On 08.04.2008, at 19:51, Manuel Metz wrote: > Jochen Küpper wrote: >> >> matplotlib creates a contour plot with an x-axes labels of >> "0.0000324", ... and adds a "+1" in the lower right corner. >> Actually, it is often not visible at all. >> How can I set it to always use the "correct" values directly as >> labels? >> > gca().xaxis.set_major_formatter(ScalarFormatter(useOffset=False)) > > see also examples/newscalarformatter_demo.py That works perfectly! As a more general question: How was I supposed to find this out? What user-documentation is there besides the matplotlib.sf.net homepage and the PDF user guide? Should I have found it in these docs already? Thanks for your help. Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll
Alan G Isaac wrote: > On Tuesday 08 April 2008 10:46:32 am Bryan Fodness wrote: >> I am starting with a zero array, populate it according to >> some condition, save the graph > > I am going to need something along this line pretty soon. > What is the difference between matshow and pcolormesh for > this? (Besides the aspect ratio?) matshow is a compatibility interface to imshow, which is restricted to regular rectangular grids, but is the fastest way to make an image-like plot. pcolormesh is not as fast, but can handle arbitrary quadrilateral grids. There is also code to handle irregular rectangular grids at a speed intermediate between imshow and pcolormesh (which is a wrapper for quadmesh). A unified interface to all of these is provided by the pcolorfast axes method in svn. Its API may need tweaking; suggestions are welcome. Eric > > Thank you, > Alan Isaac > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save 200ドル. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Jochen Küpper wrote: > Hi, > > when I create a contour plot with the following grid: > xval = [ 1.00003324, 1.00009971, 1.00016618] > yval = [250, 260, 270] > data = ones((3,3)) > contourf(xval, yval, data) > > matplotlib creates a contour plot with an x-axes labels of > "0.0000324", ... and adds a "+1" in the lower right corner. > Actually, it is often not visible at all. > > How can I set it to always use the "correct" values directly as labels? > > Greetings, > Jochen Hi, you can use gca().xaxis.set_major_formatter(ScalarFormatter(useOffset=False)) see also examples/newscalarformatter_demo.py Manuel
On Tuesday 08 April 2008 10:46:32 Bryan Fodness wrote: > I am starting with a zero array, populate it according to some > condition, save the graph, and then reset the array to zero. Can > someone tell me if there is a better (faster) way to do this? My 2c: * Use inplace addition to save some space while something: .... if something: if something: a[y,x] += 1 * To set all the values to 0: a.flat = 0
On Tuesday 08 April 2008 10:46:32 am Bryan Fodness wrote: > I am starting with a zero array, populate it according to > some condition, save the graph I am going to need something along this line pretty soon. What is the difference between matshow and pcolormesh for this? (Besides the aspect ratio?) Thank you, Alan Isaac
Joshua Lippai wrote: > Hello all, > > I'v been trying to get the same python module setup in 10.5 qorking > that I had going in 10.4, and so far I've been unable to install > matplotlib from svn on my own. I've managed to use an installer > (easy_install I think...) in the mean time, but I'd really like to be > able to keep more up-to-date. When I run python setup.py build, I get > the following output: > > BUILDING MATPLOTLIB > matplotlib: 0.98pre > python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC > 4.0.1 (Apple Computer, Inc. build 5363)] > platform: darwin > > REQUIRED DEPENDENCIES > numpy: 1.0.5.dev4951 > freetype2: 9.16.3 > > OPTIONAL BACKEND DEPENDENCIES > libpng: 1.2.22 > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 > wxPython: 2.8.7.1 > * WxAgg extension not required for wxPython >= 2.8 > Gtk+: no > * Building for Gtk+ requires pygtk; you must be able > * to "import gtk" in your build/install environment > Qt: no > Qt4: no > Cairo: no > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > datetime: present, version unknown > dateutil: 1.4 > pytz: 2008a > > OPTIONAL USETEX DEPENDENCIES > dvipng: 1.9 > ghostscript: 8.57 > latex: 3.141592 > > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES > configobj: matplotlib will provide > enthought.traits: matplotlib will provide > > [Edit setup.cfg to suppress the above messages] > ============================================================================ > running build > running build_py > copying lib/matplotlib/cbook.py -> build/lib.macosx-10.4-fat-2.5/matplotlib > copying lib/matplotlib/collections.py -> > build/lib.macosx-10.4-fat-2.5/matplotlib > copying lib/matplotlib/lines.py -> build/lib.macosx-10.4-fat-2.5/matplotlib > copying lib/matplotlib/rcsetup.py -> build/lib.macosx-10.4-fat-2.5/matplotlib > copying lib/matplotlib/backends/backend_qt4agg.py -> > build/lib.macosx-10.4-fat-2.5/matplotlib/backends > copying lib/matplotlib/backends/backend_qtagg.py -> > build/lib.macosx-10.4-fat-2.5/matplotlib/backends > copying lib/matplotlib/mpl-data/matplotlibrc -> > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data > copying lib/matplotlib/mpl-data/matplotlib.conf -> > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data > running build_ext > building 'matplotlib.backends._backend_agg' extension > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd > -fno-common -dynamic -DNDEBUG -g -O3 > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include > -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include > -I/usr/X11R6/include -I. > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include > -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2 > -I/opt/gtk/include -I/usr/local/include -I/usr/include > -I/usr/X11R6/include -I. > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 > -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o > src/_image.cpp: In member function 'Py::Object > _image_module::from_images(const Py::Tuple&)': > src/_image.cpp:842: error: insn does not satisfy its constraints: > (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set > (mem:QI (plus:SI (reg/f:SI 6 bp) > (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8]) > (reg:QI 5 di)) 56 {*movqi_1} (nil) > (nil)) > src/_image.cpp:842: internal compiler error: in > reload_cse_simplify_operands, at postreload.c:391 > Please submit a full bug report, > with preprocessed source if appropriate. > See <URL:http://developer.apple.com/bugreporter> for instructions. > error: command 'gcc' failed with exit status 1 > > I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer > tools, so I really am not sure exactly of what's going on here. I know > this has (obviously) been built for OS X 10.5 before, and I'm > wondering if anyone else has run into this and knows how to get around > it. > > Thanks, > Josh > > Josh: I've been able to work around this by installing the gcc 4.2 beta from Apple. You then have to manually symlink gcc to gcc-4.2 in /usr/bin, and edit the Makefile buried within the python installation to remove the -Wno-long-double compiler flag (since it doesn't work with gcc-4.2). I believe the Makefile is located in /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config. -Jeff
Hi, I would like to add a Text that has three colors, "bbbbbbb, gggggggg, rrrrrrrr" where bbbb is in blue, gggg is in green and rrrr in red. I am able to create three texts but how can I have them position 'side by side'? Thanks, Olivier
On Tuesday 08 April 2008 10:46:32 am Bryan Fodness wrote: > I am starting with a zero array, populate it according to some > condition, save the graph, and then reset the array to zero. Can > someone tell me if there is a better (faster) way to do this? You might ask at the numpy mailing list, but I suspect that a *= 0 might be faster. > Or am I > just doing that much, and that is how long it will take? I have a > couple hundred graphs that I am creating, that will ultimately be > combined for animation. > > ay=4000 > ax=60 > #create empty array > a = zeros((ay,ax), int) > > while something: > pcolormesh(X, Y, a) > figname = 'Frame%03d' %int(field) > print figname > savefig(figname) > # reset values > a = zeros((ay,ax), int) > if something: > if something: > a[y,x] = a[y,x]+1
I am starting with a zero array, populate it according to some condition, save the graph, and then reset the array to zero. Can someone tell me if there is a better (faster) way to do this? Or am I just doing that much, and that is how long it will take? I have a couple hundred graphs that I am creating, that will ultimately be combined for animation. ay=4000 ax=60 #create empty array a = zeros((ay,ax), int) while something: pcolormesh(X, Y, a) figname = 'Frame%03d' %int(field) print figname savefig(figname) # reset values a = zeros((ay,ax), int) if something: if something: a[y,x] = a[y,x]+1
Hello all, I'v been trying to get the same python module setup in 10.5 qorking that I had going in 10.4, and so far I've been unable to install matplotlib from svn on my own. I've managed to use an installer (easy_install I think...) in the mean time, but I'd really like to be able to keep more up-to-date. When I run python setup.py build, I get the following output: BUILDING MATPLOTLIB matplotlib: 0.98pre python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.0.5.dev4951 freetype2: 9.16.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.22 Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: 2.8.7.1 * WxAgg extension not required for wxPython >= 2.8 Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: 1.4 pytz: 2008a OPTIONAL USETEX DEPENDENCIES dvipng: 1.9 ghostscript: 8.57 latex: 3.141592 EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES configobj: matplotlib will provide enthought.traits: matplotlib will provide [Edit setup.cfg to suppress the above messages] ============================================================================ running build running build_py copying lib/matplotlib/cbook.py -> build/lib.macosx-10.4-fat-2.5/matplotlib copying lib/matplotlib/collections.py -> build/lib.macosx-10.4-fat-2.5/matplotlib copying lib/matplotlib/lines.py -> build/lib.macosx-10.4-fat-2.5/matplotlib copying lib/matplotlib/rcsetup.py -> build/lib.macosx-10.4-fat-2.5/matplotlib copying lib/matplotlib/backends/backend_qt4agg.py -> build/lib.macosx-10.4-fat-2.5/matplotlib/backends copying lib/matplotlib/backends/backend_qtagg.py -> build/lib.macosx-10.4-fat-2.5/matplotlib/backends copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data running build_ext building 'matplotlib.backends._backend_agg' extension gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2 -I/opt/gtk/include -I/usr/local/include -I/usr/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o src/_image.cpp: In member function 'Py::Object _image_module::from_images(const Py::Tuple&)': src/_image.cpp:842: error: insn does not satisfy its constraints: (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set (mem:QI (plus:SI (reg/f:SI 6 bp) (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8]) (reg:QI 5 di)) 56 {*movqi_1} (nil) (nil)) src/_image.cpp:842: internal compiler error: in reload_cse_simplify_operands, at postreload.c:391 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://developer.apple.com/bugreporter> for instructions. error: command 'gcc' failed with exit status 1 I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer tools, so I really am not sure exactly of what's going on here. I know this has (obviously) been built for OS X 10.5 before, and I'm wondering if anyone else has run into this and knows how to get around it. Thanks, Josh
Hi, Trying to save a figure with a black figure.facecolor, black figure.edgecolor. If I savefig(), it follows the rc file settings, but if save from the button in the GUI, I get a white figure.facecolor and figure.edgecolor. I tried changing the GUI backends to no avail. Currently using Qt4Agg. Thanks.