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

Showing 15 results of 15

From: Zane S. <za...@id...> - 2008年10月16日 22:02:33
Wow! The new site looks beautiful. Thank you!
The apparent lack of searchable, online, well organized, cross- 
referenced documentation has been my main frustration with 
Matplotlib. I'm very glad it's being worked on.
A couple of quick things:
First, are there plans to eventually embed autogenerated plots in the 
the "examples" section (http://matplotlib.sourceforge.net/examples/) 
in the same way that they're embedded within the user guide?
Second, in the sidebar on the main page, in the "Need Help?" section, 
I'm seeing a bunch of weird gunk that's probably not supposed to be 
getting through to the web...:
<<<<<<< .mine <<<<<<< .mine
Check the docs, the faq, and join the matplotlib mailing lists. There 
is a also community wiki cookbook
=======
Check the user guide, the
Check the user guide, the >>>>>> .r6222 href="faq/index.html">faq, the 
api docs, archives, and join the matplotlib mailing lists >>>>>>> .r6221
You can file bugs, patches and feature requests on the sourceforge 
tracker, but it is a good idea to ping us on the mailing list too.
--
Zane Selvans
Amateur Earthling
za...@id...
303/815-6866
http://zaneselvans.org
PGP Key: 55E0815F
From: Neil P. <mat...@ke...> - 2008年10月16日 21:19:23
John Hunter wrote:
> We've been working behind the scenes on a new documentation system for
> matplotlib, which integrates the web site, API documentation and PDF
> guide into a single source of sphinx/rest documents which are easier
> to maintain and extend, hopefully leading to better and more
> up-to-date docs.
It all does look rather good and shiny :)
However, on the page: 
http://matplotlib.sourceforge.net/users/screenshots.html
the following link does not work:
http://matplotlib.sourceforge.net/users/examples/pylab_examples/bar_stacked.py
Also, the screenshots don't tie up with those listed in the sidebar on 
the main page - is there a good reason for this? :)
Thanks,
-- 
Neil
From: Xavier G. <xav...@gm...> - 2008年10月16日 20:31:21
Looks great but there are too many errors:
http://validator.w3.org/check?uri=http%3A%2F%2Fmatplotlib.sourceforge.net%2F&charset=(detect+automatically)&doctype=Inline&group=0
I'm not a geek and I do not care about w3c small warnings but it would 
be so nice to have a xhtml compliant website (as close as possible)
 From an "artistic" point of view, I would put more emphasis on the 
