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




Showing results of 353

<< < 1 .. 4 5 6 7 8 .. 15 > >> (Page 6 of 15)
From: Marc A. <ma...@ph...> - 2006年02月20日 05:23:57
Thanks so much for the tip. MPlot seems to be doing real-time plots
for me now, following a) your "-wthread" advice and b)having put the
measurement code in to a seperate thread. Does this seem unnecessarily
complicated? If it works under simpler circumstances, I'll let you know.
Also, the "-wthread" option seems to obviate the call to app.MainLoop().
Thanks again guys!
Marc
Quoting John Hunter <jdh...@ac...>:
> >>>>> "Marc" =3D=3D Marc AHRENS <ma...@ph...> writes:
> Marc> NB The absence of an "app.MainLoop()" call at the end, since
> Marc> I've called this from ipython, which is supposed to be
> Marc> clever and automatically the wxPython main loop in another
> Marc> thread automatically (I read this somewhere). I've tried
> Marc> running multi-threaded stuff from the regular python shell,
> Marc> but without success.
>=20
> ipython is only clever if you launch it in ipython -pylab for pylab
> mode (which is not compatible with MPlot) or if launched in the
> --wthread mode for wx threading. So you'll definitely need to do the
> latter. I haven't had a lot of experience with --wthread; is it
> correct that if you use wthread you should not use the explicit call
> to Mainloop?
>=20
> JDH
>=20
From: Charlie M. <cw...@gm...> - 2006年02月20日 02:13:31
Recently the matplotlib data files have been moved into the matplotlib
module. You should be able to safely remove share/matplotlib.
On 2/19/06, Jeff Peery <jef...@ya...> wrote:
> hello, I just upgraded from 0.84 to 0.86 on windows xp. I noticed that I
> have a couple different locations on my computere where it is installed.
> there is something in the python24/share and also
> python24/Lib/site-packages/
>
> what do I gotta do to make sure I am using the newest version. can I jus=
t
> delete all the matplot lib folders and reinstall the newest version?
>
> thakns!
>
>
> ________________________________
> Yahoo! Mail
> Use Photomail to share photos without annoying attachments.
>
>
From: Jeff P. <jef...@ya...> - 2006年02月20日 01:48:59
hello, I just upgraded from 0.84 to 0.86 on windows xp. I noticed that I have a couple different locations on my computere where it is installed. there is something in the python24/share and also python24/Lib/site-packages/
 
 what do I gotta do to make sure I am using the newest version. can I just delete all the matplot lib folders and reinstall the newest version? 
 
 thakns!
 
		
---------------------------------
 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.
From: Charlie M. <cw...@gm...> - 2006年02月20日 00:40:25
On 2/19/06, Josh Marshall <jos...@gm...> wrote:
> I have the same issue with py2app that is described with py2exe
> below. In order to work around this, I just needed to remove the
> "sys.platform=3D=3D'win32' " check.
>
> Could the developers please either:
> Change the line to either:
> if (sys.platform=3D=3D'win32' or sys.platform=3D=3D'darwin') and =
sys.frozen:
Done.
From: Josh M. <jos...@gm...> - 2006年02月20日 00:04:43
I have the same issue with py2app that is described with py2exe 
below. In order to work around this, I just needed to remove the 
"sys.platform=='win32' " check.
Could the developers please either:
Change the line to either:
	if (sys.platform=='win32' or sys.platform=='darwin') and sys.frozen:
or
	if sys.frozen:
