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





Showing results of 446

<< < 1 .. 10 11 12 13 14 .. 18 > >> (Page 12 of 18)
From: Charlie M. <cw...@gm...> - 2008年06月13日 15:35:56
 I am out of town and won't be able to address this until early next week.
- Charlie
2008年6月12日 John Hunter <jd...@gm...>:
> On Thu, Jun 12, 2008 at 2:58 PM, İsmail Dönmez <is...@na...> wrote:
> > Hi all,
> >
> > I was trying matplotlib 0.98.0 and Qt4 backend works great but Coca
> > backend seems to be broken :
>
> Charlie,
>
> any chance you can try and port cocoaagg over to the new trunk api.
> figure.dpi is no longer a lazy value, but a plain ol number. There
> are probably a few other changes that will need to be made as well.
> I'd like to clear up as many of these problems as we can and shoot for
> a bugfix release next week.
>
> JDH
>
From: James A. B. <jb...@se...> - 2008年06月13日 15:12:43
On 2008年6月13日, John Hunter wrote:
> On Thu, Jun 12, 2008 at 9:21 PM, James A. Benson
> wrote:
>>
>> My app uses the wx backend, so I happened to notice
>> that the backend_wx doesn't seem to work with
>> matplotlib 0.98.0. Running the 0.98 example embedding_in_wx.py
>> shows the problem. Only a bit of the lines get plotted. The
>> pan up/down zoom in/out all show various error messages.
>> When i revert back to 0.91.3 and run the same 0.91 example
>> it works fine.
>
> Hey James, we were discussing problems with the wx backend on 0.98
> yesterday on the devel list, and Ken offered to take a look at them,
> so it is possible we will have those fixed for the next bugfix
> release. What wx version are you using?
>
Sorry, I forgot to include that important detail. I
see the problem on a Linux F8 machine with wx version 2.8.7.1
> Note that unless you are running over an x11 connection, there is
> little reason to prefer wx over wxagg, which has better rendering and
> more features. Over an x11 connection, wxagg is slow because it has
> to pass the who bitmap over the wire, but otherwise it works great.
>
> JDH
>
Thanks for the advice and later comments on this thread from
Michael. Sounds like i'm definitely doing the right
thing by switching from the wx backend to perhaps any other backend.
I'm going with the qt4 backend.
Thanks,
Jim
From: Robin <ro...@gm...> - 2008年06月13日 15:12:43
Hi,
I'm not sure if I'm doing something wrong, but I find the sizing of
the axes areas when doing plots a bit problematic.
If I make the figures small, the actual plot area takes up most of the
area and the axes labels aren't visible unless I make the window
bigger. When I export to eps or pdf, they are also cut off.
Is there a way to get the plot area scaled to the figure size in such
a way that the axes labels can be included? I am trying to avoid
having to scale the image when it is included in the document.
Thanks,
Robin
From: Stan W. <sta...@nr...> - 2008年06月13日 13:36:13
Hi, Andrea. Yes, I bet that upgrading would resolve the issue. However,
the issue isn't getting in my way at the moment, since I use the WXAgg
backend and it works well as far as I can tell. I mainly wanted to point
out for informational purposes -- and I may have been unclear about my point
-- that the Enthought Python distribution is currently at wxPython 2.8.4 and
that the WX backend seems not to work at that version.
From: Andrea G. <and...@gm...> - 2008年06月13日 13:31:22
Hi Michael,
On Fri, Jun 13, 2008 at 2:23 PM, Michael Droettboom wrote:
> FWIW, I developed the new wx backend using wx 2.8.6.1, and it does currently
> work for me. Unfortunately, it's always hard to know how to write for a
> broad range of point releases for wxPython -- the documentation offers
> little clues about when features were added or changed.
Then it might be possible that something has changed between 2.8.4.0
(the OP wxPython version) and 2.8.6.0 (yours), although it looks like
a wxWidgets difference rather than a wxPython one...
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
From: Michael D. <md...@st...> - 2008年06月13日 13:24:05
FWIW, I developed the new wx backend using wx 2.8.6.1, and it does 
currently work for me. Unfortunately, it's always hard to know how to 
write for a broad range of point releases for wxPython -- the 
documentation offers little clues about when features were added or changed.
Cheers,
Mike
Andrea Gavana wrote:
> Hi Stan,
>
> On Fri, Jun 13, 2008 at 2:09 PM, Stan West wrote:
> 
>> For what it's worth, the WX backend isn't working for me with wxPython
>> 2.8.4; I get the following when I attempt to show a figure:
>>
>> File "C:\Program
>> Files\Python25\lib\site-packages\matplotlib-0.98.0_r5467-py2.5-win32.egg\mat
>> plotlib\backends\backend_wx.py", line 474, in select
>> self.SelectObject(self.bitmap)
>> AttributeError: GraphicsContextWx instance has no attribute 'SelectObject'
>>
>> I'm at wxPython 2.8.4 simply because it is included with the Enthought
>> Python Distribution that I picked for getting started with Python.
>>
>> However, I don't normally use the WX backend. I've been using WXAgg, so WX
>> is relevant for me only for the functionality inherited by WXAgg.
>> 
>
> Please upgrade wxPython to the latest release (2.8.7.1) from here:
>
> http://www.wxpython.org/download.php#binaries
>
> Or use the very latest pre-release:
>
> http://wxpython.wxcommunity.com/preview/20080608
>
> This will (probably) fix the problem you see with wx.GraphicsContext,
> although I know next to nothing about matplotlib internal handling of
> wxPython things.
>
> Andrea.
>
> "Imagination Is The Only Weapon In The War Against Reality."
> http://xoomer.alice.it/infinity77/
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> 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: Andrea G. <and...@gm...> - 2008年06月13日 13:16:19
Hi Stan,
On Fri, Jun 13, 2008 at 2:09 PM, Stan West wrote:
> For what it's worth, the WX backend isn't working for me with wxPython
> 2.8.4; I get the following when I attempt to show a figure:
>
> File "C:\Program
> Files\Python25\lib\site-packages\matplotlib-0.98.0_r5467-py2.5-win32.egg\mat
> plotlib\backends\backend_wx.py", line 474, in select
> self.SelectObject(self.bitmap)
> AttributeError: GraphicsContextWx instance has no attribute 'SelectObject'
>
> I'm at wxPython 2.8.4 simply because it is included with the Enthought
> Python Distribution that I picked for getting started with Python.
>
> However, I don't normally use the WX backend. I've been using WXAgg, so WX
> is relevant for me only for the functionality inherited by WXAgg.
Please upgrade wxPython to the latest release (2.8.7.1) from here:
http://www.wxpython.org/download.php#binaries
Or use the very latest pre-release:
http://wxpython.wxcommunity.com/preview/20080608
This will (probably) fix the problem you see with wx.GraphicsContext,
although I know next to nothing about matplotlib internal handling of
wxPython things.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
From: Stan W. <sta...@nr...> - 2008年06月13日 13:07:53
For what it's worth, the WX backend isn't working for me with wxPython
2.8.4; I get the following when I attempt to show a figure:
 File "C:\Program