screenshot (pylab purpose is to produce *very* nice images...)
xavier
> We've been working behind the scenes on a new documentation system for
> matplotlib, which integrates the web site, API documentation and PDF
> guide into a single source of sphinx/rest documents which are easier
> to maintain and extend, hopefully leading to better and more
> up-to-date docs.
>
> We went live with the new site yesterday:
>
> http://matplotlib.sf.net
>
> so check it out and let us know if something is broken or missing. We
> don't have everything that was on the old site (some stuff from the
> FAQ, "what's new" and "user's guide" has not been ported over) but we
> do have should be current, searchable, indexed and cross-linked.
>
> Thanks to Darren Dale who spear-headed the effort to use the sphinx
> documentation, and to the developers who have contributed, especially
> Michael Droettboom, who has developed several nice sphinx extensions
> to do inheritance diagrams, syntax highlighting of ipython sessions,
> and inline plotting. As an example we can include plots in our API
> documentation, see
>
> http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.acorr
>
> We embed these plots with a "plot" directive that generates the
> figures from external code at documentation build time, which
> guarantees that the example code you see in the docs generate the
> figures you see in the docs. For example, in the acorr docstring, all
> we have to do is::
>
> **Example:**
>
> .. plot:: ../mpl_examples/pylab_examples/xcorr_demo.py
>
> and the figure and source code links automagically appear in the docs.
>
> Because some of these extensions are generally useful, Michael,
> Fernando and I have been working on a "sphinx_template" which contains
> the template of a sphinx documentation project with these extensions
> in place, so people who want to get started using sphinx (the official
> documentation system for python, numpy, ipython and matplotlib) can do
> so more easily. Right now it is available in svn
>
> > svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/py4science/examples/sphinx_template2
>
> and see the README in the checkout directory. Michael also did a talk
> on matplotlib's use of sphinx and the sphinx template at the last
> scipy conference. We're still waiting for the videos of the talks to
> be posted (can someone poke someone?) but you can see the talk PDF
> from the proceedings here:
>
> http://conference.scipy.org/proceedings/SciPy2008/paper_6/
>
> JDH
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
From: Sébastien / Seb-b. <seb...@gm...> - 2008年10月16日 20:20:05
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eric Firing wrote:
> Sébastien / Seb-bubuntu wrote:
[snip]
> 
> I think a LineCollection may provide a very easy way to do what you
> want, if I understand correctly. I recently changed mri_with_eeg.py to
> use a LineCollection; maybe you are looking at an older version?
> Attached is the current version from svn.
> 
> Eric
> 
[snip]
Indeed my Matplotlib version is 0.98.1 (version from Ubuntu repos) so examples may be outdated.
I'll try with your version (which seems much more simple).
Thank you
Sébastien
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFI96HqlabueleSRzIRAjVMAJ4qpR52lNdMp6aPB8WM8uXBjuD2UQCgqNzF
FUc9rWqZaLPv1ZZ+DmApXbo=
=/r2I
-----END PGP SIGNATURE-----
From: Eric F. <ef...@ha...> - 2008年10月16日 19:35:12
Attachments: mri_with_eeg.py
Sébastien / Seb-bubuntu wrote:
> Hi folks,
> 
> I have a few plots which I would like to stack in a single figure. When
> I first came with this problem (back to matplotlib version 0.93 or
> older), the most efficient way (at least in my case) of doing this
> consisted in playing with transformations as you can see in the cookbook
> (see:
> http://www.scipy.org/Cookbook/Matplotlib/MultilinePlots#head-b5f2ad87ab7ec637a0fc63ec85281469d9aeeb46).
> Unfortunately, this example (and, of course, the script I wrote back
> then) doesn't work anymore with with the newest version of Matplotlib
> (0.98).
> So I started to hack the "mri_with_eeg.py" example to achieve what I
> want (since the way EEGs are stacked!)... with no luck!
> I probably don't understand well how the transformation works... That's
> why I decided to beg for a friendly help! :)
> 
> Here is the code from the example (I focused on the lines I haven't
> completely figured):
> 
> boxin = Bbox.from_extents(ax.viewLim.x0, -20, ax.viewLim.x1, 20)
> 
> height = ax.bbox.height
> boxout = Bbox.from_extents(ax.bbox.x0, -1.0 * height,
> ax.bbox.x1, 1.0 * height)
> 
> transOffset = BboxTransformTo(
> Bbox.from_extents(0.0, ax.bbox.y0, 1.0, ax.bbox.y1))
> 
> 
> for i in range(numRows):
> # effectively a copy of transData
> trans = BboxTransform(boxin, boxout)
> offset = (i+1)/(numRows+1)
> 
> trans += Affine2D().translate(*transOffset.transform_point((0,
> offset)))
> 
> thisLine = Line2D(
> t, data[:,i]-data[0,i],
> )
> 
> thisLine.set_transform(trans)
> 
> ax.add_line(thisLine)
> ticklocs.append(offset)
> 
> ax being a AxesSubplot instance
> as far as I understood, 20 and -20 (see line where boxin is defined)
> refer to min and max values (on Y axis) to be plotted within the space
> allocated to each plot (thanks to the tranformation named trans).
> In my case Y values can be much higher (roughly from -1e3 to 5e7), so I
> should change those values according to mine in order to get the
> tranformation working for me. Obviously something is wrong in my
> understanding since it doesn't work!
> Hence my first question: Why is it not working?
> As a bonus, I also have another question: Is there a "new" (i.e.
> provided by the new API) way that can be used to stack plots composed by
> many (>5k) points?
I think a LineCollection may provide a very easy way to do what you 
want, if I understand correctly. I recently changed mri_with_eeg.py to 
use a LineCollection; maybe you are looking at an older version? 
Attached is the current version from svn.
Eric
> 
> Thanks
> 
> Sébastien
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Jörgen S. <jor...@bo...> - 2008年10月16日 19:08:46
The new webpage looks great, sphinx has really meant a lot for the 
documentation in the scientific projects.
> 
> Because some of these extensions are generally useful, Michael,
> Fernando and I have been working on a "sphinx_template" which contains
> the template of a sphinx documentation project with these extensions
> in place, so people who want to get started using sphinx (the official
> documentation system for python, numpy, ipython and matplotlib) can do
> so more easily. Right now it is available in svn
> 
> > svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/py4science/examples/sphinx_template2
> 
> and see the README in the checkout directory. Michael also did a talk
> on matplotlib's use of sphinx and the sphinx template at the last
> scipy conference. We're still waiting for the videos of the talks to
> be posted (can someone poke someone?) but you can see the talk PDF
> from the proceedings here:
> 
But I have some problems using the template from windows (python2.5). 
 From a fresh checkout of the sphinx_template2 from svn and running