Either is fine with me. I'm not sure how this affects linux/other 
*nix users, but they don't tend to freeze apps, so the second line is 
probably fine.
Regarding py2exe and zipping the python packages into a zip, (py2app 
also does this) does anyone have any troubles with freezing numpy and 
matplotlib? (This may be more relevant to the numpy list.) Numpy 
fails on import due to the pkgload() command trying to load the 
documentation. Everything works fine when I unzip the site- 
packages.zip into a site-packages directory, but I would prefer not 
to have to do this since it doubles the disk space my .app consumes.
Thanks,
Josh
On 2/8/06, Charlie Moad <cw...@gm...> wrote:
> On 2/7/06, John Hunter <jdh...@ac...> wrote:
>
>>>>>>> "Daniel" =3D=3D Daniel McQuillen <dan...@ya...> 
>>>>>>> writes:
>>>>>>>
>>
>> Daniel> Please be kind....poor starving newbie. I've seen this
>> Daniel> question posted around but can't seem to find an answer:
>> Daniel> does anybody have experience creating an .exe for a
>> Daniel> matplotlib program using py2exe?
>>
>> Daniel> My testMPL.py application is all set to go, but when I 
>> run
>> Daniel> py2exe with the suggested setup.py file, I get
>> Daniel> errors. (I'm using ActiveState Python 2.4.2 Build 10)
>>
>> Daniel, just for our information: are you using the py2exe examples
>> from the matplotlib FAQ page? I think these are probably a bit 
>> out of
>> date as of the 0.86 release because of the way we recently 
>> reorganized
>> the package data (fonts, thumbnails etc).
>>
>> Charlie, have you tested any of the new egg / package organization
>> stuff with py2exe?
>>
>
> I just tried with an old project that I used py2exe with and it does
> look like we still need the py2exe specific check in get_data_path
> since py2exe zips the pure python code into a library.zip. I updated
> my setup.py file for that old project and I am pasting it below. In
> my specific case I was using numarray (numpy didn't exist), so now I
> have to exclude numpy or errors occur for some unknown reason. I just
> added the old py2exe check to get_data_path and everything worked
> fine. I will add this to cvs.
>
> Until the next release you can just uncomment the following lines in
> matplotlib/__init__.py#_get_data_path():
> if sys.platform=3D=3D'win32' and sys.frozen:
> path =3D os.path.join(os.path.split(sys.path[0])[0], 
> 'matplotlibdat=
> a')
> if os.path.isdir(path): return path
> else:
> # Try again assuming sys.path[0] is a dir not a exe
> path =3D os.path.join(sys.path[0], 'matplotlibdata')
> if os.path.isdir(path): return path
>
From: Tom D. <tom...@al...> - 2006年02月19日 21:48:22
 I am generating a few hundred graphs and doing so takes on the order of
about 10-15 minutes. Which seems to me rather slow. When I profile my cod=
e
it identifies the calls to get_yticklabels and get_xticklabels as taking
over 90% of the time. This seems strange but my calls to these functions
are merely a sort round about way of setting the font size of the axis tick
labels and suppressing the text for the xticklabels. Is there a more
efficient and cleaner way to do this?
 artist.setp(axes.get_yticklabels(), visible=3DTrue, fontsize=3D7)
 artist.setp(axes.get_xticklabels(), visible=3DFalse)
I am using matplotlib version 0.83.1 and the .png format for my output, if
that helps. Though the profiler seems to suggest that the output is
blazingly fast and it is only these calls to the get_?ticklabels that are
slow.
Hi Michael,
On 19/02/2006, at 1:51 PM, Michael Bentley wrote:
> Hi!
>
>> I have an application that is using PyObjC, matplotlib and scipy to
>> perform some image classification and feature extraction. I am now
>> attempting to use py2app to bundle it up into a single OS X .app.
>
> So I'm wondering -- have you already got a matplotlib backend 
> done? I've just started work on such a project and don't want to 
> duplicate effort.
>
> Lemme know, so I don't waste my time! (that is, if you're willing 
> to share)
>
> -Michael
Yes, I do have this working. I can package up numpy/scipy/matplotlib 
into a .app using py2app, and distribute it. The resulting package is 
rather large and only compresses to 9 MB, but I haven't yet looked 
into what I can exclude from the package or using the Apple-supplied 
Python to reduce size.
I've attached the MatplotlibView class that I made, using code from 
the matplotlib Cocoa backend. (I'm not using the mouse event 
interaction yet, so I haven't tested it.) Just insert a NSView into 
your nib file and set the custom class to MatplotlibView. Then add 
the view as an outlet in your app delegate. (this is "imageView" in 
the following code.)
What I then do in my app delegate is first create the initial look. 
It ends up like this:
 def applicationDidFinishLaunching_(self, notification):
 self.imageView.figure.set_facecolor('w')
 self.imageView.axes.set_axis_off()
 self.imageView.updatePlot()
And then in response to user events, I have a function that updates 
the view:
 def showImage(self):
 axes = self.imageView.axes
 axes.clear()
	...
 if self.displayimage is 'original':
 axes.imshow(self.fullcolourimage, extent=[0,imsizex, 
0,imsizey])
	...
 axes.set_axis_off()
 axes.set_xticks([])
 axes.set_yticks([])
 axes.set_xlim(0, imsizex)
 axes.set_ylim(0, imsizey)
 axes.set_aspect(aspect='equal')
 self.imageView.figure.subplots_adjust 
(left=0,right=1,bottom=0,top=1)
 self.imageView.figure.set_facecolor('w')
 self.imageView.updatePlot()
This will now work fine as long as your app is created using 
"setup.py py2app --alias".
There are a few problems when you want to distribute it and just use 
the standalone "setup.py py2app".
First, in your setup.py you will need to include the matplotlib data 
files:
import matplotlib, glob
mpldata = ''.join([matplotlib.rcParams['datapath'], r'/*'])
matplotlibdata = glob.glob(mpldata)
setup_options['data_files'].append((u'matplotlibdata', matplotlibdata))
This will include the files in your application bundle. When the mpl- 
data directory was moved, the code that allowed any data directory to 
be used was commented out. I am not sure, but I think it applied to 
win32 only anyway. So what you need to do next is edit the matplotlib 
__init__.py, find the lines below "CODE ADDED TO SUPPORT PY2EXE", and 
uncomment them. Remove the "if sys.platorm == 'win32'" (or similar) 
condition as well, to give:
 if sys.frozen: ### Remove "sys.platform == 'win32' and" from here
 path = os.path.join(os.path.split(sys.path[0])[0], 
'matplotlibdata')
 if os.path.isdir(path): return path
 else:
 # Try again assuming sys.path[0] is a dir not a exe
 path = os.path.join(sys.path[0], 'matplotlibdata')
 if os.path.isdir(path): return path
There also seems to be a problem with the way numpy/scipy handles 
being frozen, so you need to actually expand the site-packages.zip 
into a site-packages directory in the same location (and then remove 
the zip). Eg:
unzip -q build/XXX.app/Contents/Resources/Python/site-packages.zip -d 
build/XXX.app/Contents/Resources/Python/site-packages
rm build/Bovillator.app/Contents/Resources/Python/site-packages.zip
And you are done! This should help with you embedding matplotlib into 
an application. I have also developed a mixin class that lets you 
easily add Cocoa bindings to Python code with only one line of code. 
If you want it let me know.
I am also posting this to the matplotlib user mailing list. Since 
these problem issues also might affect others, I will post a shorter 
version detailing these to matplotlib devel and numpy mailing lists.
Cheers,
Josh
From: Steve S. <el...@gm...> - 2006年02月19日 19:24:03
Hi
I'm trying to build 0.86.2 on my Debian box. I changed nothing in 
setup.py that came with the src tar.gz.
	python setup.py build
runs fine but
	sudo python setup.py install
gives
------------------------------------------------------------------------
elcorto@ramrod:~/Install/Matplotlib/matplotlib-0.86.2$ sudo python 
setup.py install
installing data to lib/python2.3/site-packages/matplotlib/mpl-data
pygtk present but import failed
Using default library and include directories for Tcl and Tk because a
Tk window failed to open. You may need to define DISPLAY for Tk to work
so that setup can determine where your libraries are located.
Gtk-WARNING **: cannot open display:
------------------------------------------------------------------------
I found that the pygtk and Tk related messages are produced by 
try/except clauses which try to import gtk and Tkinter, which works in 
the normal interactive python and in a script.
My DISPLAY also set:
$ echo $DISPLAY
:0.0
Any hints are appreciated. Many thanks.
cheers,
steve
-- 
Random number generation is the art of producing pure gibberish as 
quickly as possible.
From: John H. <jdh...@ac...> - 2006年02月18日 13:20:49
>>>>> "Marc" == Marc AHRENS <ma...@ph...> writes:
 Marc> NB The absence of an "app.MainLoop()" call at the end, since
 Marc> I've called this from ipython, which is supposed to be
 Marc> clever and automatically the wxPython main loop in another
 Marc> thread automatically (I read this somewhere). I've tried
 Marc> running multi-threaded stuff from the regular python shell,
 Marc> but without success.
ipython is only clever if you launch it in ipython -pylab for pylab
mode (which is not compatible with MPlot) or if launched in the
--wthread mode for wx threading. So you'll definitely need to do the
latter. I haven't had a lot of experience with --wthread; is it
correct that if you use wthread you should not use the explicit call
to Mainloop?
JDH
From: Marc A. <ma...@ph...> - 2006年02月18日 02:31:11
Hello again,
Here's a small chunk of code that exhibits the same problem I referred
to in an eariler email, ie it
won't repaint the window after an event has occured on it until the
code is complete.=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
import MPlot, wx, time,threading,scipy
from scipy import *
app=3Dwx.PySimpleApp()
frame=3DMPlot.PlotFrame()
frame.Show()
frame.Raise()
frame.plot(rand(100),rand(100))
for i in range(15):
 frame.oplot(rand(100),rand(100))
 time.sleep(1)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
NB The absence of an "app.MainLoop()" call at the end,
since I've called this from ipython, which is supposed to be clever and
automatically the wxPython main loop in another thread automatically (I
read this somewhere). I've tried running multi-threaded stuff from the
regular python shell, but without success.
Any ideas on how to get such a window to at least repaint in spite of
events on it, during replot commands?
Thanks in advance :-)
Marc
From: John H. <jdh...@ac...> - 2006年02月17日 14:05:35
>>>>> "Chris" == Chris Seberino <seb...@sp...> writes:
 Chris> If I'm not mistaken, zorder determines what objects will be
 Chris> "on top" of what other objects.
 Chris> I got this working fine for some lines on my plot but it
 Chris> seems to have no effect on **grid lines**. (I want grid
 Chris> lines to be *behind* everything.)
gridlines are part of the Axis, and do not obey the zorder. But you
can put them above or below by setting the axisbelow property of the
Axes
 ax.set_axisbelow(True)
JDH
From: Tobias H. <hil...@li...> - 2006年02月17日 08:49:51
Am Donnerstag, 16. Februar 2006 22:05 schrieb Lisa Hsu:
> I believe your problem is because your Numeric and numarray packages are
> not in the same directory as your matplotlib.
Dear Lisa,
thank you for your response to my problem getting started with matplotlib. As 
I reported already, the problem was a split up of the necessary python 
modules into two packages (namely, python2.3-numeric and 
python2.3-numeric-ext) in Debian Sarge, and I installed only 
python2.3-numeric.
However, having python packages in /usr/lib and /usr/local/lib should not be a 
problem, and is not a problem here.
Yours sincerely
Tobias Hilbricht
-- 
Dr. Tobias Hilbricht
Linopus Satz und Grafik
www.linopus.de
From: Chris S. <seb...@sp...> - 2006年02月17日 01:27:36
If I'm not mistaken, zorder determines what objects will
be "on top" of what other objects.
I got this working fine for some lines on my plot but
it seems to have no effect on **grid lines**.
(I want grid lines to be *behind* everything.)
Here is code snippet for grid stuff....
 plot_.grid(True)
 grid_ =3D plot_.get_xgridlines() + plot_.get_ygridlines()
 pylab.setp(grid_, linestyle =3D "-", color =3D "k",=20
 linewidth =3D "0.5",
 zorder =3D 0.5)
Thanks!
Chris
From: Sajec, M. T. <ms...@tq...> - 2006年02月16日 22:03:32
I'm proposing to extend the boxplot functionality as described below.
If there aren't any objections, I will be submitting the changes. -M.
>>>>> "Sajec," =3D=3D Sajec, Mike TQO <ms...@tq...> writes:
 Sajec> I would like to propose modifying the boxplot function as
 Sajec> follows: Instead of only accepting an (mxn) matrix (x) and
 Sajec> creating (n) boxplots from the columns of (x), optionally
 Sajec> in place of the (mxn) matrix accept a list of numeric
 Sajec> arrays which can be any length, and create boxplots for
 Sajec> each of the arrays in the list.
JDH> Since I have never used boxplot I don't feel qualified to comment
on this, so I suggest you=20
JDH> bring it up on the user's list. If noone objects, and you send me
a patch against CVS, I'll=20
JDH> include it.
From: Robert K. <rob...@gm...> - 2006年02月16日 21:09:26
Lisa Hsu wrote:
> I believe your problem is because your Numeric and numarray packages are
> not in the same directory as your matplotlib. your matplotlib is in
> /usr/local/lib and your numeric packages are in /usr/lib/. 
Why do you think that? I know of no mechanism that would cause that behavior.
-- 
Robert Kern
rob...@gm...
"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
 -- Richard Harter
From: Lisa H. <hs...@ee...> - 2006年02月16日 21:05:31
I believe your problem is because your Numeric and numarray packages are no=
t
in the same directory as your matplotlib. your matplotlib is in
/usr/local/lib and your numeric packages are in /usr/lib/.
if you install your packages all the same place, either /usr/ or /usr/local=
,
then it should work. otherwise, there is some environment variable you can
set to tell everything where to look. or the ugly way is to just symlink
what you need into the appropriate directories.
good luck.
From: Lisa H. <hs...@ee...> - 2006年02月16日 20:54:50
i just installed matplotlib and all the requisite dependencies, and it seem=
s
to be running fine, except that show() is hanging and i'm not getting a GUI
plot.
I'm using the GTKAgg backend, which was automatically chosen by
setup.pywith the 'auto' flag. i am able to save figures and all that,
but show()
just hangs at gtk.main(). i'm not sure why. i ran the example
simple_plot.py with a --verbose-helpful flag and this is my output:
matplotlib data path
/usr/local/lib/python2.4/site-packages/matplotlib/mpl-data
$HOME=3D/n/zed/z/hsul
CONFIGDIR=3D/n/zed/z/hsul/.matplotlib
loaded rc file /n/zed/z/hsul/.matplotlib/matplotlibrc
matplotlib version 0.86.2
verbose.level helpful
interactive is False
platform is linux2
numerix numpy 0.9.4
numerix numpy 0.9.4
font search path
['/usr/local/lib/python2.4/site-packages/matplotlib/mpl-data']
loaded ttfcache file /n/zed/z/hsul/.matplotlib/ttffont.cache
font search path
['/usr/local/lib/python2.4/site-packages/matplotlib/mpl-data']
loaded ttfcache file /n/zed/z/hsul/.matplotlib/ttffont.cache
Could not load matplotlib icon: Couldn't recognize the image file format fo=
r
file
'/usr/local/lib/python2.4/site-packages/matplotlib/mpl-data/matplotlib.svg'
backend GTKAgg version 2.8.0
and it just hangs until i stop it. i'm not sure what is going on - can
anyone help?
thanks.
From: Rafael P. P. <rp...@fi...> - 2006年02月16日 18:53:30
Rafael Perez Pascual wrote:
>> 
>>
>>>I have a Debian Ubuntu 5.10 Breeze system in an amd64 machine with
>>>python2.4. I install numpy, scipy and matplotlib without troubles, but
>>>when I treat to import pylab I get a segmentation fault and python
>>>breaks.
>>>I treat lots of thinks but nothing works, some one have an idea about
>>>these?
>>>
>>>Thanks
>>>
>>>Rafael Perez
>>>
>>>
>>> 
>>>
>>>How did you install those packages? What versions? What code did you run that
>>>segfaulted? Can you isolate a small, self-contained example that segfaults so we
>>>can examine it? If it's a numpy or scipy problem (likely), we will be happy to
>>>answer your questions on the appropriate list to avoid cluttering the matplotlib
>>>list.
>>>
>>>--
>>>Robert Kern
>>>rob...@gm...
>>>
>>>"In the fields of hell where the grass grows high
>>>Are the graves of dreams allowed to die."
>>> -- Richard Harter
>>>
>>>
>>>
>>>
>>> 
>>>
>>I got scipy-0.4.4.tar.gz from the scipy site.
>>I got numpy-0.9.2.tar.gz from the numpy site.
>>I got matplotlib-0.86.2.tar.gz from the matplotlib site.
>>Python2.4 and all other libs from the ubuntu repository.
>>I did the usualy 'python setup.py build' and 'python setup.py
>>install' as root in the scipy-0.4.4 , numpy-0.9.2 and
>>matplotlib-0.86.2 directories.
>>
>> When I try to import pylab I get:
>>
>>rpp@rafael:~$ python
>>Python 2.4.2 (#2, Sep 30 2005, 22:19:27)
>>[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
>>Type "help", "copyright", "credits" or "license" for more information.
>> 
>>
>>>>>from numpy import *
>>>>>from scipy import *
>>>>> 
>>>>>
>>Overwriting fft=<function fft at 0x2aaaad8879b0> from
>>scipy.fftpack.basic (was <function fft at 0x2aaaad5f0758> from
>>numpy.dft.fftpack)
>>Overwriting ifft=<function ifft at 0x2aaaad887a28> from
>>scipy.fftpack.basic (was <function inverse_fft at 0x2aaaad5f07d0> from
>>numpy.dft.fftpack)
>> 
>>
>>>>>from matplotlib import *
>>>>>import pylab
>>>>> 
>>>>>
>>Segmentation fault
>>rpp@rafael:~$
>>
>>
>>Another try
>>
>>rpp@rafael:~$ python
>>Python 2.4.2 (#2, Sep 30 2005, 22:19:27)
>>[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
>>Type "help", "copyright", "credits" or "license" for more information.
>> 
>>
>>>>>import matplotlib
>>>>>import pylab
>>>>> 
>>>>>
>>Overwriting fft=<function fft at 0x2aaaaf186320> from
>>scipy.fftpack.basic (was <function fft at 0x2aaaad972ed8> from
>>numpy.dft.fftpack)
>>Overwriting ifft=<function ifft at 0x2aaaaf186398> from
>>scipy.fftpack.basic (was <function inverse_fft at 0x2aaaad972f50> from
>>numpy.dft.fftpack)
>>Segmentation fault
>>rpp@rafael:~$
>>
>>Scipy whithout ploting works fine and very fast, but allways I try to
>>import pylab I get the segmentation fault.
>>
>>Thak's a lot Robert
>>
>>Rafael perez
>> 
>>
I install matplotlib-0.86.1 instead of matplotlib-0.86.2 and it works.
Thanks
Rafael Perez
From: Alan G I. <ai...@am...> - 2006年02月16日 18:45:14
On 2006年2月16日, "Randewijk P-J " <pjr...@su...> apparently wrote: 
> To facilitate getting some overview it would be ideal to 
> be able to insert page breaks after each figure. Is this 
> somehow possible with matplotlib (using the pylab 
> interface)?
If you produce PDF you can concatenate them with pdftk.
Cheers,
Alan Isaac
From: Darren D. <dd...@co...> - 2006年02月16日 14:09:56
On Thursday 16 February 2006 08:19, Christian Meesters wrote:
> Hi,
>
> Currently I'm using matplotlib on a machine to quickly evaluate whether
> certain settings for a measurement are good or not - as you all know
> graphical output helps. Now, I would like to dump all output in a single
> post script (ps or eps) file and browse through it using ghost view.
>
> To facilitate getting some overview it would be ideal to be able to insert
> page breaks after each figure. Is this somehow possible with matplotlib
> (using the pylab interface)? (To be honest, I don't really expect this. But
> mpl had so many (for me) hidden features in the past, that I wouldn't be
> really surprised ;-). So I thought, I better ask, although I didn't find
> anything about it in the docs.)
At one time, someone included some support in backend_ps.print_figure for 
passing a file object rather than a file name. For a file object, 
print_figure just appends to the existing file. I dont know how to use this 
properly, passing a file object to savefig raises an error.
Darren
From: Christian M. <mee...@un...> - 2006年02月16日 13:32:27
Oh yes, this is an idea. Could have been mine ...
Bedankt,
Christian
On Thursday 16 February 2006 14:24, Randewijk P-J <pjr...@su...> wrote:
> If you have LaTeX on your machine, this could easily be done using
> python & LaTeX...
>
From: Randewijk P-J <pjr...@su...> - 2006年02月16日 13:24:51
If you have LaTeX on your machine, this could easily be done using
python & LaTeX...
PJR
> -----Original Message-----
> From: mat...@li...=20
> [mailto:mat...@li...] On=20
> Behalf Of Christian Meesters
> Sent: 16 February 2006 15:20
> To: mat...@li...
> Subject: [Matplotlib-users] new page with postscript output?
>=20
>=20
> Hi,
>=20
> Currently I'm using matplotlib on a machine to quickly=20
> evaluate whether=20
> certain settings for a measurement are good or not - as you all know=20
> graphical output helps. Now, I would like to dump all output=20
> in a single post=20
> script (ps or eps) file and browse through it using ghost view.
>=20
> To facilitate getting some overview it would be ideal to be=20
> able to insert=20
> page breaks after each figure. Is this somehow possible with=20
> matplotlib=20
> (using the pylab interface)? (To be honest, I don't really=20
> expect this. But=20
> mpl had so many (for me) hidden features in the past, that I=20
> wouldn't be=20
> really surprised ;-). So I thought, I better ask, although I=20
> didn't find=20
> anything about it in the docs.)
>=20
> TIA
> Christian
>=20
>=20
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep=20
> through log files for problems? Stop! Download the new AJAX=20
> search engine that makes searching your log files as easy as=20
> surfing the web. DOWNLOAD SPLUNK!=20
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&
dat=3D121642
_______________________________________________
Matplotlib-users mailing list Mat...@li...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Christian M. <mee...@un...> - 2006年02月16日 13:19:58
Hi,
Currently I'm using matplotlib on a machine to quickly evaluate whether 
certain settings for a measurement are good or not - as you all know 
graphical output helps. Now, I would like to dump all output in a single post 
script (ps or eps) file and browse through it using ghost view.
To facilitate getting some overview it would be ideal to be able to insert 
page breaks after each figure. Is this somehow possible with matplotlib 
(using the pylab interface)? (To be honest, I don't really expect this. But 
mpl had so many (for me) hidden features in the past, that I wouldn't be 
really surprised ;-). So I thought, I better ask, although I didn't find 
anything about it in the docs.)
TIA
Christian
From: Tobias H. <hil...@li...> - 2006年02月16日 11:21:47
Am Donnerstag, 16. Februar 2006 10:24 schrieb Tobias Hilbricht:
> got error messages. I have python2.3-numeric and python2.3-numarray
> installed
> under /usr/lib/python2.3/site-packages/Numeric
> and /usr/lib/python2.3/site-packages/numarray, respectively.
Hello Nils,
I found the reason for the error message - in Debian python2.3-numeric is not 
enough, python2.3-numeric-ext is also required for matplotlib to work.
Sorry for bothering you, thanks for trying to help me!
Yours sincerely
Tobias Hilbricht
-- 
Dr. Tobias Hilbricht
Linopus Satz und Grafik
www.linopus.de
From: Tobias H. <hil...@li...> - 2006年02月16日 09:15:46
Dear readers of this list,
I compiled and installed matplotlib-0.86.2 on a Debian Sarge GNU/Linux system. 
I can run some examples, e.g. agg_test.py or glyph_to_path.py, however, most 
examples end with an error message like this:
tobias@phoebus:~/matplotlib-0.86.2/examples$ python simple_plot.py
Traceback (most recent call last):
 File "simple_plot.py", line 6, in ?
 from pylab import *
 File "/usr/local/lib/python2.3/site-packages/pylab.py", line 1, in ?
 from matplotlib.pylab import *
 File "/usr/local/lib/python2.3/site-packages/matplotlib/pylab.py", line 195, 
in ?
 import cm
 File "/usr/local/lib/python2.3/site-packages/matplotlib/cm.py", line 5, in ?
 import colors
 File "/usr/local/lib/python2.3/site-packages/matplotlib/colors.py", line 33, 
in ?
 from numerix import array, arange, take, put, Float, Int, where, \
 File 
"/usr/local/lib/python2.3/site-packages/matplotlib/numerix/__init__.py", line 
62, in ?
 from Matrix import Matrix
ImportError: No module named Matrix
I reinstalled matplotlib according to the matplotlib-FAQ and tested again and 
got the same error message. I also changed in ~./matplotlib/matplotlibrc 
numerix from Numeric to numpy or numarray, but I got similar error messages.
I have python2.3-numeric and python2.3-numarray installed 
under /usr/lib/python2.3/site-packages/Numeric 
and /usr/lib/python2.3/site-packages/numarray, respectively.
What do I have to do to get matplotlib running?
Thanks for helpful hints in advance!
Yours sincerely
Tobias Hilbricht
-- 
Dr. Tobias Hilbricht
Linopus Satz und Grafik
www.linopus.de
5 messages has been excluded from this view by a project administrator.

Showing results of 353

<< < 1 .. 4 5 6 7 8 .. 15 > >> (Page 6 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 によって変換されたページ (->オリジナル) /