Files\Python25\lib\site-packages\matplotlib-0.98.0_r5467-py2.5-win32.egg\mat
plotlib\backends\backend_wx.py", line 474, in select
 self.SelectObject(self.bitmap)
AttributeError: GraphicsContextWx instance has no attribute 'SelectObject'
I'm at wxPython 2.8.4 simply because it is included with the Enthought
Python Distribution that I picked for getting started with Python.
However, I don't normally use the WX backend. I've been using WXAgg, so WX
is relevant for me only for the functionality inherited by WXAgg.
Stan
From: Michael D. <md...@st...> - 2008年06月13日 12:30:10
Sorry I'm just getting into this discussion now.
The wx backend in 0.98 is almost a complete rewrite to use 
wx.GraphicsContext rather than the older wx.DC interface. It was no 
longer possible to move forward with the new rendering infrastructure 
with the wx.DC interface due to lack of support for polycurves. As the 
wx backend is one of the least used, perhaps, it hasn't seen the same 
amount of testing as the others and you're running into the bleeding 
edge. (And some of us still insert an implicit "beta" everytime we see 
the number 0.98... ;)
Note that in my testing, the new wx backend isn't any faster than wxagg 
over an X11 connection, and locally it's *insanely* slow. On Linux it 
uses Cairo, which has the same bitmap transferring issues that Agg has. 
So that eliminates any advantages it may have had. Possibly if one were 
doing some wx.GraphicsContext rendering interleaved with matplotlib 
rendering it might be useful, but I doubt there's any of that in the 
wild. I would strongly suggest we just remove the wx backend at this 
point and move to wxAgg for everything. I advocated this months ago, 
but forgot to follow through on it --->
http://sourceforge.net/mailarchive/message.php?msg_id=4734927C.3060601%40stsci.edu
Local:
WxAgg: 27.5 fps
Wx: 1.8 fps
Wx: 16.8 fps (without clipping)
Network (X11 with compression):
WxAgg: 2.0 fps
Wx: 1.7 fps
Wx: 2.0 fps (without clipping)
Cheers,
Mike
John Hunter wrote:
> On Thu, Jun 12, 2008 at 9:21 PM, James A. Benson
> <jb...@se...> wrote:
> 
>> My app uses the wx backend, so I happened to notice
>> that the backend_wx doesn't seem to work with
>> matplotlib 0.98.0. Running the 0.98 example embedding_in_wx.py
>> shows the problem. Only a bit of the lines get plotted. The
>> pan up/down zoom in/out all show various error messages.
>> When i revert back to 0.91.3 and run the same 0.91 example
>> it works fine.
>> 
>
> Hey James, we were discussing problems with the wx backend on 0.98
> yesterday on the devel list, and Ken offered to take a look at them,
> so it is possible we will have those fixed for the next bugfix
> release. What wx version are you using?
>
> Note that unless you are running over an x11 connection, there is
> little reason to prefer wx over wxagg, which has better rendering and
> more features. Over an x11 connection, wxagg is slow because it has
> to pass the who bitmap over the wire, but otherwise it works great.
>
> JDH
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> 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: John H. <jd...@gm...> - 2008年06月13日 12:14:59
On Fri, Jun 13, 2008 at 5:24 AM, Jatinder Syali <jat...@ya...> wrote:
> Hi all,
>
> I am trying to create pie chart using matplotlib. I have 9 items to be
> plotted in the chart. sometimes the length of the lable appears to be long
> which scatteres them in the chart. Is there any way to create a link/line
> between label and its pie to make the represenation meaningfull and obvi
Someone recently posted a patch to use left or right alignment of text
depending on which side of he pie you are on. I think Michael was
going to commit that if noone objected, and it seems like a good idea
to me. That will probably help. The main poblem I see problem in
your example is the labeldistance is too large, try 1.1 or 0.9 and see
if that helps.
JDH
From: John H. <jd...@gm...> - 2008年06月13日 12:08:15
On Fri, Jun 13, 2008 at 2:43 AM, Dan Murphy <chi...@ma...> wrote:
>>>> import scipy
>>>> scipy.test('1','10')
> gave me this
> Traceback (most recent call last):
> ImportError: Need nose >=0.10 for tests - see
This is just an error in the testing framework. Apparently you need
to upgrade to nose 0.1 to run the tests. It looks like scipy built
and installed correctly since you could import it. If you want to run
the tests, go ahead and upgrade nose, but it is not essential.
> Any thoughts? Since scipy did not seem to install correctly, I did not move
> on to the matplotlib step. Can I move on to matplotlib without scipy?
Sorry I wasn't clear. This installation page is for building a
standard set of tools (MINS - matplotlib, ipython, numpy, scipy) we
use in a course we teach on scientific computing in python.
matplotlib does not require ipython or scipy (but you'll be glad you
have them!). You can proceed with the matplotlib build instructions.
JDH
PS, please always keep your replies on list rather than just replying to me.
From: John H. <jd...@gm...> - 2008年06月13日 11:57:39
On Thu, Jun 12, 2008 at 8:56 PM, T J <tj...@gm...> wrote:
> I am making a scatter plot and want the legend to display the symbols.
> This functionality doesn't seem to exist, so I have followed the
> workaround outlined here:
>
> http://www.nabble.com/Legend-for-a-scatter-plot-based-on-symbols-td17554839.html#a17554839
>
> Are there any plans to make the symbols which are available in plot()
> the same as those available for scatter()? If not, can we at least
> get the diamond symbol the same? I want to pass the same symbol to
> plot() and scatter() and get the same symbol---as it is, I must use
> 'd' in scatter and 'D' in plot.
I think this is worth fixing -- could you file a bug on the
sourceforge site and note any symbols you are aware of that don't
agree between plot and scatter.
>
> Also, how are the markersizes scaled? For example, in scatter(), I am
> using s=30...but if I do plot(...,markersize=30), then the markers are
> not the same size as the markers from the scatter plot. I can go back
> and forth until the scale is right, but is there a better way?
Note sure if this is a bug or a feature, but it is a consequence of
emulating the matlab approach. In scatter, the size often is used to
convey information, and the size parameter give thes area of the
circle that circumscribes the marker. In plot, he marker size is not
generally intended to convey information, only that something happened
here, and the size choice is usually one of aesthetics. In any case,
in plot the size is radius of the circle, the side of the square or
diamond. For most markers, you should be able to square the
markersize to get approximate correspondence between plot and scatter.
JDH
From: John H. <jd...@gm...> - 2008年06月13日 11:49:12
On Thu, Jun 12, 2008 at 9:21 PM, James A. Benson
<jb...@se...> wrote:
>
> My app uses the wx backend, so I happened to notice
> that the backend_wx doesn't seem to work with
> matplotlib 0.98.0. Running the 0.98 example embedding_in_wx.py
> shows the problem. Only a bit of the lines get plotted. The
> pan up/down zoom in/out all show various error messages.
> When i revert back to 0.91.3 and run the same 0.91 example
> it works fine.
Hey James, we were discussing problems with the wx backend on 0.98
yesterday on the devel list, and Ken offered to take a look at them,
so it is possible we will have those fixed for the next bugfix
release. What wx version are you using?
Note that unless you are running over an x11 connection, there is
little reason to prefer wx over wxagg, which has better rendering and
more features. Over an x11 connection, wxagg is slow because it has
to pass the who bitmap over the wire, but otherwise it works great.
JDH
From: Anton F. <dat...@ca...> - 2008年06月13日 10:23:30
Hello, matplotlib-users.
 Hi! I'm using matplotlib to display dynamic graph of incoming data.
 Separate window with embedded graph in it.
 Everything okay, except of too much, or too less space available for