the following in that folder:
C:\python\mpl_template>sphinx-build -b html -d build/doctrees .
build/html
Sphinx v0.5, building html
loading pickled environment... not found
building [html]: targets for 10 source files that are out of date
updating environment: 10 added, 0 changed, 0 removed
reading sources... index model/api_docs model/index model/introduction 
model/nex
t_steps model/sphinx_helpers building 
C:\python\mpl_template\pyplots\elegant
.py
ERROR: File `C:pythonmpl_templatepyplotselegant.py` not found.
simulations/finale already have 
C:\python\mpl_template\pyplots\elegant.py
simulations/index simulations/introduction simulations/preliminary 
building
C:\python\mpl_template\pyplots\hairy.py
ERROR: File `C:pythonmpl_templatepyplotshairy.py` not found.
pickling environment... done
checking consistency... done
preparing documents... done
writing output... index model/api_docs model/index model/introduction 
model/next
_steps model/sphinx_helpers simulations/finale simulations/index 
simulations/int
roduction simulations/preliminary
WARNING: C:\python\mpl_template\model\sphinx_helpers.rst:177: 
(WARNING/2) 'dot'
called with invalid arguments
writing additional files... genindex modindex search
copying images... _static\elegant.pdf _static\hairy.pdf 
_static\elegant.png _sta
tic\hairy.png
copying static files... done
dumping search index... done
dumping object inventory... done
build succeeded, 1 warning.
There are two errors with very strange filenames, it looks like the path
separator has disappeared.
Any both the graphs elegant and hairy are generated but they are
empty, both the png and pdf. Any ideas?
/Jörgen
From: Jakub U. <ur...@ip...> - 2008年10月16日 19:01:40
Hello everybody!
 
I'm trying to make a contour plot and add a legend for it. The code is
basically
---
from numpy import *
from matplotlib.pyplot import *
# put anything into x,y,z arrays
ctr = contour(x,y,z) # plots ok contours of z(x,y)
ctr.collections[0].set_label('z')
legend()
show()
---
The legend() command produces an error (see below). What's wrong with this?
 
Thanks for any help
Jakub
 
(Python 2.5 + matplotlib 0.98.3 on Win32)
 
---
 
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (184, 0))
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
 
C:\Documents and Settings\jurban\<ipython console> in <module>()
 
C:\Python25\lib\site-packages\matplotlib\pyplot.pyc in legend(*args,
**kwargs)
 2388
 2389 ret = gca().legend(*args, **kwargs)
