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

Showing 10 results of 10

From: Fernando P. <fpe...@gm...> - 2006年09月12日 23:08:21
On 9/12/06, Henock Abebe <ha...@sm...> wrote:
>
> Hi,
>
> I just installed matplot and the required packages and I am having
> a problem performing a simple plot. I would be grateful for any help
> that I can get. I am using the default setting in the file matplotlibrc,
> I tried setting 'interactive' to both True and False without any success.
>
> Here is the output when running simple_plot.py
>
> In [2]: import simple_plot
In ipython, to run a script as if you were at the system prompt, use
run simple_plot
instead of 'import'. As long as you started ipython as
ipython -pylab
to enable the automatic matplotlib support, you should be fine (report
otherwise).
regards,
f
From: Henock A. <ha...@sm...> - 2006年09月12日 23:03:34
Hi,
I just installed matplot and the required packages and I am having
a problem performing a simple plot. I would be grateful for any help
that I can get. I am using the default setting in the file matplotlibrc,
I tried setting 'interactive' to both True and False without any =
success.
Here is the output when running simple_plot.py
In [2]: import simple_plot
loaded rc file /home/henock/.matplotlib/matplotlibrc
matplotlib version 0.87.5
verbose.level helpful
interactive is True
platform is linux2
numerix numpy 1.0b5
font search path =
['/usr/local/lib/python2.4/site-packages/matplotlib/mpl-data']
$HOME=3D/home/henock
CONFIGDIR=3D/home/henock/.matplotlib
loaded ttfcache file /home/henock/.matplotlib/ttffont.cache
matplotlib data path =
/usr/local/lib/python2.4/site-packages/matplotlib/mpl-data
backend Agg version v2.2
Am I missing something here. After the show() function is executed there =
is no plot
whatsoever.
Thanks,
Henock
From: Kenny O. <ya...@em...> - 2006年09月12日 20:26:50
hey im trying to build an exe of my program and i have this as my setup file,
from distutils.core import setup
import py2exe
from distutils.filelist import findall
import os
import matplotlib
matplotlibdatadir = matplotlib.get_data_path()
matplotlibdata = findall(matplotlibdatadir)
matplotlibdata_files = []
for f in matplotlibdata:
 dirname = os.path.join('matplotlibdata', f[len(matplotlibdatadir)+1:])
 matplotlibdata_files.append((os.path.split(dirname)[0], [f]))
opts = {
 "py2exe": {
 "packages" : ['matplotlib', 'pytz'],
 "includes": [],
 "excludes": ['_gtkagg', '_tkagg'],
 "dll_excludes": ['libgdk-win32-2.0-0.dll',
 'libgobject-2.0-0.dll']
 }
}
setup(
 console=['templatewindow.py'],
 options=opts,
 data_files=matplotlibdata_files
)
The first time i ran this I received an error
error: libgdk_pixbuf-2.0-0.dll: No such file or directory
so out of curiousity i put this in the dll_excludes
'libgdk_pixbuf-2.0-0.dll'
then i received this.
error: wxmsw26uh_vc.dll: No such file or directory
Has anyone successfully created an exe with matplotlib? I am on windows
with the latest mpl, numpy and scipy, and python 2.4
i konw this may be more suited for py2exe mailing list but I thought maybe
one of you may be able to help me.
~Kenny
From: Barry W. <bar...@gm...> - 2006年09月12日 19:21:12
Attachments: example.pdf
I'm trying to make 2D figures with "split" axes with matplotlib. I've
included an example, produced in Igor Pro. Is such a thing possible?
Before diving into the inner guts of plot and axes drawing, I thought
I would ask if it's 1, possible and 2, already solved.
If this is a FAQ or otherwise documented, I'd be happy for a link.
Thanks!
Barry
From: John H. <jdh...@ac...> - 2006年09月12日 16:25:36
>>>>> "David" == David Huard <dav...@gm...> writes:
 David> Hi, I'm a little bit lost with respect to setting the
 David> resolution of images saved in png. The matplotlibrc file
 David> sets the dpi to 80, but the default keyword argument of
 David> savefig is set to 150. Thus, changing the rc setting to
 David> dpi=300 does not modify savefig's default behaviour. Is
 David> there a way to set a default dpi that would be used when
 David> calling savefig ?