graph data, since it passed as percentage. For my case better to say
that 20px from left and 20px from bottom are for axes, everything
other is graph data. Is that possible with matplotlib? Or only handle
resize request and update percentage as needed?
-- 
Best regards,
 Anton
 Call2Ru Service
 dat...@ca...
From: James A. B. <jb...@se...> - 2008年06月13日 02:21:30
 My app uses the wx backend, so I happened to notice
that the backend_wx doesn't seem to work with
matplotlib 0.98.0. Running the 0.98 example embedding_in_wx.py
shows the problem. Only a bit of the lines get plotted. The
pan up/down zoom in/out all show various error messages.
When i revert back to 0.91.3 and run the same 0.91 example
it works fine.
 Not a big deal for me (perhaps the only person still using
the wx backend), i'm in the process of switching my app to qt4
and the embedding_in_qt4.py example works fine in 0.98.
Jim
From: T J <tj...@gm...> - 2008年06月13日 01:56:28
I am making a scatter plot and want the legend to display the symbols.
 This functionality doesn't seem to exist, so I have followed the
workaround outlined here:
http://www.nabble.com/Legend-for-a-scatter-plot-based-on-symbols-td17554839.html#a17554839
Are there any plans to make the symbols which are available in plot()
the same as those available for scatter()? If not, can we at least
get the diamond symbol the same? I want to pass the same symbol to
plot() and scatter() and get the same symbol---as it is, I must use
'd' in scatter and 'D' in plot.
Also, how are the markersizes scaled? For example, in scatter(), I am
using s=30...but if I do plot(...,markersize=30), then the markers are
not the same size as the markers from the scatter plot. I can go back
and forth until the scale is right, but is there a better way?
Thanks.
From: John H. <jd...@gm...> - 2008年06月12日 21:47:43
On Thu, Jun 12, 2008 at 4:19 PM, T J <tj...@gm...> wrote:
> I just updated my version of matplotlib to r5496, and now when I type
> show(), nothing happens. What could have gone wrong? Sorry if this is
> simple. I've attached a log of the installation.
Try
 > rm -rf build
 > rm -rf /path/to/site-packages/matplotlib*
 > svn up
 > python setup.py install > build.out
 > python examples/pylab_examples/simple_plot.py --verbose-debug > run.out
and post build.out and run.out.
Also, please post svn problems to the matplotlib-devel list
http://lists.sourceforge.net/mailman/listinfo/matplotlib-devel
From: T J <tj...@gm...> - 2008年06月12日 21:19:45
Attachments: typescript
I just updated my version of matplotlib to r5496, and now when I type
show(), nothing happens. What could have gone wrong? Sorry if this is
simple. I've attached a log of the installation.
t
From: John H. <jd...@gm...> - 2008年06月12日 20:27:13
On Thu, Jun 12, 2008 at 2:58 PM, İsmail Dönmez <is...@na...> wrote:
> Hi all,
>
> I was trying matplotlib 0.98.0 and Qt4 backend works great but Coca
> backend seems to be broken :
Charlie,
any chance you can try and port cocoaagg over to the new trunk api.
figure.dpi is no longer a lazy value, but a plain ol number. There
are probably a few other changes that will need to be made as well.
I'd like to clear up as many of these problems as we can and shoot for
a bugfix release next week.
JDH
From: İ. D. <is...@na...> - 2008年06月12日 19:58:50
Hi all,
I was trying matplotlib 0.98.0 and Qt4 backend works great but Coca
backend seems to be broken :
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy import lena
>>> import matplotlib
>>> matplotlib.use("CocoaAgg")
>>> import pylab
>>> pylab.imshow(lena())
<matplotlib.image.AxesImage object at 0x2ac0a10>
>>> pylab.show()
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_cocoaagg.py",
line 46, in show
 manager.show()
 File "/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_cocoaagg.py",
line 205, in show
 NSApplication.sharedApplication().run()
 File "/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_cocoaagg.py",
line 181, in startWithBundle_
 if not bundle.loadNibFile_externalNameTable_withZone_('Matplotlib.nib',
{}, None):
 File "/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_cocoaagg.py",
line 88, in awakeFromNib
 self.plotView.windowDidResize_(self)
 File "/Library/Python/2.5/site-packages/matplotlib-0.98.0-py2.5-macosx-10.3-i386.egg/matplotlib/backends/backend_cocoaagg.py",
line 137, in windowDidResize_
 dpi = self.canvas.figure.dpi.get()
AttributeError: 'int' object has no attribute 'get'
>>>
Any ideas?
Regards,
ismail
-- 
Never learn by your mistakes, if you do you may never dare to try again.
From: Christopher B. <Chr...@no...> - 2008年06月12日 16:24:57
John Hunter wrote:
> Could you try the instructions at:
> 
> http://ipython.scipy.org/moin/Py4Science/InstallationOSX
Minor note on that:
"""
I installed
wxPython2.8-osx-unicode-2.8.3.0-universal10.4-py2.5.dmg from the 
pythonmac site and am crossing my fingers that I don't find myself 
entangled in wx version hell.
"""
recent version of the wx back-end no longer rely on compiled code, so wx 
version hell is a think of the past (you will get better performance 
with wx 2.8+, though).
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (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...> - 2008年06月12日 16:18:25
John Hunter wrote:
> Could you try the instructions at:
> 
> http://ipython.scipy.org/moin/Py4Science/InstallationOSX
note that these only work on OS-X 10.5 (which was the OP's question).
However, the key issue is if you are building it just for yourself, or 
if you want to be able to re-distribute either your build or 
applications built from it via py2app, etc.
If the latter, you want Charlie Moad's page:
http://ipython.scipy.org/moin/MatplotlibOSXBuildNotes
However, it really is a lot easier to just install the binary egg found 
here:
http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=603020
It's called:
 	matplotlib-0.98.0-py2.5-macosx-10.3.egg
the "10.3" means "10.3 or greater".
you may need to re-name it:
matplotlib-0.98.0-py2.5.egg
then:
$ easy_install matplotlib-0.98.0-py2.5.egg
(I may not have the re-naming right, I'm not running 10.5 to test.)
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: John H. <jd...@gm...> - 2008年06月12日 14:00:04
On Thu, Jun 12, 2008 at 1:11 AM, Dan Murphy <chi...@ma...> wrote:
> I tried to follow the directions per
>
> % python setup.py build
> % python setup.py install
Could you try the instructions at:
http://ipython.scipy.org/moin/Py4Science/InstallationOSX
and let us know how it goes?
Thanks,
JDH
From: Michael D. <md...@st...> - 2008年06月12日 12:02:32
If you can find a way to create a minimal script, that would be better, 
because then we can verify the fix.
But barring anything else, seeing the .eps might help.
Cheers,
Mike
Michael Hearne wrote:
> John - Thanks for the quick fix. I'm having a separate issue now with 
> an EPS file being generated (using savefig() again) that appears to be 
> invalid (can't display it in OS X Preview, or convert to PDF with 
> ps2pdf). Unfortunately, the code that creates this particular file is 
> rather involved, and hard to replicate with one simple script.
>
> If I send the offending EPS file (it's 1.4 MB zipped), is it possible to 
> tell from that what the problem is?
>
> The errors from ps2pdf are:
> Error: /undefined in --get--
> Operand stack:
> true --dict:43/43(ro)(L)-- .notdef
> Execution stack:
> %interp_exit .runexec2 --nostringval-- --nostringval-- 
> --nostringval-- 2 %stopped_push --nostringval-- 
> --nostringval-- --nostringval-- false 1 %stopped_push 1905 
> 1 3 %oparray_pop 1904 1 3 %oparray_pop --nostringval-- 
> 1888 1 3 %oparray_pop 1771 1 3 %oparray_pop 
> --nostringval-- %errorexec_pop .runexec2 --nostringval-- 
> --nostringval-- --nostringval-- 2 %stopped_push 
> --nostringval-- %finish_show --nostringval-- --nostringval-- 5 
> 4 0 --nostringval-- (pdf_text_enum_t) %op_show_continue 
> --nostringval--
> Dictionary stack:
> --dict:1144/1684(ro)(G)-- --dict:0/20(G)-- --dict:75/200(L)-- 
> --dict:61/112(L)-- --dict:20/25(ro)(L)--
> Current allocation mode is local
> Last OS error: 2
> Current file position is 996122
> GPL Ghostscript 8.61: Unrecoverable error, exit code 1
>
> --Mike
>
> John Hunter wrote:
> 
>> On Wed, Jun 11, 2008 at 10:14 AM, John Hunter <jd...@gm...> wrote:
>>
>> 
>> 
>>> Interesting. When I plot it on my screen it looks correct with a *Agg
>>> GUI backend. But when I save it (either from the GUI or using
>>> savefig) it has the problem you describe. This suggests to me that
>>> either some cached information or something is not getting notified of
>>> the different default dpi in savefig. I'll look into it. Since PS is
>>> dpi independent, it would not affect it.
>>> 
>>> 
>> Well, my diagnosis wasn't correct, but I fixed the problem. In the
>> caching of the text layout, we were not taking into account the
>> different renderers in the cache key. Since PS has a nominal dpi
>> setting that is ignored by postscript, the differences in dpi were not
>> getting picked up in the layout cache. The solution I implemented was
>> to simply add the renderer id to the property tuple used for caching.
>> Fixed in svn r5470.
>>
>> JDH
>> 
>> 
>
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Fabrice S. <si...@lm...> - 2008年06月12日 10:43:22
Hi folks
Using version 0.91.2, I do not manage to push ticks labels to the right
side of the axis, keeping ticks lines on both sides. How can I do it ?
Another question : 
I have two subplot "in-line" (121 and 122) sharing the same yaxis.
How would you set a single set of yticks labels displayed between the
axes ?
-- 
Fabrice Silva <si...@lm...>
LMA UPR CNRS 7051 - équipe S2M
4 messages has been excluded from this view by a project administrator.

Showing results of 446

<< < 1 .. 10 11 12 13 14 .. 18 > >> (Page 12 of 18)
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 によって変換されたページ (->オリジナル) /