-> 2390 draw_if_interactive()
 2391 return ret
 2392 if Axes.legend.__doc__ is not None:
 
C:\Python25\lib\site-packages\matplotlib\backends\backend_tkagg.pyc in
draw_if_i
nteractive()
 59 figManager = Gcf.get_active()
 60 if figManager is not None:
---> 61 figManager.show()
 62
 63
 
C:\Python25\lib\site-packages\matplotlib\backends\backend_tkagg.pyc in
show(self
)
 389 if sys.platform=='win32' : self.window.update()
 390 else:
--> 391 self.canvas.draw()
 392 self._shown = True
 393
 
C:\Python25\lib\site-packages\matplotlib\backends\backend_tkagg.pyc in
draw(self
)
 212
 213 def draw(self):
--> 214 FigureCanvasAgg.draw(self)
 215 tkagg.blit(self._tkphoto, self.renderer._renderer,
colormode=2)
 216 self._master.update_idletasks()
 
C:\Python25\lib\site-packages\matplotlib\backends\backend_agg.pyc in
draw(self)
 259
 260 self.renderer = self.get_renderer()
--> 261 self.figure.draw(self.renderer)
 262
 263 def get_renderer(self):
 
C:\Python25\lib\site-packages\matplotlib\figure.pyc in draw(self, renderer)
 757
 758 # render the axes
--> 759 for a in self.axes: a.draw(renderer)
 760
 761 # render the figure text
 
C:\Python25\lib\site-packages\matplotlib\axes.pyc in draw(self, renderer,
infram
e)
 1521
 1522 for zorder, i, a in dsu:
-> 1523 a.draw(renderer)
 1524
 1525 renderer.close_group('axes')
 
C:\Python25\lib\site-packages\matplotlib\legend.pyc in draw(self, renderer)
 195 if not self.get_visible(): return
 196 renderer.open_group('legend')
--> 197 self._update_positions(renderer)
 198 if self._drawFrame:
 199 if self.shadow:
 
C:\Python25\lib\site-packages\matplotlib\legend.pyc in
_update_positions(self, r
enderer)
 521 ydata = y*np.ones(handle.get_xdata().shape, float)
 522 handle.set_ydata(ydata+h/2.)
--> 523 handle._legmarker.set_ydata(ydata+h/2.)
 524 elif isinstance(handle, Rectangle):
 525 handle.set_y(y+1/4*h)
 
AttributeError: 'Line2D' object has no attribute '_legmarker'
 
 
From: Sébastien / Seb-b. <seb...@gm...> - 2008年10月16日 17:42:13
Hi folks,
I have a few plots which I would like to stack in a single figure. When
I first came with this problem (back to matplotlib version 0.93 or
older), the most efficient way (at least in my case) of doing this
consisted in playing with transformations as you can see in the cookbook
(see:
http://www.scipy.org/Cookbook/Matplotlib/MultilinePlots#head-b5f2ad87ab7ec637a0fc63ec85281469d9aeeb46).
Unfortunately, this example (and, of course, the script I wrote back
then) doesn't work anymore with with the newest version of Matplotlib
(0.98).
So I started to hack the "mri_with_eeg.py" example to achieve what I
want (since the way EEGs are stacked!)... with no luck!
I probably don't understand well how the transformation works... That's
why I decided to beg for a friendly help! :)
Here is the code from the example (I focused on the lines I haven't
completely figured):
 boxin = Bbox.from_extents(ax.viewLim.x0, -20, ax.viewLim.x1, 20)
 height = ax.bbox.height
 boxout = Bbox.from_extents(ax.bbox.x0, -1.0 * height,
 ax.bbox.x1, 1.0 * height)
 transOffset = BboxTransformTo(
 Bbox.from_extents(0.0, ax.bbox.y0, 1.0, ax.bbox.y1))
 for i in range(numRows):
 # effectively a copy of transData
 trans = BboxTransform(boxin, boxout)
 offset = (i+1)/(numRows+1)
 trans += Affine2D().translate(*transOffset.transform_point((0,
offset)))
 thisLine = Line2D(
 t, data[:,i]-data[0,i],
 )
 thisLine.set_transform(trans)
 ax.add_line(thisLine)
 ticklocs.append(offset)
