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) |
|
|
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
|
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 > > |
|
From: Haibao T. <tan...@gm...> - 2008-10-15 20:11:09
|
Dear folks,
I wrote an ad-hoc script to generate buttons that have the 'glossy' effect.
The implementation is fairly straightforward and did work -- the buttons
themselves are rectangles with rounded corners so I call a polygon patch.
The light is simulated using a white, transparent ellipse. But there is one
problem though, the ellipse would mask anything that's above the buttons as
well.
Any people interested to take a look and suggest a solution?
Haibao
-------------------------------------------------------------------------------------------------------------
from pylab import *
from matplotlib.patches import *
fig = figure(1,(8,8))
root = fig.add_axes([0,0,1,1])
def plot_cap(center, t, r):
x, y = center
return zip(x+r*cos(t), y+r*sin(t))
def round_rect(ax, xy, width, height, shrink=.33, label=None, **kwargs):
shrink *= height
x,y=xy
pts = []
# plot the four rounded cap one by one
pts += plot_cap((x+width-shrink, y+height-shrink), array([radians(j) for
j in range(0,90)]), shrink)
pts += [[x+width-shrink, y+height], [x+shrink, y+height]]
pts += plot_cap((x+shrink, y+height-shrink), array([radians(j) for j in
range(90,180)]), shrink)
pts += [[x, y+height-shrink], [x, y+shrink]]
pts += plot_cap((x+shrink, y+shrink), array([radians(j) for j in
range(180,270)]), shrink)
pts += [[x+shrink, y], [x+width-shrink, y]]
pts += plot_cap((x+width-shrink, y+shrink), array([radians(j) for j in
range(270,360)]), shrink)
pts += [[x+width, y+shrink], [x+width, y+height-shrink]]
ax.add_patch(Polygon(pts, **kwargs))
# add a white transparency ellipse filter
# CAUTION -- things immediately above the button will be masked too!!!
ax.add_patch(Ellipse((x+width/2.,y+height),1.6*width,height*.8,fc='w',alpha=.3,lw=0))
if label:
root.text(x+width/2.,y+height/2.,label,size=10,horizontalalignment="center",verticalalignment="center",color="w")
round_rect(root,(.45,.4),.1,.04,label="Button",lw=0,fc='k')
round_rect(root,(.15,.4),.2,.08,label="Download\nFirefox",lw=0,fc='r')
round_rect(root,(.65,.4),.2,.08,label="Google\nChrome",lw=0,fc='g')
root.set_xlim(0,1)
root.set_ylim(0,1)
root.set_axis_off()
savefig("glossy.pdf")
----------------------------------------------------------------------------------------------------------------------
|
|
From: Dan S. <da...@ho...> - 2008-10-15 18:32:31
|
Yeap... I also forgot to mention this in response to Charlie's question. MPL + NumPy work seemlessly on Linux amd64, and have been so for at least the two years I've been using them. Having said that, I have only used them with Python 2.5 amd64 and not with 2.6 on Linux. I've compiled the packaged I linked to before on Vista x64 with VS 2008 SP1. I've been able to reproduce the impaired visual effects on Vista x64 AND Windows XP x64 so far. So I would say that this definitely rules out 64-bit non-safety as a general issue and this is either a problem with the dependencies on x64 or MPL itself. -----Original Message----- From: Michael Droettboom [mailto:md...@st...] Sent: Wednesday, October 15, 2008 4:02 PM To: Dan Shechter Cc: 'Charlie Moad'; mat...@li... Subject: Re: [Matplotlib-users] MPL on Windows x64 with Python 2.6 An interesting data point would be if anyone is successfully running matplotlib on another amd64 platform...? (I'm running 32-bit Linux, so I can't help.) That might help rule our 64-bit non-safety in general vs. something specific to the Windows toolchain. Mike Dan Shechter 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 > > > > ------------------------------------------------------------------------- > 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: Michael D. <md...@st...> - 2008-10-15 14:14:01
|
An interesting data point would be if anyone is successfully running matplotlib on another amd64 platform...? (I'm running 32-bit Linux, so I can't help.) That might help rule our 64-bit non-safety in general vs. something specific to the Windows toolchain. Mike Dan Shechter 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 > > > > ------------------------------------------------------------------------- > 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: Michael D. <md...@st...> - 2008-10-15 13:04:31
|
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: Michael D. <md...@st...> - 2008-10-15 12:41:54
|
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 |
|
From: G J. <gle...@gm...> - 2008-10-15 08:56:12
|
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. 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 |
|
From: Dan S. <da...@ho...> - 2008-10-15 08:00:15
|
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: Stefan S. <ste...@go...> - 2008-10-15 06:58:14
|
Hi, you might want to look here: http://matplotlib.sourceforge.net/tutorial.html If I understand what you mean by cross-table and graph, then you are just plotting two lines of data? That would require: pylab.plot(x, y1, 'ro', x, y2, 'bo') or something like that. Look at the tutorials. And you would need the data. A good idea is to write them in a simple ascii file. Please have a look at the following page: http://www.scipy.org/Cookbook/InputOutput This would require for example: data = numpy.loadtxt('table.dat', unpack=True) When I need to plot data from a file where the data is seperated by comma (csv file), I do something like this: import pylab data = pylab.load(filename, delimiter=',',skiprows=1) # the first row is often a table header fig = pylab.figure() ax = fig.add_subplot(111) # if you need more then one plot per figure, just change here ax.set_xlabel(cals['x units']) ax.set_ylabel('y units') ax.plot(data[::,0],data2[::,1]) # this plots col 0 against col 1, uses all the rows ax.autoscale_view() ax.grid(True) pylab.show() Cheers, Stefan 2008/10/15 He Jibo <he...@gm...> > Dear All, > > I am sorry for the bother, but could you please give me some help? > I have some pilot data, which is too large to graph in excel, about 16MB. > So I hope I can do the cross-tabulation and plot in matlab. How can I draw a > cross-table and graph with matlab like the one in the attachment? > Thank you so much for your time ! Good night! > > > He Jibo > he...@gm... > ji...@cy... > > > --------------------------- > He Jibo > Department of Psychology, > Beckman Institute for Advanced Science and Technology > University of Illinois, Urbana Champaign, > 603 East Daniel St., > Champaign, IL 61820 > Tel: 217-244-4461(office) > 217-244-6763(lab) > Email: he...@gm... > Helen Hayes - "Age is not important unless you're a cheese." > > > ------------------------------------------------------------------------- > 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: Nick V. <nt...@gm...> - 2008-10-15 02:34:18
|
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. ...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? |
|
From: Charlie M. <cw...@gm...> - 2008-10-15 01:10:53
|
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: Dan S. <da...@ho...> - 2008-10-15 00:50:43
|
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 :) |
|
From: Mathew Y. <my...@jp...> - 2008-10-14 23:39:33
|
I had a bug in my code, when I fixed it I can now see the lines. If there is a better way to do what I'm doing, and love to hear it. Mathew Yeates wrote: > Any help appreciated > > I am displaying a line on a map ala > -------------- > m=Basemap( .... ) > xpt,ypt= m([],[]) > outlines=m.plot(xpt,ypt,'r-') > ----------------- > and then in an update routine I do > > ---------------- > def update(newxpts,newypts): > outlines[0].set_data(newxpst,newypts) > ----------------------- > > This works fine but now I want to add additional lines. I tried > > -------------------- > m=Basemap( .... ) > xpt,ypt= m([],[]) > outlines=m.plot(xpt,ypt,'r-') > slitlines=[] > for i in range(0,500): > slitlines.append(m.plot([],[],'b-')) > ------------------------ > > and > > ------------------------ > def update(newxpts,newypts,newslitx,newlity): > outlines[0].set_data(newxpst,newypts) > for i in > range(0,500):slitlines[i][0].set_data([startx[i],endx[i]],[starty[i],endy[i]]) > ------------------------- > > but this doesn't work. Clearly I'm doing something wrong. > Whats the best way to do this? > > Thanks > Mathew > > > > > > > > > > ------------------------------------------------------------------------- > 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: Eric F. <ef...@ha...> - 2008-10-14 22:57:07
|
John Hunter wrote: > On Tue, Oct 14, 2008 at 2:58 PM, Eric Firing <ef...@ha...> wrote: >> mask = (PyArrayObject *)PyArray_SimpleNew(1,dimensions,PyArray_INT); >> >> in nxutils.cpp would become >> >> mask = (PyArrayObject *)PyArray_SimpleNew(1,dimensions, NPY_BOOL); >> >> Can anyone think of anything this would break, or any disadvantages? > > This looks better to me too - -I suggest testing it with the lasso > demo which was the example that motivated this code. > > JDH It worked, so I went ahead and committed the change. I had to change one other line, and while in the neighborhood I replaced the other old-form PyArray_* with NPY_*. Eric |