SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

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
(3)
2
(1)
3
(3)
4
(8)
5
(5)
6
(1)
7
(16)
8
(7)
9
(29)
10
(16)
11
(8)
12
(8)
13
(1)
14
(17)
15
(15)
16
(23)
17
(20)
18
(25)
19
(2)
20
(3)
21
(12)
22
(6)
23
(11)
24
(6)
25
(3)
26
27
(2)
28
(4)
29
(19)
30
(5)
31
(33)


Showing 6 results of 6

From: Ken M. <mc...@ii...> - 2008年01月22日 18:33:10
On Jan 22, 2008, at 11:00 AM, Matthias Michler wrote:
>
> I was not up to date with my installation and I tried to use the 
> latest svn
> version (trunk) on my Debian etch. I have a problem to build 
> matplotlib
> including support for wxPython as backend. The output is attached 
> below.
>
> Actually I cannot find a file "wxPython.h" on my system.
The wxPython Debian packages do not include the development headers 
required to build the WXAgg accelerator module. The WXAgg backend 
will work just fine without it, so you should disable the module by 
editing setup.cfg and uncommenting the line "wxagg = False" in the 
"gui_support" section.
Please let me know if you haven't created a setup.cfg file and are 
receiving this error straight "out of the box", as that's indicative 
of a bug in the build system. Thanks!
Ken
From: Michael D. <md...@st...> - 2008年01月22日 17:20:55
This is a known bug in the Debian packaging of wxPython.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=326440
There are some workarounds mentioned in that post.
Personally, I usually end up building wxPython from source (which 
doesn't have this header file problem) to keep up with its fairly 
frequent bugfixes anyway. If you'd prefer to stick with deb packages, 
you could *try* the wxPython-provided .deb packages (i.e. not the 
Debian-provided ones) here, though I don't know whether they also 
exhibit this problem:
http://wiki.wxpython.org/InstallingOnUbuntuOrDebian
Cheers,
Mike
Matthias Michler wrote:
> Hello list,
> 
> I was not up to date with my installation and I tried to use the latest svn 
> version (trunk) on my Debian etch. I have a problem to build matplotlib 
> including support for wxPython as backend. The output is attached below.
> 
> Actually I cannot find a file "wxPython.h" on my system.
> 
> Can anybody give me a hint what I'm doing wrong?
> How can I find wx headers and tell their location matplotlib?
> 
> best regards and thanks in advance for any hint,
> Matthias
> 
> 
> 
> $ python setup.py build
> ============================================================================
> BUILDING MATPLOTLIB
> matplotlib: 0.98pre
> python: 2.4.4 (#2, Apr 5 2007, 20:11:18) [GCC 4.1.2
> 20061115 (prerelease) (Debian 4.1.1-21)]
> platform: linux2
> 
> REQUIRED DEPENDENCIES
> numpy: 1.0.4
> freetype2: 9.10.3
> 
> OPTIONAL BACKEND DEPENDENCIES
> libpng: 1.2.15beta5
> Tkinter: Tkinter: 39220, Tk: 8.4, Tcl: 8.4
> wxPython: 2.6.3.2
> * Could not find wxPython headers in any of
> * '/usr/lib/wx/include/gtk2-unicode-release-2.6',
> * '/usr/include/wx-2.6'
> Gtk+: gtk+: 2.8.20, glib: 2.12.4, pygtk: 2.8.6, pygobject:
> [pre-pygobject]
> Qt: Qt: 3.3.6, PyQt: 3.16
> Qt4: no
> Cairo: 1.2.0
> 
> OPTIONAL DATE/TIMEZONE DEPENDENCIES
> datetime: present, version unknown
> dateutil: present, version unknown
> pytz: 2006p
> 
> OPTIONAL USETEX DEPENDENCIES
> dvipng: 1.9
> ghostscript: 8.15.3
> latex: 3.141592
> pdftops: 3.01
> 
> 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/mpl-data/matplotlibrc -> 
> build/lib.linux-i686-2.4/matplotlib/mpl-data
> copying lib/matplotlib/mpl-data/matplotlib.conf -> 
> build/lib.linux-i686-2.4/matplotlib/mpl-data
> running build_ext
> building 'matplotlib.backends._wxagg' extension
> C compiler: 
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC
> 
> compile 
> options: '-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -I/usr/include/libpng12 -I/usr/local/include -I/usr/include -I. -I/var/lib/python-support/python2.4/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -I/usr/include/python2.4 -c'
> gcc: src/_wxagg.cpp
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
> Ada/C/ObjC but not for C++
> In file included from /usr/include/python2.4/Python.h:8,
> from ./CXX/WrapPython.h:47,
> from ./CXX/Extensions.hxx:48,
> from src/_backend_agg.h:8,
> from src/_wxagg.cpp:48:
> /usr/include/python2.4/pyconfig.h:851:1: warning: "_POSIX_C_SOURCE" redefined
> In file included from /usr/include/string.h:26,
> 
> from /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstring:52,
> from src/_wxagg.cpp:38:
> /usr/include/features.h:150:1: warning: this is the location of the previous 
> definition
> src/_wxagg.cpp:55:34: error: wx/wxPython/wxPython.h: No such file or directory
> src/_wxagg.cpp: In member function 'Py::Object 
> _wxagg_module::convert_agg_to_wx_image(const Py::Tuple&)':
> src/_wxagg.cpp:103: error: 'wxPyConstructObject' was not declared in this 
> scope
> src/_wxagg.cpp: In member function 'Py::Object 
> _wxagg_module::convert_agg_to_wx_bitmap(const Py::Tuple&)':
> src/_wxagg.cpp:125: error: 'wxPyConstructObject' was not declared in this 
> scope
> src/_wxagg.cpp: In function 'void init_wxagg()':
> src/_wxagg.cpp:253: error: 'wxPyCoreAPI_IMPORT' was not declared in this scope
> /var/lib/python-support/python2.4/numpy/core/include/numpy/__multiarray_api.h: 
> At global scope:
> /var/lib/python-support/python2.4/numpy/core/include/numpy/__multiarray_api.h:943: 
> warning: 'int _import_array()' defined but not used
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
> Ada/C/ObjC but not for C++
> In file included from /usr/include/python2.4/Python.h:8,
> from ./CXX/WrapPython.h:47,
> from ./CXX/Extensions.hxx:48,
> from src/_backend_agg.h:8,
> from src/_wxagg.cpp:48:
> /usr/include/python2.4/pyconfig.h:851:1: warning: "_POSIX_C_SOURCE" redefined
> In file included from /usr/include/string.h:26,
> 
> from /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstring:52,
> from src/_wxagg.cpp:38:
> /usr/include/features.h:150:1: warning: this is the location of the previous 
> definition
> src/_wxagg.cpp:55:34: error: wx/wxPython/wxPython.h: No such file or directory
> src/_wxagg.cpp: In member function 'Py::Object 
> _wxagg_module::convert_agg_to_wx_image(const Py::Tuple&)':
> src/_wxagg.cpp:103: error: 'wxPyConstructObject' was not declared in this 
> scope
> src/_wxagg.cpp: In member function 'Py::Object 
> _wxagg_module::convert_agg_to_wx_bitmap(const Py::Tuple&)':
> src/_wxagg.cpp:125: error: 'wxPyConstructObject' was not declared in this 
> scope
> src/_wxagg.cpp: In function 'void init_wxagg()':
> src/_wxagg.cpp:253: error: 'wxPyCoreAPI_IMPORT' was not declared in this scope
> /var/lib/python-support/python2.4/numpy/core/include/numpy/__multiarray_api.h: 
> At global scope:
> /var/lib/python-support/python2.4/numpy/core/include/numpy/__multiarray_api.h:943: 
> warning: 'int _import_array()' defined but not used
> error: 
> Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -I/usr/include/libpng12 -I/usr/local/include -I/usr/include -I. -I/var/lib/python-support/python2.4/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -I/usr/include/python2.4 -c 
> src/_wxagg.cpp -o build/temp.linux-i686-2.4/src/_wxagg.o" failed with exit 
> status 1
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Matthias M. <Mat...@gm...> - 2008年01月22日 17:01:06
Hello list,
I was not up to date with my installation and I tried to use the latest svn 
version (trunk) on my Debian etch. I have a problem to build matplotlib 
including support for wxPython as backend. The output is attached below.
Actually I cannot find a file "wxPython.h" on my system.
Can anybody give me a hint what I'm doing wrong?
How can I find wx headers and tell their location matplotlib?
best regards and thanks in advance for any hint,
Matthias
$ python setup.py build
============================================================================
BUILDING MATPLOTLIB
 matplotlib: 0.98pre
 python: 2.4.4 (#2, Apr 5 2007, 20:11:18) [GCC 4.1.2
 20061115 (prerelease) (Debian 4.1.1-21)]
 platform: linux2
REQUIRED DEPENDENCIES
 numpy: 1.0.4
 freetype2: 9.10.3
OPTIONAL BACKEND DEPENDENCIES
 libpng: 1.2.15beta5
 Tkinter: Tkinter: 39220, Tk: 8.4, Tcl: 8.4
 wxPython: 2.6.3.2
 * Could not find wxPython headers in any of
 * '/usr/lib/wx/include/gtk2-unicode-release-2.6',
 * '/usr/include/wx-2.6'
 Gtk+: gtk+: 2.8.20, glib: 2.12.4, pygtk: 2.8.6, pygobject:
 [pre-pygobject]
 Qt: Qt: 3.3.6, PyQt: 3.16
 Qt4: no
 Cairo: 1.2.0
OPTIONAL DATE/TIMEZONE DEPENDENCIES
 datetime: present, version unknown
 dateutil: present, version unknown
 pytz: 2006p
OPTIONAL USETEX DEPENDENCIES
 dvipng: 1.9
 ghostscript: 8.15.3
 latex: 3.141592
 pdftops: 3.01
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/mpl-data/matplotlibrc -> 
build/lib.linux-i686-2.4/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -> 
build/lib.linux-i686-2.4/matplotlib/mpl-data
running build_ext
building 'matplotlib.backends._wxagg' extension
C compiler: 
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC
compile 
options: '-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -I/usr/include/libpng12 -I/usr/local/include -I/usr/include -I. -I/var/lib/python-support/python2.4/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -I/usr/include/python2.4 -c'
gcc: src/_wxagg.cpp
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++
In file included from /usr/include/python2.4/Python.h:8,
 from ./CXX/WrapPython.h:47,
 from ./CXX/Extensions.hxx:48,
 from src/_backend_agg.h:8,
 from src/_wxagg.cpp:48:
/usr/include/python2.4/pyconfig.h:851:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
 
from /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstring:52,
 from src/_wxagg.cpp:38:
/usr/include/features.h:150:1: warning: this is the location of the previous 
definition
src/_wxagg.cpp:55:34: error: wx/wxPython/wxPython.h: No such file or directory
src/_wxagg.cpp: In member function 'Py::Object 
_wxagg_module::convert_agg_to_wx_image(const Py::Tuple&)':
src/_wxagg.cpp:103: error: 'wxPyConstructObject' was not declared in this 
scope
src/_wxagg.cpp: In member function 'Py::Object 
_wxagg_module::convert_agg_to_wx_bitmap(const Py::Tuple&)':
src/_wxagg.cpp:125: error: 'wxPyConstructObject' was not declared in this 
scope
src/_wxagg.cpp: In function 'void init_wxagg()':
src/_wxagg.cpp:253: error: 'wxPyCoreAPI_IMPORT' was not declared in this scope
/var/lib/python-support/python2.4/numpy/core/include/numpy/__multiarray_api.h: 
At global scope:
/var/lib/python-support/python2.4/numpy/core/include/numpy/__multiarray_api.h:943: 
warning: 'int _import_array()' defined but not used
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++
In file included from /usr/include/python2.4/Python.h:8,
 from ./CXX/WrapPython.h:47,
 from ./CXX/Extensions.hxx:48,
 from src/_backend_agg.h:8,
 from src/_wxagg.cpp:48:
/usr/include/python2.4/pyconfig.h:851:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
 
from /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstring:52,
 from src/_wxagg.cpp:38:
/usr/include/features.h:150:1: warning: this is the location of the previous 
definition
src/_wxagg.cpp:55:34: error: wx/wxPython/wxPython.h: No such file or directory
src/_wxagg.cpp: In member function 'Py::Object 
_wxagg_module::convert_agg_to_wx_image(const Py::Tuple&)':
src/_wxagg.cpp:103: error: 'wxPyConstructObject' was not declared in this 
scope
src/_wxagg.cpp: In member function 'Py::Object 
_wxagg_module::convert_agg_to_wx_bitmap(const Py::Tuple&)':
src/_wxagg.cpp:125: error: 'wxPyConstructObject' was not declared in this 
scope
src/_wxagg.cpp: In function 'void init_wxagg()':
src/_wxagg.cpp:253: error: 'wxPyCoreAPI_IMPORT' was not declared in this scope
/var/lib/python-support/python2.4/numpy/core/include/numpy/__multiarray_api.h: 
At global scope:
/var/lib/python-support/python2.4/numpy/core/include/numpy/__multiarray_api.h:943: 
warning: 'int _import_array()' defined but not used
error: 
Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -I/usr/include/libpng12 -I/usr/local/include -I/usr/include -I. -I/var/lib/python-support/python2.4/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -I/usr/include/python2.4 -c 
src/_wxagg.cpp -o build/temp.linux-i686-2.4/src/_wxagg.o" failed with exit 
status 1
From: Angus M. <am...@gm...> - 2008年01月22日 09:52:22
On 22/01/2008, S=F8ren Nielsen <sor...@gm...> wrote:
> I'm looking for a way to do masking of an Image.. I need to be able to ma=
ke
> a circle / box or a user made polygon on an image using the mouse and
> retrieve the pixellocations of all pixels inside the masked area.. (which
> will then be processed later)
I have very recently written some code that creates a binary mask (2-D
array) of an irregular polygon given the co-ordinates of the corners.
It successively uses equations of the line segments between pairs of
neighbouring points around the polygon edge and sets the pixels on the
inner side of those lines. I doubt it's the most efficient code, but
seem so to work, and I'm happy to send you a copy it if it might be
helpful.
> Has anyone tried this? What is the easiest way
> to start? I'm using wxpython for the GUI.
It's relatively easy to capture successive mouse clicks using mpl, and
use those co-ordinates for the polygon calculating code. An example of
capturing mouse co-ordinates is in the cookbook:
http://www.scipy.org/Cookbook/Matplotlib/Interactive_Plotting.
Best regards,
Angus.
--=20
AJC McMorland, PhD candidate
Physiology, University of Auckland
From: <sor...@gm...> - 2008年01月22日 09:12:09
Hi,
I'm looking for a way to do masking of an Image.. I need to be able to make
a circle / box or a user made polygon on an image using the mouse and
retrieve the pixellocations of all pixels inside the masked area.. (which
will then be processed later) Has anyone tried this? What is the easiest way
to start? I'm using wxpython for the GUI.
Thanks!
Soren Nielsen
From: Darckense <dar...@fr...> - 2008年01月22日 02:27:54
Hello,
I would like to know if there is a way to plot "broken" axis using
matplotlib. I would like to plot only the left and the right part of a
spectrum, and put a mark on the X axis to show that the axis scaling is
interrupted here.
Thank you,
-- 
Darckense
http://darckense.online.fr

Showing 6 results of 6

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /