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: João L. S. <js...@fc...> - 2010-07-21 12:19:53
|
On 07/21/2010 12:27 PM, Benjamin Koep wrote: > Hello, > > I got a big problem currently and i really hope that someone here can > help me. > > I am working on some graphs that are integrated into a django app. So > far no problem. I had really no experience with matplotlib before but i > managed to create 2 of 3 graph types the way our graphics designer > wants them to be. > > The last variation is making me really sick because it has nothing much > to do with an ordinary graph (except the fact that is has bars ;)). > > Please take a look at the attachment and give me a hint how i could > realize that. I would really appreciate that. > > Kind regards, > > Ben > The attached example (adapted mostly from barchart_demo2.py) should guide you in the right direction. Regards, João Luís |
|
From: Benjamin K. <sic...@gm...> - 2010-07-21 11:28:01
|
Hello, I got a big problem currently and i really hope that someone here can help me. I am working on some graphs that are integrated into a django app. So far no problem. I had really no experience with matplotlib before but i managed to create 2 of 3 graph types the way our graphics designer wants them to be. The last variation is making me really sick because it has nothing much to do with an ordinary graph (except the fact that is has bars ;)). Please take a look at the attachment and give me a hint how i could realize that. I would really appreciate that. Kind regards, Ben |
|
From: Benjamin R. <ben...@ou...> - 2010-07-20 20:29:14
|
Somehow, this doesn't seem very satisfying. It is almost accidental. There has to be a better way to do this. Ben Root 2010/7/20 Thøger Emil Juul Thorsen <th...@fy...> > One way is to specify the axes manually, e.g. setting: > > (with matyplotlib.pyplot importad as plt:) > > plt.axis([200, 500, -600, 600]) > > ...or whatever seems fitting for you, and do that on both of the y axes. > That should align them nicely. > > On Sat, 2010-07-17 at 20:37 +0200, Daniele Padula wrote: > > Hi everybody, > > I have a problem with a plot. I attach a figure to be easily > understandable. > > > > As you can see from the figure, I have in the same area a line and a bar > > plot. The problem is that y=0 for right y axis is different with respect > > to left y axis one. I want the two y=0 to be the same. > > > > How can i do that? > > > > Excuse me for my bad english, I'm italian :) > > > > Thanks in advance. > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > _______________________________________________ Matplotlib-users mailing > list Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Tommy G. <tg...@ma...> - 2010-07-20 19:48:01
|
Sorry for the badly formatted email with broken threading (I realized that my matplotlib-user subscription was held due to my email bouncing earlier in the month. > Re: [Matplotlib-users] Compile error > From: Michael Droettboom <mdroe@st...> - 2010-07-20 17:17 > It looks as if you do not have the freetype development headers installed. > > Mike > Where should the freeetype headers be? I thought they were installed when calling make with the dependencies being fetched? Tommy |
|
From: Darren D. <dsd...@gm...> - 2010-07-20 18:31:31
|
On Fri, Jun 18, 2010 at 7:50 AM, Darren Dale <dsd...@gm...> wrote:
> On Thu, Jun 17, 2010 at 11:04 PM, David Smith <dav...@gm...> wrote:
>> I have been developing an application using PyQt ant Matplotlib and encountered
>> a problem with the mouse cursor shape being incorrect. I found a work-around
>> that seems to work, but I think this is a bug and the fix needs to go into the
>> Matplotlib code base. Here are details.
>>
>> My application has a central widget used fo r a Matplotlib Figure.
>> Additionally there is a menu bar, button bar and two dock panels with
>> controls for the plot. I see the following behavior for the cursor:
>>
>> * On start up, the cursor acts normally on startup provided
>> the mouse cursor is not inside the figure widget on start-up.
>>
>> * Mouse pointer shapes are set by Windows (in this case VISTA)
>> and change shape according to location. For example, touching
>> the application window's border results in the arrow pointer
>> changing shape to a double-headed arrow indicating the border
>> can be dragged to adjust the size of the window.
>>
>> * Once the mouse pointer touches the Matplotlib figure widget
>> in any way, the mouse pointer will cease to show the double-arrow
>> shape on the window borders - the pointer remains an arrowhead.
>> You can still resize the window and the cursor does change to
>> a double-arrow when you press the left button.
>>
>> My workaround for this was to add the following lines of code in my
>> application:
>>
>> def onleave(self):
>> QtGui.QApplication.restoreOverrideCursor()
>>
>> self.fig.canvas.mpl_connect('figure_leave_event', onleave)
>>
>> I guessed these lines by studying the matplotlib code. Probably they
>> need to go somewhere inside the Matplotlib class definitions.
>>
>> I hope this helps developers to correct this problem. My application
>> code is medium-large and I didn't try to build a smaller example. The
>> mysterious 3-line workaround solves my problem for the moment.
>> Perhaps it will help another PyQt and Matplotlib user and perhaps
>> urge developers to fix the problem in the Matplotlib core.
>
> Now that you mention it, I have seen similar behavior. Thanks for the
> report, I'll look into it.
I think this has been fixed in svn, on both the maintenance branch and
the trunk.
|
|
From: Michael D. <md...@st...> - 2010-07-20 17:17:27
|
It looks as if you do not have the freetype development headers installed. Mike On 07/20/2010 01:00 PM, Tommy Grav wrote: > I am trying to compile matplotlib for ActiveState 2.7.0.1 - 64bit on mac os x. > I have installed numpy 1.4.1 and scipy 0.8.0 from source. Compiling matplotlib > using > > sudo make -f make.osx fetch deps mpl_build mpl_install > > works fine, but > > sudo python setup.py build > > yields the error below. Anyone know how to fix this problem? > > Cheers > Tommy > > > > basedirlist is: [] > ============================================================================ > BUILDING MATPLOTLIB > matplotlib: 1.0.0 > python: 2.7 (r27:82500, Jul 4 2010, 13:58:56) [GCC 4.2.1 > (Apple Inc. build 5664)] > platform: darwin > > REQUIRED DEPENDENCIES > numpy: 1.4.1 > freetype2: found, but unknown version (no pkg-config) > * WARNING: Could not find 'freetype2' headers in any > * of '.', './freetype2'. > > OPTIONAL BACKEND DEPENDENCIES > libpng: found, but unknown version (no pkg-config) > * Could not find 'libpng' headers in any of '.' > Gtk+: no > * Building for Gtk+ requires pygtk; you must be able > * to "import gtk" in your build/install environment > Mac OS X native: yes > Qt: no > Qt4: no > Cairo: no > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > datetime: present, version unknown > dateutil: matplotlib will provide > pytz: matplotlib will provide > adding pytz > > OPTIONAL USETEX DEPENDENCIES > dvipng: no > ghostscript: 8.63 > latex: no > > [Edit setup.cfg to suppress the above messages] > ============================================================================ > pymods ['pylab'] > packages ['matplotlib', 'matplotlib.backends', 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo'] > running build > running build_py > copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.macosx-10.5-intel-2.7/matplotlib/mpl-data > copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.macosx-10.5-intel-2.7/matplotlib/mpl-data > running build_ext > building 'matplotlib.ft2font' extension > gcc -fno-strict-aliasing -fPIC -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.5.sdk/ -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -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.5-intel-2.7/src/ft2font.o > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ > In file included from src/ft2font.cpp:1: > src/ft2font.h:14:22: error: ft2build.h: No such file or directory > src/ft2font.h:15:10: error: #include expects "FILENAME" or<FILENAME> > src/ft2font.h:16:10: error: #include expects "FILENAME" or<FILENAME> > 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> > In file included from src/ft2font.cpp:1: > src/ft2font.h:33: error: ‘FT_Bitmap’ has not been declared > src/ft2font.h:33: error: ‘FT_Int’ has not been declared > src/ft2font.h:33: error: ‘FT_Int’ has not been declared > src/ft2font.h:89: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:89: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:95: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:95: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:137: error: ‘FT_Face’ does not name a type > src/ft2font.h:138: error: ‘FT_Matrix’ does not name a type > src/ft2font.h:139: error: ‘FT_Vector’ does not name a type > src/ft2font.h:140: error: ‘FT_Error’ does not name a type > src/ft2font.h:141: error: ‘FT_Glyph’ was not declared in this scope > src/ft2font.h:141: error: template argument 1 is invalid > src/ft2font.h:141: error: template argument 2 is invalid > src/ft2font.h:142: error: ‘FT_Vector’ was not declared in this scope > src/ft2font.h:142: error: template argument 1 is invalid > src/ft2font.h:142: error: template argument 2 is invalid > src/ft2font.h:148: error: ‘FT_BBox’ does not name a type > src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type > src/ft2font.cpp:108: error: variable or field ‘draw_bitmap’ declared void > src/ft2font.cpp:108: error: ‘FT_Bitmap’ was not declared in this scope > src/ft2font.cpp:108: error: ‘bitmap’ was not declared in this scope > src/ft2font.cpp:109: error: ‘FT_Int’ was not declared in this scope > src/ft2font.cpp:110: error: ‘FT_Int’ was not declared in this scope > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1187: warning: ‘int _import_array()’ defined but not used > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ > In file included from src/ft2font.cpp:1: > src/ft2font.h:14:22: error: ft2build.h: No such file or directory > src/ft2font.h:15:10: error: #include expects "FILENAME" or<FILENAME> > src/ft2font.h:16:10: error: #include expects "FILENAME" or<FILENAME> > 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> > In file included from src/ft2font.cpp:1: > src/ft2font.h:33: error: ‘FT_Bitmap’ has not been declared > src/ft2font.h:33: error: ‘FT_Int’ has not been declared > src/ft2font.h:33: error: ‘FT_Int’ has not been declared > src/ft2font.h:89: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:89: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:95: error: expected ‘,’ or ‘...’ before ‘&’ token > src/ft2font.h:95: error: ISO C++ forbids declaration of ‘FT_Face’ with no type > src/ft2font.h:137: error: ‘FT_Face’ does not name a type > src/ft2font.h:138: error: ‘FT_Matrix’ does not name a type > src/ft2font.h:139: error: ‘FT_Vector’ does not name a type > src/ft2font.h:140: error: ‘FT_Error’ does not name a type > src/ft2font.h:141: error: ‘FT_Glyph’ was not declared in this scope > src/ft2font.h:141: error: template argument 1 is invalid > src/ft2font.h:141: error: template argument 2 is invalid > src/ft2font.h:142: error: ‘FT_Vector’ was not declared in this scope > src/ft2font.h:142: error: template argument 1 is invalid > src/ft2font.h:142: error: template argument 2 is invalid > src/ft2font.h:148: error: ‘FT_BBox’ does not name a type > src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type > src/ft2font.cpp:108: error: variable or field ‘draw_bitmap’ declared void > src/ft2font.cpp:108: error: ‘FT_Bitmap’ was not declared in this scope > src/ft2font.cpp:108: error: ‘bitmap’ was not declared in this scope > src/ft2font.cpp:109: error: ‘FT_Int’ was not declared in this scope > src/ft2font.cpp:110: error: ‘FT_Int’ was not declared in this scope > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1187: warning: ‘int _import_array()’ defined but not used > lipo: can't figure out the architecture type of: /var/tmp//cc1zVbyh.out > error: command 'gcc' failed with exit status 1 > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Eric F. <ef...@ha...> - 2010-07-20 17:16:44
|
On 07/19/2010 11:59 PM, K.-Michael Aye wrote: > On 2010-07-16 18:48:48 +0200, Eric Firing said: > >>> >>> Furthermore, >>> deleting images from ax.images does not free memory : >> >> Maybe because ipython is keeping a reference to every AxesImage object >> that you make... >> >> Eric > > Well, maybe, but why does it not happen for John? His penultimate post > showed, that his iPython session does not have this problem? Is there a > setting that might influence this apart from the hold state? My suggestion was wrong, and I'm baffled. Running your set of commands with your matplotlibrc (so that tkagg is used), I don't see the change in memory consumption. Maybe it is a problem with tk on the mac. Or something that was changed between 0.99.3 and 1.0. Eric > > Michael > |
|
From: Tommy G. <tg...@ma...> - 2010-07-20 17:01:12
|
I am trying to compile matplotlib for ActiveState 2.7.0.1 - 64bit on mac os x.
I have installed numpy 1.4.1 and scipy 0.8.0 from source. Compiling matplotlib
using
sudo make -f make.osx fetch deps mpl_build mpl_install
works fine, but
sudo python setup.py build
yields the error below. Anyone know how to fix this problem?
Cheers
Tommy
basedirlist is: []
============================================================================
BUILDING MATPLOTLIB
matplotlib: 1.0.0
python: 2.7 (r27:82500, Jul 4 2010, 13:58:56) [GCC 4.2.1
(Apple Inc. build 5664)]
platform: darwin
REQUIRED DEPENDENCIES
numpy: 1.4.1
freetype2: found, but unknown version (no pkg-config)
* WARNING: Could not find 'freetype2' headers in any
* of '.', './freetype2'.
OPTIONAL BACKEND DEPENDENCIES
libpng: found, but unknown version (no pkg-config)
* Could not find 'libpng' headers in any of '.'
Gtk+: no
* Building for Gtk+ requires pygtk; you must be able
* to "import gtk" in your build/install environment
Mac OS X native: yes
Qt: no
Qt4: no
Cairo: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: matplotlib will provide
pytz: matplotlib will provide
adding pytz
OPTIONAL USETEX DEPENDENCIES
dvipng: no
ghostscript: 8.63
latex: no
[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends', 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo']
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.macosx-10.5-intel-2.7/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.macosx-10.5-intel-2.7/matplotlib/mpl-data
running build_ext
building 'matplotlib.ft2font' extension
gcc -fno-strict-aliasing -fPIC -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.5.sdk/ -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -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.5-intel-2.7/src/ft2font.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
In file included from src/ft2font.cpp:1:
src/ft2font.h:14:22: error: ft2build.h: No such file or directory
src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME>
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>
In file included from src/ft2font.cpp:1:
src/ft2font.h:33: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:33: error: ‘FT_Int’ has not been declared
src/ft2font.h:33: error: ‘FT_Int’ has not been declared
src/ft2font.h:89: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:89: error: ISO C++ forbids declaration of ‘FT_Face’ with no type
src/ft2font.h:95: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:95: error: ISO C++ forbids declaration of ‘FT_Face’ with no type
src/ft2font.h:137: error: ‘FT_Face’ does not name a type
src/ft2font.h:138: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:139: error: ‘FT_Vector’ does not name a type
src/ft2font.h:140: error: ‘FT_Error’ does not name a type
src/ft2font.h:141: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:141: error: template argument 1 is invalid
src/ft2font.h:141: error: template argument 2 is invalid
src/ft2font.h:142: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:142: error: template argument 1 is invalid
src/ft2font.h:142: error: template argument 2 is invalid
src/ft2font.h:148: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:108: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:108: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:108: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:109: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:110: error: ‘FT_Int’ was not declared in this scope
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1187: warning: ‘int _import_array()’ defined but not used
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
In file included from src/ft2font.cpp:1:
src/ft2font.h:14:22: error: ft2build.h: No such file or directory
src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME>
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>
In file included from src/ft2font.cpp:1:
src/ft2font.h:33: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:33: error: ‘FT_Int’ has not been declared
src/ft2font.h:33: error: ‘FT_Int’ has not been declared
src/ft2font.h:89: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:89: error: ISO C++ forbids declaration of ‘FT_Face’ with no type
src/ft2font.h:95: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:95: error: ISO C++ forbids declaration of ‘FT_Face’ with no type
src/ft2font.h:137: error: ‘FT_Face’ does not name a type
src/ft2font.h:138: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:139: error: ‘FT_Vector’ does not name a type
src/ft2font.h:140: error: ‘FT_Error’ does not name a type
src/ft2font.h:141: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:141: error: template argument 1 is invalid
src/ft2font.h:141: error: template argument 2 is invalid
src/ft2font.h:142: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:142: error: template argument 1 is invalid
src/ft2font.h:142: error: template argument 2 is invalid
src/ft2font.h:148: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:108: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:108: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:108: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:109: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:110: error: ‘FT_Int’ was not declared in this scope
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1187: warning: ‘int _import_array()’ defined but not used
lipo: can't figure out the architecture type of: /var/tmp//cc1zVbyh.out
error: command 'gcc' failed with exit status 1
|
|
From: Reinier H. <re...@he...> - 2010-07-20 16:09:02
|
Hi Daniel,
Ok, so it works as expected? Great.
No real need to also bring it up on mpl devel, since I'm the
maintainer of mplot3d anyway ;-)
If you can send me the working code for contourf when you have that
I'll add all of it soon.
Cheers,
Reinier
On Tue, Jul 20, 2010 at 5:41 PM, Daniel Welling <dan...@gm...> wrote:
> Reinier -
> This is exactly what I was looking for! Thank you.
> I will try to get this to work with tricontourf now that I have your
> example; you should strongly consider bringing this up in the devel mailing
> list as including the tri- commands in the 3D kit may be useful to others as
> well (I can do so if you do not wish to spend any more time on this, but I
> will of course credit the fix to you.)
> To give you a better idea why this is useful, see the attached plot. On the
> y=125, z=125 planes, I plot 2D slices of number density from a large scale
> fluid dynamics simulation. In 3D, I will add 3D stream traces to
> characterize the flow around the obstacle. Combining the 3D traces with the
> 2D slices is extremely useful; being able to make these kinds of plots
> quickly through MPL before going to something more powerful, such as Mayavi,
> is very convenient.
> -dw
>
> On Tue, Jul 20, 2010 at 6:32 AM, Reinier Heeres <re...@he...> wrote:
>>
>> Hi Daniel,
>>
>> If you're using the mpl 1.0 or the svn version, you can try to
>> overwrite this file of mplot3d and run the attached modified version
>> of the example you sent. Can you tell me if this is the expected
>> result? For the projection on the planes normal to 'x' and 'y' it
>> doesn't look very appealing to me! (so I'm not sure it's correct)
>>
>> Cheers,
>> Reinier
>>
>> On Mon, Jul 19, 2010 at 11:06 PM, Daniel Welling <dan...@gm...>
>> wrote:
>> > Greetings, MPL Users.
>> > I have been experimenting with Axes3D with the hopes that I could create
>> > some 3d lines and then project some contours on different planes in the
>> > 3D
>> > axes object, much like the contour3d_demo3.py example (but with lines
>> > instead of the 3d wireframe.) The catch, however, is creating the
>> > contour
>> > objects using tricontour instead of a regular contour. Being that I
>> > typically use irregular grids for my research, the triangulate module
>> > has
>> > been a tremendous feature, but it doesn't seem to work with Axes3D
>> > objects.
>> > For example, this quick script:
>> > import matplotlib.pyplot as plt
>> > #import matplotlib.tri as tri
>> > import numpy as np
>> > from numpy.random import uniform, seed
>> > from mpl_toolkits.mplot3d import Axes3D
>> > seed(0)
>> > npts = 200
>> > ngridx = 100
>> > ngridy = 200
>> > x = uniform(-2,2,npts)
>> > y = uniform(-2,2,npts)
>> > z = x*np.exp(-x**2-y**2)
>> > # tricontour.
>> > fig = plt.figure()
>> > ax = Axes3D(fig)
>> > ax.tricontour(x, y, z, 15, zdir=x, offset=-2)
>> > plt.show()
>> > creates a huge traceback, listed below.
>> > Is it possible to combine tricontour with Axes3D? It would appear that
>> > they
>> > are just incompatible, but perhaps there is a way to force it to work?
>> > Thanks for your help.
>> > tricont3d.py in <module>()
>> > 20 ax.tricontour(x, y, z, 15, zdir=x, offset=-2)
>> > 21
>> > ---> 22 plt.show()
>> > 23
>> > 24
>> > python2.6/site-packages/matplotlib/backends/backend_qt4.pyc in show()
>> > 69 figManager = Gcf.get_active()
>> > 70 if figManager != None:
>> > ---> 71 figManager.canvas.draw()
>> > 72
>> > 73 if _create_qApp.qAppCreatedHere:
>> > python2.6/site-packages/matplotlib/backends/backend_qt4agg.pyc in
>> > draw(self)
>> > 128 if DEBUG: print "FigureCanvasQtAgg.draw", self
>> > 129 self.replot = True
>> > --> 130 FigureCanvasAgg.draw(self)
>> > 131 self.update()
>> > 132
>> > site-packages/matplotlib/backends/backend_agg.pyc in draw(self)
>> > 392
>> > 393 self.renderer = self.get_renderer()
>> > --> 394 self.figure.draw(self.renderer)
>> > 395
>> > 396 def get_renderer(self):
>> > python2.6/site-packages/matplotlib/artist.pyc in draw_wrapper(artist,
>> > renderer, *args, **kwargs)
>> > 53 def draw_wrapper(artist, renderer, *args, **kwargs):
>> > 54 before(artist, renderer)
>> > ---> 55 draw(artist, renderer, *args, **kwargs)
>> > 56 after(artist, renderer)
>> > 57
>> > python2.6/site-packages/matplotlib/figure.pyc in draw(self, renderer)
>> > 796 dsu.sort(key=itemgetter(0))
>> > 797 for zorder, func, args in dsu:
>> > --> 798 func(*args)
>> > 799
>> > 800 renderer.close_group('figure')
>> > python2.6/site-packages/mpl_toolkits/mplot3d/axes3d.pyc in draw(self,
>> > renderer)
>> > 152 # Calculate projection of collections and zorder them
>> > 153 zlist = [(col.do_3d_projection(renderer), col) \
>> > --> 154 for col in self.collections]
>> > 155 zlist.sort()
>> > 156 zlist.reverse()
>> > AttributeError: 'LineCollection' object has no attribute
>> > 'do_3d_projection'
>> > WARNING: Failure executing file: <tricont3d.py>
>> >
>> > ------------------------------------------------------------------------------
>> > This SF.net email is sponsored by Sprint
>> > What will you do first with EVO, the first 4G phone?
>> > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> > _______________________________________________
>> > Matplotlib-users mailing list
>> > Mat...@li...
>> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> >
>> >
>>
>>
>>
>> --
>> Reinier Heeres
>> Tel: +31 6 10852639
>
>
--
Reinier Heeres
Tel: +31 6 10852639
|
|
From: Thøger E. J. T. <th...@fy...> - 2010-07-20 15:13:14
|
One way is to specify the axes manually, e.g. setting: (with matyplotlib.pyplot importad as plt:) plt.axis([200, 500, -600, 600]) ...or whatever seems fitting for you, and do that on both of the y axes. That should align them nicely. On Sat, 2010-07-17 at 20:37 +0200, Daniele Padula wrote: > Hi everybody, > I have a problem with a plot. I attach a figure to be easily understandable. > > As you can see from the figure, I have in the same area a line and a bar > plot. The problem is that y=0 for right y axis is different with respect > to left y axis one. I want the two y=0 to be the same. > > How can i do that? > > Excuse me for my bad english, I'm italian :) > > Thanks in advance. > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Søren N. <sor...@gm...> - 2010-07-20 14:48:03
|
Hi,
I'm creating a stand alone program on my mac with OSX 10.4 and it seems to
work great on it. However, if I transfer my program to a snow leopard (10.6)
mac, I get the error:
File "/Volumes/KINGSTON/Mac/RAW.app/Contents/Resources/__boot__.py",
line 158, in <module>
_run('RAW.py')
File "/Volumes/KINGSTON/Mac/RAW.app/Contents/Resources/__boot__.py",
line 134, in _run
execfile(path, globals(), globals())
File "/Volumes/KINGSTON/Mac/RAW.app/Contents/Resources/RAW.py", line
23, in <module>
from pylab import setp
File "pylab.pyc", line 1, in <module>
File
"/Volumes/KINGSTON/Mac/RAW.app/Contents/Resources/lib/python2.6/matplotlib/pylab.py",
line 206, in <module>
from matplotlib import mpl # pulls in most modules
File
"/Volumes/KINGSTON/Mac/RAW.app/Contents/Resources/lib/python2.6/matplotlib/mpl.py",
line 2, in <module>
from matplotlib import axis
File
"/Volumes/KINGSTON/Mac/RAW.app/Contents/Resources/lib/python2.6/matplotlib/axis.py",
line 10, in <module>
import matplotlib.font_manager as font_manager
File
"/Volumes/KINGSTON/Mac/RAW.app/Contents/Resources/lib/python2.6/matplotlib/font_manager.py",
line 52, in <module>
from matplotlib import ft2font
ImportError
:
dlopen(/Volumes/KINGSTON/Mac/RAW.app/Contents/Resources/lib/python2.6/matplotlib/ft2font.so,
2): Symbol not found: _FT_Load_Glyph
Referenced from:
/Volumes/KINGSTON/Mac/RAW.app/Contents/Resources/lib/python2.6/matplotlib/ft2font.so
Expected in: dynamic lookup
A search on it came up with someone having the same problem (
http://www.mail-archive.com/mat...@li.../msg14252.html),
but the cause doesn't seem to be exactly the same since as my ft2font.so is
linked correctly against /usr/lib/libgcc_s.1.dylib ?
heres the otool info:
/opt/local/lib/libfreetype.6.dylib (compatibility version 11.0.0, current
version 11.0.0)
/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
version 1.2.4)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
version 7.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 88.3.3)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
(compatibility version 1.0.0, current version 18.0.0)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
(compatibility version 1.0.0, current version 22.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
/usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version
47.1.0)
I installed all packages and python 2.6 using Macports. Does anyone see the
problem here?
Soren
|
|
From: Reinier H. <re...@he...> - 2010-07-20 13:00:25
|
Hi Daniel,
If you're using the mpl 1.0 or the svn version, you can try to
overwrite this file of mplot3d and run the attached modified version
of the example you sent. Can you tell me if this is the expected
result? For the projection on the planes normal to 'x' and 'y' it
doesn't look very appealing to me! (so I'm not sure it's correct)
Cheers,
Reinier
On Mon, Jul 19, 2010 at 11:06 PM, Daniel Welling <dan...@gm...> wrote:
> Greetings, MPL Users.
> I have been experimenting with Axes3D with the hopes that I could create
> some 3d lines and then project some contours on different planes in the 3D
> axes object, much like the contour3d_demo3.py example (but with lines
> instead of the 3d wireframe.) The catch, however, is creating the contour
> objects using tricontour instead of a regular contour. Being that I
> typically use irregular grids for my research, the triangulate module has
> been a tremendous feature, but it doesn't seem to work with Axes3D objects.
> For example, this quick script:
> import matplotlib.pyplot as plt
> #import matplotlib.tri as tri
> import numpy as np
> from numpy.random import uniform, seed
> from mpl_toolkits.mplot3d import Axes3D
> seed(0)
> npts = 200
> ngridx = 100
> ngridy = 200
> x = uniform(-2,2,npts)
> y = uniform(-2,2,npts)
> z = x*np.exp(-x**2-y**2)
> # tricontour.
> fig = plt.figure()
> ax = Axes3D(fig)
> ax.tricontour(x, y, z, 15, zdir=x, offset=-2)
> plt.show()
> creates a huge traceback, listed below.
> Is it possible to combine tricontour with Axes3D? It would appear that they
> are just incompatible, but perhaps there is a way to force it to work?
> Thanks for your help.
> tricont3d.py in <module>()
> 20 ax.tricontour(x, y, z, 15, zdir=x, offset=-2)
> 21
> ---> 22 plt.show()
> 23
> 24
> python2.6/site-packages/matplotlib/backends/backend_qt4.pyc in show()
> 69 figManager = Gcf.get_active()
> 70 if figManager != None:
> ---> 71 figManager.canvas.draw()
> 72
> 73 if _create_qApp.qAppCreatedHere:
> python2.6/site-packages/matplotlib/backends/backend_qt4agg.pyc in draw(self)
> 128 if DEBUG: print "FigureCanvasQtAgg.draw", self
> 129 self.replot = True
> --> 130 FigureCanvasAgg.draw(self)
> 131 self.update()
> 132
> site-packages/matplotlib/backends/backend_agg.pyc in draw(self)
> 392
> 393 self.renderer = self.get_renderer()
> --> 394 self.figure.draw(self.renderer)
> 395
> 396 def get_renderer(self):
> python2.6/site-packages/matplotlib/artist.pyc in draw_wrapper(artist,
> renderer, *args, **kwargs)
> 53 def draw_wrapper(artist, renderer, *args, **kwargs):
> 54 before(artist, renderer)
> ---> 55 draw(artist, renderer, *args, **kwargs)
> 56 after(artist, renderer)
> 57
> python2.6/site-packages/matplotlib/figure.pyc in draw(self, renderer)
> 796 dsu.sort(key=itemgetter(0))
> 797 for zorder, func, args in dsu:
> --> 798 func(*args)
> 799
> 800 renderer.close_group('figure')
> python2.6/site-packages/mpl_toolkits/mplot3d/axes3d.pyc in draw(self,
> renderer)
> 152 # Calculate projection of collections and zorder them
> 153 zlist = [(col.do_3d_projection(renderer), col) \
> --> 154 for col in self.collections]
> 155 zlist.sort()
> 156 zlist.reverse()
> AttributeError: 'LineCollection' object has no attribute 'do_3d_projection'
> WARNING: Failure executing file: <tricont3d.py>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
Reinier Heeres
Tel: +31 6 10852639
|
|
From: K.-Michael A. <kmi...@gm...> - 2010-07-20 09:59:30
|
On 2010-07-16 18:48:48 +0200, Eric Firing said: >> >> Furthermore, >> deleting images from ax.images does not free memory : > > Maybe because ipython is keeping a reference to every AxesImage object > that you make... > > Eric Well, maybe, but why does it not happen for John? His penultimate post showed, that his iPython session does not have this problem? Is there a setting that might influence this apart from the hold state? Michael |
|
From: Stavros M. <mac...@al...> - 2010-07-19 22:45:59
|
I loaded matplotlib following the instructions in http://matplotlib.sourceforge.net/users/shell.html, including setting up the matplotlibrc file. But the xlabel command hangs. In detail: bash-3.2$ python -i Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pylab >>> from pylab import * >>> plot([1,2,1]) --------------------------------------displays plot------------------------------------ [<matplotlib.lines.Line2D object at 0x019DE430>] >>> xlabel('hi mom') --------------------------------------hangs forever----------------------------------- I am running Python 2.6.1 in an Emacs shell buffer; the Python is running on Cygwin on Windows XP. I am not using ipython. What am I doing wrong? Thanks, -s |
|
From: Daniel W. <dan...@gm...> - 2010-07-19 21:06:19
|
Greetings, MPL Users.
I have been experimenting with Axes3D with the hopes that I could create
some 3d lines and then project some contours on different planes in the 3D
axes object, much like the contour3d_demo3.py example (but with lines
instead of the 3d wireframe.) The catch, however, is creating the contour
objects using tricontour instead of a regular contour. Being that I
typically use irregular grids for my research, the triangulate module has
been a tremendous feature, but it doesn't seem to work with Axes3D objects.
For example, this quick script:
import matplotlib.pyplot as plt
#import matplotlib.tri as tri
import numpy as np
from numpy.random import uniform, seed
from mpl_toolkits.mplot3d import Axes3D
seed(0)
npts = 200
ngridx = 100
ngridy = 200
x = uniform(-2,2,npts)
y = uniform(-2,2,npts)
z = x*np.exp(-x**2-y**2)
# tricontour.
fig = plt.figure()
ax = Axes3D(fig)
ax.tricontour(x, y, z, 15, zdir=x, offset=-2)
plt.show()
creates a huge traceback, listed below.
Is it possible to combine tricontour with Axes3D? It would appear that they
are just incompatible, but perhaps there is a way to force it to work?
Thanks for your help.
tricont3d.py in <module>()
20 ax.tricontour(x, y, z, 15, zdir=x, offset=-2)
21
---> 22 plt.show()
23
24
python2.6/site-packages/matplotlib/backends/backend_qt4.pyc in show()
69 figManager = Gcf.get_active()
70 if figManager != None:
---> 71 figManager.canvas.draw()
72
73 if _create_qApp.qAppCreatedHere:
python2.6/site-packages/matplotlib/backends/backend_qt4agg.pyc in draw(self)
128 if DEBUG: print "FigureCanvasQtAgg.draw", self
129 self.replot = True
--> 130 FigureCanvasAgg.draw(self)
131 self.update()
132
site-packages/matplotlib/backends/backend_agg.pyc in draw(self)
392
393 self.renderer = self.get_renderer()
--> 394 self.figure.draw(self.renderer)
395
396 def get_renderer(self):
python2.6/site-packages/matplotlib/artist.pyc in draw_wrapper(artist,
renderer, *args, **kwargs)
53 def draw_wrapper(artist, renderer, *args, **kwargs):
54 before(artist, renderer)
---> 55 draw(artist, renderer, *args, **kwargs)
56 after(artist, renderer)
57
python2.6/site-packages/matplotlib/figure.pyc in draw(self, renderer)
796 dsu.sort(key=itemgetter(0))
797 for zorder, func, args in dsu:
--> 798 func(*args)
799
800 renderer.close_group('figure')
python2.6/site-packages/mpl_toolkits/mplot3d/axes3d.pyc in draw(self,
renderer)
152 # Calculate projection of collections and zorder them
153 zlist = [(col.do_3d_projection(renderer), col) \
--> 154 for col in self.collections]
155 zlist.sort()
156 zlist.reverse()
AttributeError: 'LineCollection' object has no attribute 'do_3d_projection'
WARNING: Failure executing file: <tricont3d.py>
|
|
From: Benjamin R. <ben...@ou...> - 2010-07-19 15:23:09
|
On Mon, Jul 19, 2010 at 9:55 AM, Bala subramanian <bal...@gm... > wrote: > Friends, > > Attached a script test.py and 2 data files using with which i am trying to > make a bar plot. The output is coming nice, but the x-ticks are placed at > the left edge of the first bar. I want to make the xticks at the center > between the two bars to have a better visualization. I dnt get which > arguement i should use to get the xticks at the center of the two bars as in > the following example > > > http://matplotlib.sourceforge.net/examples/pylab_examples/barchart_demo.html > > Thanks, > Bala > Bala, There are two issues with your current code. First, you are setting the x limits of your plot to [1, 40], which causes the last red bar to be clipped out. You should set it to [1, 40 + width]. Second, the set_xticks() needs to be shifted by width. However, doing so will change the values. So, it seems that if you change ax.set_xticks(ind) to plt.xticks(ind + width, ind) The ticks will be placed at the positions 'ind + width', but with the values 'ind'. I hope this helps. Ben Root |
|
From: Clear <c.m...@gm...> - 2010-07-19 15:15:32
|
My MPL version is '0.98.5.2' and my OS is Ubuntu 9.04. I tried again but it is still giving me that error. Weird. João Luís Silva-2 wrote: > > On 07/19/2010 03:11 PM, Clear wrote: >> >> plt.plot(x,np.sin(x),"-s",markevery=N/50) >> >> I have tried your option but a message is returned to me which says that >> markevery is an unknown property. I have included exactly the code you >> propose. May I guess why I am getting such error? >> >> Clear >> >> > > Are you sure you ran the example as I sent it? markevery should be > available since matplotlib version 0.98.5.2, released at the end of > 2008. Which mpl version and operating system are you using? > > JLS > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://old.nabble.com/Scattered-symbols-data-tp29204418p29205784.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Benjamin R. <ben...@ou...> - 2010-07-19 15:07:44
|
On Wed, Jul 14, 2010 at 4:54 AM, Robert Hancock <re...@ag...> wrote:
> Hi
>
> I am trying to use autofmt_xdate() on graphs with more than 1 y-axis. But
> it
> seems that even calling twinx() causes errors. On python 2.5 matplotlib
> 0.98
> a call to twinx() seems to switch off the functioning of autofmt_xdate()
> (and the labels are horizontal and mashed up). On python 2.6 and matplotlib
> 1.0.0 it causes a ValueError.
>
> The following script illustrates the issue (in real life I obviously want
> to
> do things with ax2, but it seems that even creating it causes problems). Is
> there a simple working example of rotated data formats and twinx()?
>
> robert
>
> import datetime
> import matplotlib
> matplotlib.use('Agg')
> import matplotlib.pyplot as plt
>
> date=[datetime.datetime(2010,1,1), datetime.datetime(2010,12,1)]
> data=[1,2]
>
> fig = plt.figure()
> ax = fig.add_subplot(111)
> # uncommenting the following line will lead to the problems
> # ax2=ax.twinx()
> ax.plot(date, data)
>
> fig.autofmt_xdate(rotation=90)
>
> fig.savefig("test3.png", dpi=400)
>
>
>
For further information, here is the Value Error on matplotlib 1.0
(replacing the savefig with a show):
Traceback (most recent call last):
File
"/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/backends/backend_gtk.py",
line 389, in expose_event
self._render_figure(self._pixmap, w, h)
File
"/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/backends/backend_gtkagg.py",
line 75, in _render_figure
FigureCanvasAgg.draw(self)
File
"/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/backends/backend_agg.py",
line 394, in draw
self.figure.draw(self.renderer)
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/artist.py",
line 55, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/figure.py",
line 798, in draw
func(*args)
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/artist.py",
line 55, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/axes.py",
line 1934, in draw
a.draw(renderer)
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/artist.py",
line 55, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/axis.py",
line 971, in draw
tick_tups = [ t for t in self.iter_ticks()]
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/axis.py",
line 904, in iter_ticks
majorLocs = self.major.locator()
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/dates.py",
line 743, in __call__
self.refresh()
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/dates.py",
line 752, in refresh
dmin, dmax = self.viewlim_to_dt()
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/dates.py",
line 524, in viewlim_to_dt
return num2date(vmin, self.tz), num2date(vmax, self.tz)
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/dates.py",
line 289, in num2date
if not cbook.iterable(x): return _from_ordinalf(x, tz)
File "/home/bvr/Programs/matplotlib/matplotlib/lib/matplotlib/dates.py",
line 203, in _from_ordinalf
dt = datetime.datetime.fromordinal(ix)
ValueError: ordinal must be >= 1
Ben Root
|
|
From: Bala s. <bal...@gm...> - 2010-07-19 14:55:12
|
Friends, Attached a script test.py and 2 data files using with which i am trying to make a bar plot. The output is coming nice, but the x-ticks are placed at the left edge of the first bar. I want to make the xticks at the center between the two bars to have a better visualization. I dnt get which arguement i should use to get the xticks at the center of the two bars as in the following example http://matplotlib.sourceforge.net/examples/pylab_examples/barchart_demo.html Thanks, Bala |
|
From: João L. S. <js...@fc...> - 2010-07-19 14:31:37
|
On 07/19/2010 03:11 PM, Clear wrote: > > plt.plot(x,np.sin(x),"-s",markevery=N/50) > > I have tried your option but a message is returned to me which says that > markevery is an unknown property. I have included exactly the code you > propose. May I guess why I am getting such error? > > Clear > > Are you sure you ran the example as I sent it? markevery should be available since matplotlib version 0.98.5.2, released at the end of 2008. Which mpl version and operating system are you using? JLS |
|
From: Benjamin R. <ben...@ou...> - 2010-07-19 14:31:13
|
On Thu, Jul 15, 2010 at 2:44 PM, texas_ranger <dw...@gm...> wrote: > > The source code for radar_chart.py located in the Matplotlib docs at > > > http://matplotlib.sourceforge.net/examples/api/radar_chart.html?highlight=radar%20chart > > does not work. Seems to be problem with legend. > > Can someone tell me what's wrong with the source code so I can correct my > copy? > > The version that is in svn trunk works fine for me, and it hasn't been changed since last year. I wonder what the document generator is crashing on? Ben Root |
|
From: Clear <c.m...@gm...> - 2010-07-19 14:12:09
|
plt.plot(x,np.sin(x),"-s",markevery=N/50) I have tried your option but a message is returned to me which says that markevery is an unknown property. I have included exactly the code you propose. May I guess why I am getting such error? Clear -- View this message in context: http://old.nabble.com/Scattered-symbols-data-tp29204418p29205124.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Malte D. <mal...@we...> - 2010-07-19 13:52:07
|
Hi, as you can see here (lotlib.sourceforge.net/api/ticker_api.html), you need to set your formatter to either ScalarFormatter and set it up, so no offset is used or FormatStrFormatter with something like %d. Kind regards, Malte Dik |
|
From: João L. S. <js...@fc...> - 2010-07-19 13:43:17
|
On 07/15/2010 02:36 PM, Clear wrote: > > Hello, > > I would like to know if it is possible to display the following feature > using matplotlib. Say that you have a 2D plot(x,y) with a lot of data. You > plot the data using a 2D solid line. Would be possible to add "some" > circles/squared or whatever to the solid line? When I say "some" I mean only > scattered values, otherwise given the quantity of data you would appreciate > the symbols. > > Thanks, > > Clear You can specify the parameter markevery=n to the plot to just plot every n-th marker. For example: import matplotlib.pyplot as plt import numpy as np N = 10000 x = np.linspace(-10.0,10.0,N) plt.plot(x,np.sin(x),"-s",markevery=N/50) plt.show() Regards, João Luís |
|
From: Geoffroy C. <geo...@ce...> - 2010-07-19 09:05:28
|
Hello,
When plotting high value on a very small range (i.e. y varies from 100.000 to 100.002), matplotlib automatically removes the 'high base value' (here 100.000) and displays it close to the axis. (you can find enclosed my picture of this example)
The very basic thing i want to do is to disable this smart formatter, and display the values from 100.000 to 100.002.
I think it's an easy thing to achieve, but i'm somehow lost in the jungle of instances and methods contained in the 'plot' library, and on top of it, i don't know the name of this operation ('y -= value' only for display).
For now i'm still using matplotlib 0.99, since yet v1.0 is not available with the FINK package-manager.
Thank in advance, for your answer and your time.
Geoffroy
|