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 results of 277

<< < 1 .. 4 5 6 7 8 .. 12 > >> (Page 6 of 12)
From: Christopher B. <Chr...@no...> - 2006年09月13日 18:57:39
Paul-Michael Agapow wrote:
> there was a previous wx installation on my machine. 
> (Possibly installed by some super-pack or along with some other 
> library.)
Apple put it there. they included a version of wxpython with their 
Python install.
It's out of date, but pretty coll that they did it.
-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: Christopher B. <Chr...@no...> - 2006年09月13日 18:52:57
Martin Spacek wrote:
> Attached is an example file of 
> what I've got running now. It should run on its own. A wx tooltip pops 
> up whenever the mouse is over the axes.
cool.
I had to make a change to get it to run:
mpl.use('WXAgg') has to come before "import pylab"
once running, it's not working quite right: the tooltip always is at the 
bottom of the Window, though it does track the X location.
oddly it looks likeit's getting it's coords in figure units (0 to 1), 
whcih shouldn't work with a wxWindow.
Also, I'm getting the tooltip even when the window doesnot have focus 
and is under other windows -- at least when the mouse is over an exposed 
part of the window. That's probably a wx issue.
Python 2.4.3
 >> wx.__version__
'2.6.3.0'
 >>> matplotlib.__version__
'0.87.5'
wxGTK on on Fedora core 4 linux.
-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: R. P. S. <R.S...@um...> - 2006年09月13日 17:41:08
> Have you thought about combining the dendrogram with a
> heatmap/colormap (e.g.
> http://www2.warwick.ac.uk/fac/sci/moac/currentstudents/peter_cock/python/heatmap/)?
> Could ClusterPlot be combined with pcolor() to do this?
To be honest, I haven't thought about doing anything like this. While 
I'm using the Pycluster package to do my cluster analysis, I'm actually 
doing research in Physics Education, not genetics. As a result, I've 
never even seen diagrams like the one shown in the above link before. 
Looking at it, however, I imagine that with the judicious use of 
subplots, ClusterPlot could create the dendrograms in those images. 
Once direction control is added to ClusterPlot, that is.
At this point I have thought about only two further extensions to 
ClusterPlot. The first is the afore mentioned one: allowing control of 
the direction of the dendrogram. Once that's implemented, I'd consider 
the code to be out of the beta stage. The other extension would be a 
modification to the coordinates function so that the vertical 
coordinates of the dendrogram don't have to follow the Pycluster 
distances in the tree. Pycluster doesn't support having anything other 
than a distance measure in that slot. Now, while Pycluster does have 8 
different distance measures, I can imagine cases where one would prefer 
to spread the tree by a dissimilarity measure or some other metric. 
This modification should be simple enough to make, so it'll probably be 
included in the next update (which might come before full release).
Finally, concerning the license discussion, I've posted version 0.6 
which is released under the BSD-style license. Version 0.5, with its 
GPL license has been removed from the download site.
http://www.umit.maine.edu/~r.springuel/000CCFE8-80000018/
-- 
R. Padraic Springuel
Teaching Assistant
Department of Physics and Astronomy
University of Maine
Bennett 309
Office Hours: Wednesday 2-3pm
From: R. P. S. <R.S...@um...> - 2006年09月13日 16:25:48
I chose the GPL because it was the open source license I was aware of 
and didn't realize that it would create problems with reusability of the 
code. It is not my intention to restrict people from reusing the code. 
 Indeed, I'd much prefer that people did reuse the code. Since that 
appears to mean switching to a BSD style license, I'll make that switch.
-- 
R. Padraic Springuel
Teaching Assistant
Department of Physics and Astronomy
University of Maine
Bennett 309
Office Hours: Wednesday 2-3pm
From: John H. <jdh...@ac...> - 2006年09月13日 14:00:42
>>>>> "Yannick" == Yannick Copin <y....@ip...> writes:
 Yannick> Hi,
 >>>>>>> >>>>> "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
 Yannick> On a related issue: when exporting a figure from the
 Yannick> tkagg backend (using the appropriate button) to PNG, the
 Yannick> dpi is arbitrirarily set to 300 (see backend_tkagg.py in
 Yannick> NavigationToolbar2TkAgg.save_figure):
 Yannick> self.canvas.print_figure(fname, dpi=300)
 Yannick> I think it should honor the savefig.dpi rc setting:
 Yannick> self.canvas.print_figure(fname,
 Yannick> dpi=rcParams['savefig.dpi'])
Yep -- this is a bug in my view. pylab.savefig and fig.avefig respect
the setting, but canvas.print_figure did not. I updated the following
backends:
Sending matplotlib/lib/matplotlib/backend_bases.py
Sending matplotlib/lib/matplotlib/backends/backend_agg.py
Sending matplotlib/lib/matplotlib/backends/backend_fltkagg.py
Sending matplotlib/lib/matplotlib/backends/backend_gtk.py
Sending matplotlib/lib/matplotlib/backends/backend_gtkagg.py
Sending matplotlib/lib/matplotlib/backends/backend_qt4agg.py
Sending matplotlib/lib/matplotlib/backends/backend_qtagg.py
Sending matplotlib/lib/matplotlib/backends/backend_template.py
Sending matplotlib/lib/matplotlib/backends/backend_tkagg.py
Sending matplotlib/lib/matplotlib/backends/backend_wx.py
Sending matplotlib/lib/matplotlib/backends/backend_wxagg.py
Sending matplotlib/lib/matplotlib/figure.py
Those of you with svn access please give it a test drive on your
favorite backends to make sure it is behaving properly. I was able to
test several...
JDH
From: Paul-Michael A. <mp...@ag...> - 2006年09月13日 08:23:07
Spot on. Thanks Charles - that did the trick (setting WX_CONFIG to 
point to the right place). I had the universal wxpython installed but 
unbeknownst to me there was a previous wx installation on my machine. 
(Possibly installed by some super-pack or along with some other 
library.) Setting the environmental variable WX_CONFIG to the correct 
location (/usr/local/lib/wxPython-unicode-2.6.3.3/bin/wx-config) 
before the build sorted things out.
As an aside, the spurious error messages generated in the build stage 
(warning: "M_PI" redefined, /usr/local/lib/libgcc_s.10.4.dylib does 
not contain an architecture that matches the specified -arch flag: 
ppc, etc.) aren't helpful and may hide any genuine problems. It would 
be nice to have them go away.
Thanks again
p
>> 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.
--
Dr Paul-Michael Agapow, VieDigitale / Institute of Animal Health
pm...@vi... / pau...@bb...
From: Fernando P. <fpe...@gm...> - 2006年09月13日 06:05:21
On 9/12/06, John Hunter <jdh...@ac...> wrote:
Minor correction
> license. Fernando Perez did this with ipython, which was released
> under the LGPL and then re-released under a BSD license to ease
> integration with scipy and other enthought products. The LGPL is
 ^^^
 matplotlib, scipy and...
Integration and free back-and-forth code sharing with you was one of
the main factors behind that decision.
And just to provide a datapoint confirming John's argument, ipython
was one of those cases where I chose LGPL out of pure ignorance and
incomplete understanding.
Regards,
f
From: Henock A. <ha...@sm...> - 2006年09月13日 05:00:34
Thanks I got it working now. I did not read the instructions properly. I was 
not using the
proper backend. I was using one of the image backends when I should have 
been using
the GUI backend.
http://matplotlib.sourceforge.net/backends.html
Henock 
From: PGM <pgm...@gm...> - 2006年09月13日 02:26:27
Try a different backend. If one doesn't work, something went wrong during the 
installation (it happened to me a couple of times, reinstalling from scratch 
seemed to have solve the pb).
From: John H. <jdh...@ac...> - 2006年09月13日 00:51:34
>>>>> "R" =3D=3D R Padraic Springuel <R.S...@um...> writes:
 R> St=E9fan suggested that I include an example script to show
 R> people what the package could do. I thought this was a good
 R> idea, so I wrote one and have uploaded a new version of the
 R> package with the example script. I've also added copyright and
 R> license information, for those that care. =20
Hi this looks very nice. Are you sure you want to go with GPL?
pycluster and the C clustering license, as well as matplotlib, scipy,
and Numeric/numpy, are all based on BSD/PSF compatible licenses, and
so none of these projects can reuse your code if it is GPL.
Here is my "licensing pitch" on why I encourage people not to use the
GPL, written for another project but applicable here...
 I'll start by summarizing what many of you already know about open
 source licenses. I believe this discussion is broadly correct,
 though it is not a legal document and if you want legally precise
 statements you should reference the original licenses cited
 here. The Open-Source-Initiative is a clearing house for OS
 licenses, so you can read more there.
 The two dominant license variants in the wild are GPL-style and
 BSD-style. There are countless other licenses that place specific
 restrictions on code reuse, but the purpose of this document is to
 discuss the differences between the GPL and BSD variants,
 specifically in regards to my experience developing matplotlib and
 in my discussions with other developers about licensing issues.
 The best known and perhaps most widely used license is the GPL,
 which in addition to granting you full rights to the source code
 including redistribution, carries with it an extra obligation. If
 you use GPL code in your own code, or link with it, your product
 must be released under a GPL compatible license. I.e., you are
 required to give the source code to other people and give them the
 right to redistribute it as well. Many of the most famous and widely
 used open source projects are released under the GPL, including
 linux, gcc and emacs.
 The second major class are the BSD-style licenses (which includes
 MIT and the python PSF license). These basically allow you to do
 whatever you want with the code: ignore it, include it in your own
 open source project, include it in your proprietary product, sell
 it, whatever. python itself is released under a BSD compatible
 license, in the sense that, quoting from the PSF license page
 There is no GPL-like "copyleft" restriction. Distributing
 binary-only versions of Python, modified or not, is allowed. There
 is no requirement to release any of your source code. You can also
 write extension modules for Python and provide them only in binary
 form.
 Famous projects released under a BSD-style license in the permissive
 sense of the last paragraph are the BSD operating system, python and
 TeX.
 I believe the choice of license is an important one, and I advocate
 a BSD-style license. In my experience, the most important commodity
 an open source project needs to succeed is users. Of course, doing
 something useful is a prerequisite to getting users, but I also
 believe users are something of a prerequisite to doing something
 useful. It is very difficult to design in a vacuum, and users drive
 good software by suggesting features and finding bugs. If you
 satisfy the needs of some users, you will inadvertently end up
 satisfying the needs of a large class of users. And users become
 developers, especially if they have some skills and find a feature
 they need implemented, or if they have a thesis to write. Once you
 have a lot of users and a number of developers, a network effect
 kicks in, exponentially increasing your users and developers. In
 open source parlance, this is sometimes called competing for mind
 share.
 So I believe the number one (or at least number two) commodity an
 open source project can possess is mind share, which means you want
 as many damned users using your software as you can get. Even though
 you are giving it away for free, you have to market your software,
 promote it, and support it as if you were getting paid for it. Now,
 how does this relate to licensing, you are asking?
 Many software companies will not use GPL code in their own software,
 even those that are highly committed to open source development,
 such as enthought, out of legitimate concern that use of the GPL
 will "infect" their code base by its viral nature. In effect, they
 want to retain the right to release some proprietary code. And in my
 experience, companies make for some of the best developers, because
 they have the resources to get a job done, even a boring one, if
 they need it in their code. Two of the matplotlib backends (FLTK and
 WX) were contributed by private sector companies who are using
 matplotlib either internally or in a commercial product -- I doubt
 these companies would have been using matplotlib if the code were
 GPL. In my experience, the benefits of collaborating with the
 private sector are real, whereas the fear that some private company
 will "steal" your product and sell it in a proprietary application
 leaving you with nothing is not.
 There is a lot of GPL code in the world, and it is a constant
 reality in the development of matplotlib that when we want to reuse
 some algorithm, we have to go on a hunt for a non-GPL version. Most
 recently this occurred in a search for a good contouring
 algorithm. I worry that the "license wars", the effect of which are
 starting to be felt on many projects, have a potential to do real
 harm to open source software development. There are two unpalatable
 options. 1) Go with GPL and lose the mind-share of the private
 sector 2) Forgo GPL code and retain the contribution of the private
 sector. This is a very tough decision because their is a lot of very
 high quality software that is GPL and we need to use it; they don't
 call the license viral for nothing.
 The third option, which is what is motivating me to write this, is
 to convince people who have released code under the GPL to
 re-release it under a BSD compatible license. Package authors retain
 the copyright to their software and have discretion to re-release it
 under a license of their choosing. Many people choose the GPL when
 releasing a package because it is the most famous open source
 license, and did not consider issues such as those raised here when
 choosing a license. When asked, these developers will often be
 amenable to re-releasing their code under a more permissive
 license. Fernando Perez did this with ipython, which was released
 under the LGPL and then re-released under a BSD license to ease
 integration with scipy and other enthought products. The LGPL is
 more permissive than the GPL, allowing you to link with it
 non-virally, but many companies are still loath to use it out of
 legal concerns, and you cannot reuse LGPL code in a proprietary
 product.
 So I encourage you to release your code under a BSD compatible
 license, and when you encounter an open source developer whose code
 you want to use, to do the same. Feel free to forward this document
 on them.
 Comments, suggestions for improvements, corrections, etc, should be
 sent to jdh...@ac...
From: Michael S. <mic...@gm...> - 2006年09月13日 00:16:47
Hi,
Looks very interesting. Is there any chance that this will be
eventually included in MPL? Or at least have a license similar to MPL?
Have you thought about combining the dendrogram with a
heatmap/colormap (e.g.
http://www2.warwick.ac.uk/fac/sci/moac/currentstudents/peter_cock/python/he=
atmap/)?
Could ClusterPlot be combined with pcolor() to do this?
Mike
On 9/12/06, R. Padraic Springuel <R.S...@um...> wrote:
> St=E9fan suggested that I include an example script to show people what
> the package could do. I thought this was a good idea, so I wrote one
> and have uploaded a new version of the package with the example script.
> I've also added copyright and license information, for those that
> care. The most recent version is 0.5 and is downloadable from the same
> site as before:
>
> http://www.umit.maine.edu/~r.springuel/000CCFE8-80000018/
> --
>
> R. Padraic Springuel
> Teaching Assistant
> Department of Physics and Astronomy
> University of Maine
> Bennett 309
> Office Hours: By Appointment only during the Summer
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job ea=
sier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim=
o
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Martin S. <sc...@ms...> - 2006年09月13日 00:14:20
Attachments: wxtooltip_example.py
Thanks for the help Ken and Christopher! Attached is an example file of 
what I've got running now. It should run on its own. A wx tooltip pops 
up whenever the mouse is over the axes. The tooltip's hangs obediently 
off of the bottom right of the mouse cursor. Its string is updated to 
reflect the current position of the mouse in data coordinates.
I'll make a post to the devel list, maybe get this added to the MPL 
examples.
Cheers,
Martin
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.
From: Ken M. <mc...@ii...> - 2006年09月11日 23:25:42
On Sep 11, 2006, at 5:28 PM, Martin Spacek wrote:
>
> I'd like to be able to pop up a tooltip on, say, a matplotlib
> 'motion_notify_event', or maybe just a 'button_press_event'. Does MPL
> have the ability to control tooltips, or do I have to drop down to the
> specific backend to do that (wxagg in my case).
I don't think there's a backend-level API for drawing tooltips.
> If the latter, anyone know off the top of their head how to do this in
> wxagg?
Unfortunately, I don't think wxWidgets exposes the functionality for 
displaying a wx.ToolTip. You might be able to fake it with a 
wx.PopupWindow.
Ken
From: Martin S. <sc...@ms...> - 2006年09月11日 22:28:14
Hi,
I'd like to be able to pop up a tooltip on, say, a matplotlib 
'motion_notify_event', or maybe just a 'button_press_event'. Does MPL 
have the ability to control tooltips, or do I have to drop down to the 
specific backend to do that (wxagg in my case).
If the latter, anyone know off the top of their head how to do this in 
wxagg?
Thanks,
Martin
From: Brinley, C. <Chr...@or...> - 2006年09月11日 20:29:21
Hi,
=20
I am having trouble getting a variation of the tutorial plot_date() to
work. I get the classic: RuntimeError: xdata and ydata must be the same
length.
The tutorial on the matplotlib site shows how to plot dates using whole
days. I am plotting using multiple days showing each minute of the day.=20
Before I run plot_date I setup to datetime vars and subtract them to get
the timedelta so.. timedelta =3D enddate - startdate.
I then use drange(startdate, enddate, timedelta)
I pass this range into the plot_date function with my y axis data, which
I have confirmed is numeric and the same number of entries as the number
of datetimes I want to plot.
Clearly I am incorrectly telling plotlib the intervals of time I want to
plot. What is the best way to plot out an interday chart that has ticks
for each min?
=20
Thanks
2 messages has been excluded from this view by a project administrator.

Showing results of 277

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