Have you tried modifying the rc setting 
savefig.dpi : 100 # figure dots per inch
Should work..
JDH
From: David H. <dav...@gm...> - 2006年09月12日 16:16:25
Hi,
I'm a little bit lost with respect to setting the resolution of images saved
in png.
The matplotlibrc file sets the dpi to 80, but the default keyword argument
of savefig is set to 150. Thus, changing the rc setting
to dpi=300 does not modify savefig's default behaviour. Is there a way to
set a default dpi that would be used when calling savefig ?
Thanks,
David
From: Christopher B. <Chr...@no...> - 2006年09月12日 15:50:33
Ken McIvor wrote:
> Unfortunately, I don't think wxWidgets exposes the functionality for 
> displaying a wx.ToolTip.
Yes, it does, though I haven't used it:
wx.TipWindow
Shows simple text in a popup tip window on creation. This is used by 
wx.SimpleHelpProvider to show popup help. The window automatically 
destroys itself when the user clicks on it or it loses the focus.
You may also use this class to emulate the tooltips when you need finer 
control over them than what the standard tooltips provide.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
 		
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Charlie M. <cw...@gm...> - 2006年09月12日 13:46:45
> After some progress in installing matplotlib (after solving the numpy
> problem, thanks), I've hit another obstacle. Again, perhaps someone will
> recognise the symptoms or suggest the next place to look. The technical set
> up: OSX 10.4, MPL 0.87.5, numeric, numarray and numpy 1.0b5 installed,
> intel MacBook.
>
> The issue: matplotlib installs but when pylab is imported, I get: :
>
> 14:28:56: Debug: ../src/common/object.cpp(224): assert
> "sm_classTable->Get(m_className) == NULL" failed: class
> already in RTTI table - have you used IMPLEMENT_DYNAMIC_CLASS() twice (may
> be by linking some object module(s) twice)?
> ../src/common/object.cpp(224): assert
> "sm_classTable->Get(m_className) == NULL" failed: class
> already in RTTI table - have you used IMPLEMENT_DYNAMIC_CLASS() twice (may
> be by linking some object module(s) twice)?
> Trace/BPT trap
>
> and then dumped to the CLI. ``sm_classTable`` appears to be defined in the
> wxagg backend.
Do you have the universal wxpython installed? If so, make sure you
set WX_CONFIG to point to the correct wx-config executable.
> When matplotlib is built, I get a bunch of warnings like::
>
> /usr/bin/ld: for architecture ppc
> /usr/bin/ld: warning fat file:
> /usr/local/lib/libgcc_s.10.4.dylib does not contain an
> architecture that matches the specified -arch flag: ppc (file ignored)
I am guessing you are on an intel machine. These can safely be ignored.
> when linking various agg and _nc_transforms pieces, as well as::
>
> src/_ns_backend_agg.cpp:41:1: warning: "M_PI" redefined
> In file included from /usr/include/math.h:26,
> from
> /Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/cmath:52,
This should be wrapped with an ifdef, but again they can be ignored for now.
> although these don't terminate the build. It would seem that something is
> getting architectures mixed up, but I can't identify what. Things I've done
> - reinstalled Python (made sure it was universal), updated Developer tools,
> cleared & reinstalled MPL. Any ideas on what to try next?
Sounds like wx is your problem right now, so please try my suggestion above.
- Charlie
From: Paul-Michael A. <mp...@ag...> - 2006年09月12日 13:28:15
After some progress in installing matplotlib (after solving the numpy 
problem, thanks), I've hit another obstacle. Again, perhaps someone 
will recognise the symptoms or suggest the next place to look. The 
technical set up: OSX 10.4, MPL 0.87.5, numeric, numarray and numpy 
1.0b5 installed, intel MacBook.
The issue: matplotlib installs but when pylab is imported, I get: :
 14:28:56: Debug: ../src/common/object.cpp(224): assert 
"sm_classTable->Get(m_className) == NULL" failed: class already in 
RTTI table - have you used IMPLEMENT_DYNAMIC_CLASS() twice (may be by 
linking some object module(s) twice)?
 ../src/common/object.cpp(224): assert "sm_classTable->Get 
(m_className) == NULL" failed: class already in RTTI table - have you 
used IMPLEMENT_DYNAMIC_CLASS() twice (may be by linking some object 
module(s) twice)?
 Trace/BPT trap
and then dumped to the CLI. ``sm_classTable`` appears to be defined 
in the wxagg backend.
When matplotlib is built, I get a bunch of warnings like::
 /usr/bin/ld: for architecture ppc
 /usr/bin/ld: warning fat file: /usr/local/lib/libgcc_s.10.4.dylib 
does not contain an architecture that matches the specified -arch 
flag: ppc (file ignored)
when linking various agg and _nc_transforms pieces, as well as::
 src/_ns_backend_agg.cpp:41:1: warning: "M_PI" redefined
 In file included from /usr/include/math.h:26,
 from /Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/ 
cmath:52,
although these don't terminate the build. It would seem that 
something is getting architectures mixed up, but I can't identify 
what. Things I've done - reinstalled Python (made sure it was 
universal), updated Developer tools, cleared & reinstalled MPL. Any 
ideas on what to try next?
p
--
Dr Paul-Michael Agapow, VieDigitale / Institute of Animal Health
pm...@vi... / pau...@bb...
From: <axe...@bn...> - 2006年09月12日 10:11:10
Hi,
I run python + pylab in Linux.
When I type:
>>> import pylab
>>> pylab.plot([1,2,3])
A window pops up but nothing is drawn in it (!?!). So I type:
>>> pylab.draw()
The plot is then correctly drawn ( but I still do not see the lower 
buttons of the toolbar !?!)
My problem is that I cannot close the plot window nor by clicking the 
"upper-right-cross" button of that wndow, nor by typing:
>>> pylab.close()
The window remains displayed...
Does anyone have an idea where this behavior comes from ? I would really 
like to be able to close my plot windows.
I have following lines in matplotlibrc:
backend : GTKAgg
interactive : True
toolbar : toolbar2
Thanks in advance for your support,
Axel
This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 
 ---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.
1 message has been excluded from this view by a project administrator.

Showing 10 results of 10

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