ax being a AxesSubplot instance
as far as I understood, 20 and -20 (see line where boxin is defined)
refer to min and max values (on Y axis) to be plotted within the space
allocated to each plot (thanks to the tranformation named trans).
In my case Y values can be much higher (roughly from -1e3 to 5e7), so I
should change those values according to mine in order to get the
tranformation working for me. Obviously something is wrong in my
understanding since it doesn't work!
Hence my first question: Why is it not working?
As a bonus, I also have another question: Is there a "new" (i.e.
provided by the new API) way that can be used to stack plots composed by
many (>5k) points?
Thanks
Sébastien
From: John H. <jd...@gm...> - 2008年10月16日 16:39:54
We've been working behind the scenes on a new documentation system for
matplotlib, which integrates the web site, API documentation and PDF
guide into a single source of sphinx/rest documents which are easier
to maintain and extend, hopefully leading to better and more
up-to-date docs.
We went live with the new site yesterday:
 http://matplotlib.sf.net
so check it out and let us know if something is broken or missing. We
don't have everything that was on the old site (some stuff from the
FAQ, "what's new" and "user's guide" has not been ported over) but we
do have should be current, searchable, indexed and cross-linked.
Thanks to Darren Dale who spear-headed the effort to use the sphinx
documentation, and to the developers who have contributed, especially
Michael Droettboom, who has developed several nice sphinx extensions
to do inheritance diagrams, syntax highlighting of ipython sessions,
and inline plotting. As an example we can include plots in our API
documentation, see
 http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.acorr
We embed these plots with a "plot" directive that generates the
figures from external code at documentation build time, which
guarantees that the example code you see in the docs generate the
figures you see in the docs. For example, in the acorr docstring, all
we have to do is::
 **Example:**
 .. plot:: ../mpl_examples/pylab_examples/xcorr_demo.py
and the figure and source code links automagically appear in the docs.
Because some of these extensions are generally useful, Michael,
Fernando and I have been working on a "sphinx_template" which contains
the template of a sphinx documentation project with these extensions
in place, so people who want to get started using sphinx (the official
documentation system for python, numpy, ipython and matplotlib) can do
so more easily. Right now it is available in svn
 > svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/py4science/examples/sphinx_template2
and see the README in the checkout directory. Michael also did a talk
on matplotlib's use of sphinx and the sphinx template at the last
scipy conference. We're still waiting for the videos of the talks to
be posted (can someone poke someone?) but you can see the talk PDF
from the proceedings here:
 http://conference.scipy.org/proceedings/SciPy2008/paper_6/
JDH
From: Charlie M. <cw...@gm...> - 2008年10月16日 13:14:30
Thanks for the notes. I suspect many people are in the same boat as me and
just do not have access to the environment you do.
- Charlie
On Wed, Oct 15, 2008 at 3:07 AM, Dan Shechter <da...@ho...> wrote:
> Of course... I'll try to be as detailed as I can be...
>
> I'll start off by mentioning that I have created and uploaded and
> archive with a snapshot of everything that I've got so far:
> http://rapidshare.com/files/154096953/py-64.7z.html
>
> The env. I'm using is:
> * VS9 (2008)
> * Python 2.6 for amd 64 (compiled with VS9 by the python.org folks)
>
> To compile Numpy I did this:
> 1. Extract Numpy 1.2
> 2. Start the Visual Studio 2008 Command prompt
> 3. Patch "numpy-1.2.0\numpy\core\src\umathmodule.c.src" according to the
> instructios here:
>
>
> http://projects.scipy.org/pipermail/numpy-discussion/2008-October/037981.htm
> l
>
>
> http://projects.scipy.org/pipermail/numpy-discussion/2008-October/037994.htm
> l
> 4. invoke python setup.py build bdist_wininst
> 5. Install the resulting installer
> 6. Run numpy.test()... (You'll need a installed nose unit-test framework,
> which is in the archive I've attached)
>
> For MPL:
> 1. Extract matplotlib-0.98.3
> 2. I downloaded the win32_static package so I can see the "recomended"
> static dependencies and compiled the dependencies as best I could,
> altering the provided ".sln"/".csproj" files as best I could to compile
> for x64 (none of them have pre-made x64 "builds")
> What I compiled out of the win32 packages was:
> libpng / zlib
> freetype
> 3. I restructures the headers / .lib files in a manner similar to how they
> were with
> the win32_static package, and placed it in a "win64" directory
> 4. Changed setupext.py to use "win64" instead of "win32_static"
> 5. Compiled with python setup.py build bdist_wininst, installed the
> resulting installer
> 6. Ran a few tests...
>
> That's it.
> I'm still "missing" on getting the wxPython headers/static libs compiled,
> but I assume this is not a
> "critical" part of getting MPL working, but rather required for
> completeness
> sake.
>
>
> From: Charlie Moad [mailto:cw...@gm...]
> Sent: Wednesday, October 15, 2008 03:11
> To: Dan Shechter
> Cc: mat...@li...
> Subject: Re: [Matplotlib-users] MPL on Windows x64 with Python 2.6
>
> Could you please describe your build environment? I am interested in what
> compiler you used and what OS you are running.
>
> - Charlie
> On Tue, Oct 14, 2008 at 8:23 PM, Dan Shechter <da...@ho...> wrote:
> Hi,
> I've successfully compiled NumPy for Python 2.6 on Windows x64 (amd64).
> NumPy seems so pass most of the unit tests, except for a few minor ones
> where it seems nose (the unit testing harness) seems to have problems with
> python 2.6.
>
> After compiling MPL for 2.6 on x64 (which was a LENGTHY process... phew!) I
> do get a generally speaking working version but there seem to be quite a
> few
> display issues... I have re-occuring cases of "missing data points", for a
> lack of a better name.
> Feel free to look at a screenshot:
> http://img101.imageshack.us/my.php?image=badsubloptswy1.png
>
> Is MPL supported on Win x64? I someone working on this?
>
> I would be happy to share my NumPy build and MPL dependencies + MPL build
> with anyone that perhaps knowing a bit more than me about MPL :)
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
From: Dave_Evo <dsp...@gm...> - 2008年10月16日 12:20:29
Hi,
I installed matplotlib on my home pc with no problems but I followed the
same protocol on my work pc and got the following error:
 Traceback (most recent call last):
 File "<pyshell#0>", line 1, in <module>
 from pylab import *
 File "C:\Python25\Lib\site-packages\pylab.py", line 1, in <module>
 from matplotlib.pylab import *
 File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 677, in
<module>
 rcParams = rc_params()
 File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 598, in
rc_params
 fname = matplotlib_fname()
 File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 548, in
matplotlib_fname
 fname = os.path.join(get_configdir(), 'matplotlibrc')
 File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 242, in
wrapper
 ret = func(*args, **kwargs)
 File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 438, in
_get_configdir
 raise RuntimeError("Failed to create %s/.matplotlib; consider setting
MPLCONFIGDIR to a writable directory for matplotlib configuration data"%h)
RuntimeError: Failed to create C:\/.matplotlib; consider setting
MPLCONFIGDIR to a writable directory for matplotlib configuration data
...I checked and none of the python directories are read-only. I also
followed the instructions on the thread 'runtime error' which dealt with I
think the same problems, but after patching the cutils.py (line 79) and the
__init__ (line 435) files, I now get a new error:
from matplotlib import mpl # pulls in most modules
 File "C:\Python25\Lib\site-packages\matplotlib\mpl.py", line 1, in
<module>
 from matplotlib import artist
 File "C:\Python25\Lib\site-packages\matplotlib\artist.py", line 3, in
<module>
 import matplotlib.cbook as cbook
AttributeError: 'module' object has no attribute 'cbook'
Any advice would be appreciated, I can't understand what is different
between the two systems. My home pc is vista, while work is XP pro. Python
2.5.2, scipy, numpy and matplotlib all installed from binaries.
Thanks,
Dave 
-- 
View this message in context: http://www.nabble.com/error-on-trying-to-call-in-pylab-tp20012574p20012574.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Michael D. <md...@st...> - 2008年10月16日 12:19:52
As with all other commands in matplotlib, show is blocking. The 
interpreter stops at that line until the window closes.
To do interactive things with a separate GUI event loop, have a look at 
the demos in the event_handling directory of the examples.
Mike
Nick Vaidyanathan wrote:
> The figure would open and remain visible, but would not respond in the 
> expected manner to a button press. Consequently, Python would error 
> out saying "package does not contain method waitforbuttonpress()". I 
> was working on a school computer, 32-bit Intel that had just 
> downloaded a fresh version of whatever Enthought has inside, so you 
> might want to check in that package. 
>
> On Wed, Oct 15, 2008 at 5:41 AM, Michael Droettboom <md...@st... 
> <mailto:md...@st...>> wrote:
>
> Nick Vaidyanathan wrote:
>
> Does not exist here:
> http://matplotlib.sourceforge.net/doc/html/api/pyplot_api.html
> Which is curious, because it's plainly shown (PUNZ!) here:
> http://matplotlib.sourceforge.net/doc/html/users/pyplot_tutorial.html
> Now here's t3h sex: given the documentation, I kind of expect
> this to work:
> ---Python Code---
> plotter.plot(xs,ys,'ro')
> plotter.grid(True)
> plotter.savefig('myresult.png')
> plotter.show()
> plotter.waitforbuttonpress(1)
> plotter.close()
> ---End Python Code---
> I would expect that would keep my window open for a second,
> or until I keyed a button, and then close it. No dice.
>
> What, in fact, is happening for you? No window at all? Perhaps
> your backend is set to a non-GUI backend? Can you send us your
> matplotlibrc file?
>
> Cheers,
> Mike
>
> ...actually, I got my matplotlib through enthought, which has
> an old version of the package (.91)...but a simple google
> search for "matplotlib 0.91 api" doesn't show that package's
> docs on the front page...help?
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge
> Build the coolest Linux based applications with Moblin SDK &
> win great prizes
> Grand prize is a trip for two to an Open Source event anywhere
> in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> <mailto: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
>
>
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Dave_Evo <dsp...@gm...> - 2008年10月16日 12:18:18
Hi,
I installed matplotlib on my home pc with no problems but I followed the
same protocol on my work pc and got the following error:
 Traceback (most recent call last):
 File "<pyshell#0>", line 1, in <module>
 from pylab import *
 File "C:\Python25\Lib\site-packages\pylab.py", line 1, in <module>
 from matplotlib.pylab import *
 File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 677, in
<module>
 rcParams = rc_params()
 File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 598, in
rc_params
 fname = matplotlib_fname()
 File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 548, in
matplotlib_fname
 fname = os.path.join(get_configdir(), 'matplotlibrc')
 File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 242, in
wrapper
 ret = func(*args, **kwargs)
 File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 438, in
_get_configdir
 raise RuntimeError("Failed to create %s/.matplotlib; consider setting
MPLCONFIGDIR to a writable directory for matplotlib configuration data"%h)
RuntimeError: Failed to create C:\/.matplotlib; consider setting
MPLCONFIGDIR to a writable directory for matplotlib configuration data
...I checked and none of the python directories are read-only. I also
followed the instructions on the thread 'runtime error' which dealt with I
think the same problems, but after patching the cutils.py (line 79) and the
__init__ (line 435) files, I now get a new error:
from matplotlib import mpl # pulls in most modules
 File "C:\Python25\Lib\site-packages\matplotlib\mpl.py", line 1, in
<module>
 from matplotlib import artist
 File "C:\Python25\Lib\site-packages\matplotlib\artist.py", line 3, in
<module>
 import matplotlib.cbook as cbook
AttributeError: 'module' object has no attribute 'cbook'
Any advice would be appreciated, I can't understand what is different
between the two systems. My home pc is vista, while work is XP pro. Python
2.5.2, scipy, numpy and matplotlib all installed from binaries.
Thanks,
Dave 
-- 
View this message in context: http://www.nabble.com/error-on-trying-to-call-in-pylab-tp20012529p20012529.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: G J. <gle...@gm...> - 2008年10月16日 07:58:39
The problem seems to be fixed after updating SIP from 4.7 from the ubuntu
repositories to 4.7.7 from the source. I think it had to do with mixing
threading.Thread with a Qt application, but I'm not entirely sure.
Thanks for the info anyway,
Glenn
On Wed, Oct 15, 2008 at 6:00 AM, Michael Droettboom <md...@st...> wrote:
> I'm using Qt 4.3.0/PyQt 4.2, compiled from source on RHEL4 with no
> problems, so it's not necessarily that your version is too old.
>
> Once you have a script to reproduce and (ideally) a gdb backtrace, that
> should help us narrow down on the root cause.
>
> Mike
>
> G Jones wrote:
>
>> Hello,
>> I'm trying to track down a segfault when a canvas.draw() call is made in
>> my GUI program using the Qt4Agg backend. I am running matplotlib 0.98.3 and
>> Qt 4.3.2. <http://4.3.2.> I know the Qt version is a bit old, so I wanted
>> to check if I should be suspicious of version incompatibility. I am working
>> on a script to demonstrate the segfault.
>> Thanks,
>> Glenn
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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: Nick V. <nt...@gm...> - 2008年10月16日 06:20:56
The figure would open and remain visible, but would not respond in the
expected manner to a button press. Consequently, Python would error out
saying "package does not contain method waitforbuttonpress()". I was working
on a school computer, 32-bit Intel that had just downloaded a fresh version
of whatever Enthought has inside, so you might want to check in that
package.
On Wed, Oct 15, 2008 at 5:41 AM, Michael Droettboom <md...@st...> wrote:
> Nick Vaidyanathan wrote:
>
>> Does not exist here:
>> http://matplotlib.sourceforge.net/doc/html/api/pyplot_api.html
>> Which is curious, because it's plainly shown (PUNZ!) here:
>> http://matplotlib.sourceforge.net/doc/html/users/pyplot_tutorial.html
>> Now here's t3h sex: given the documentation, I kind of expect this to
>> work:
>> ---Python Code---
>> plotter.plot(xs,ys,'ro')
>> plotter.grid(True)
>> plotter.savefig('myresult.png')
>> plotter.show()
>> plotter.waitforbuttonpress(1)
>> plotter.close()
>> ---End Python Code---
>> I would expect that would keep my window open for a second, or until I
>> keyed a button, and then close it. No dice.
>>
> What, in fact, is happening for you? No window at all? Perhaps your
> backend is set to a non-GUI backend? Can you send us your matplotlibrc
> file?
>
> Cheers,
> Mike
>
>> ...actually, I got my matplotlib through enthought, which has an old
>> version of the package (.91)...but a simple google search for "matplotlib
>> 0.91 api" doesn't show that package's docs on the front page...help?
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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
>
>

Showing 15 results of 15

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 によって変換されたページ (->オリジナル) /