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


Showing 10 results of 10

From: Michael M. <mmu...@hu...> - 2008年07月08日 20:47:20
Greetings
I am trying to install matplotlib 0.98.1 on python 2.5.1 on Mac OS X 
10.5.3. The install breaks at the required dependancy numpy 1.1 
because it thinks it has v 1.0.1. I have, in fact, installed numpy 1.1 
and I can't figure out why the matplotlib installer is not seeing it. 
I am not entirely familiar with installing python tools on Macs. Can 
anyone point out a build parameter or a common newbie error or any 
other info so I can resolve the dependancy?
Thanks
Mike
From: <Dir...@in...> - 2008年07月08日 19:51:34
Hello,
I tried to do a stem plot on an Axes with logarithmic scale, experiencing that the stemlines were not drawn...
====axes.py (svn trunk, 2008年07月08日):
def stem(self, x, y, linefmt='b-', markerfmt='bo', basefmt='r-'):
[...]
 stemlines = []
 for thisx, thisy in zip(x, y):
 l, = self.plot([thisx,thisx], [0, thisy], linefmt)
 stemlines.append(l)
After Axes.set_yscale('log'), Axes.stem() no longer draws the stemlines because it tries to draw from y=0, thereby apparently triggering some guard which prevents plotting log(0), hence suppressing the complete stemline.
Dirty hacking, I replace [0, thisy] with [1, thisy] in case yscale=='log' and it works for my plots, but for sure there is more to do to make it robust...
Please give me a heads-up if I just oversaw the Right Way to do a stem plot with logarithmic yscale.
Cheers,
Dirk
From: Eric F. <ef...@ha...> - 2008年07月08日 18:11:16
Yves Revaz wrote:
> Hi all,
> 
> Is there a way to define logarithmic axes when using axes3d ?
> 
> lines like
> ax = axes3d.Axes3D(fig)
> 
> ax.semilogx()
> or
> ax.set_xscale('log')
> 
> fail !
> 
> Thanks,
> 
> yves
> 
You are on your own with axes3d. It has been unmaintained for a long 
time, and therefore it has been removed from the svn trunk.
Eric
From: Michael D. <md...@st...> - 2008年07月08日 17:21:10
Thanks for the report. It's a bit convoluted, but it is automatable, at 
least, and I'm glad to see it works for you.
I'd like to see a Cairo expert take on the task of upgrading our Cairo 
backend to use Pango. That would make this a little cleaner and 
theoretically fix the text alignment problem with your method (i.e. the 
titles are not exactly centered since its width is based on a naive 
rendering of the text). I have no concept of how much work that would 
be. Though it's also possible that that would just run up against other 
assumptions that matplotlib makes about text.
Cheers,
Mike
Mathieu Leplatre wrote:
> Thank you Michael and Darren.
>
> I'll keep your information for further polishing :
>
> So far, I am not having problems with my two-steps solution :
>
> 1) SVG backend
> 2) rsvg + Cairo, code snippet :
>
> svg = rsvg.Handle( filesvg )
> width = svg.props.width
> height = svg.props.height
> surface = cairo.ImageSurface (cairo.FORMAT_ARGB32, width, height)
> cr = cairo.Context (surface)
> svg.render_cairo (cr)
> surface.write_to_png (filepng)
>
> Thanks again for your assistance ! Long live sub-cultures and their
> exotic writings !
>
>
> 2008年6月25日 Mathieu Leplatre <lep...@gm...>:
> 
>> Well, I'll give a try towards another possibility :
>> 1 - use SVG output with rc setting : svg.embed_char_paths" to False
>> 2 - use cairo to export to PNG/JPG etc..
>>
>> Step 1 works great natively with Arabic (at least viewing it with Inkscape).
>> Let's see if I have problems with step 2.
>>
>> 2008年6月25日 Darren Dale <dsd...@gm...>:
>> 
>>> Hi Mathieu,
>>>
>>> Are there perhaps some latex packages you could load using the
>>> text.latex.preamble rc setting? This setting is officially unsupported, but
>>> it would be much easier than adding an option to use the xetex executable
>>> (which would probably not be officially supported by mpl).
>>>
>>> Darren
>>>
>>> On Wednesday 25 June 2008 09:02:41 am Mathieu Leplatre wrote:
>>> 
>>>> Hi all,
>>>>
>>>> I have been trying to follow your tips regarding matplotlib and arabic
>>>> support.
>>>>
>>>> Indeed matplotlib with Latex and unicode work great together :
>>>>
>>>> #-*- coding: utf-8 -*-
>>>> from pylab import *
>>>> from matplotlib import rcParams
>>>> rcParams['text.usetex']=True
>>>> rcParams['text.latex.unicode']=True
>>>> figure(1)
>>>> plot([1,2,3])
>>>> title(unicode(r'\textit{éèê}','utf8'))
>>>> show()
>>>>
>>>> But then I came to the conclusion that Latex did not support Arabic.
>>>> This few lines generate a "missing def" error.
>>>>
>>>> \documentclass{article}
>>>> \usepackage{ucs}
>>>> \usepackage[utf8x]{inputenc}
>>>> \title{éèê هه}
>>>> \begin{document}
>>>> \maketitle
>>>> \end{document}
>>>>
>>>> Is it related to my installation ? (Ubuntu with package
>>>> texlive-latex-recommended)
>>>> I asked here : http://ubuntuforums.org/showthread.php?p=5258457
>>>>
>>>> Somebody pointed me out XeTeX, which has wider support for Unicode.
>>>> www.tug.org/TUGboat/Articles/tb27-2/tb87kew.pdf
>>>>
>>>> I was wondering if there could be a way to get matplotlib work with XeTeX.
>>>>
>>>> What do you think ? Is it the right track ? Should I switch to
>>>> grandpa's gnuplot :) ?
>>>>
>>>> Thank you all,
>>>>
>>>> Mathieu.
>>>>
>>>> Michael Droettboom wrote:
>>>> 
>>>>> Unfortunately, I believe this is a fundamental incompatibility within
>>>>> matplotlib. matplotlib uses a very simple algorithm for layout out a
>>>>> line of characters which assumes ltr order and all kinds of other things.
>>>>>
>>>>> That said, there is something you could try. Matplotlib has a "usetex"
>>>>> mode which will do all text rendering using LaTeX. Assuming you can get
>>>>> LaTeX to handle Arabic correctly, you can set the following in your
>>>>> .matplotlibrc file:
>>>>>
>>>>> text.usetex : True
>>>>> text.latex.unicode : True
>>>>>
>>>>> You'll need to install the LaTeX Unicode extension "ucs" (Ubuntu
>>>>> probably has packages for that.) If you need to load any LaTeX packages
>>>>> to get arabic support, you can tell matplotlib about them in your
>>>>> matplotlibrc like so:
>>>>>
>>>>> text.latex.preamble: \usepackage{foo}
>>>>>
>>>>> If Arabic-encoded-as-Unicode doesn't work, you could try setting
>>>>> "text.latex.unicode" to False, and then typing your Arabic strings using
>>>>> one of the other Arabic encodings that LaTeX understands.
>>>>>
>>>>> Please let us know if you have success or hit another roadblock.
>>>>>
>>>>> Cheers,
>>>>> Mike
>>>>>
>>>>> Burhan Khalid wrote:
>>>>> 
>>>>>> Hello All:
>>>>>>
>>>>>> Having an issue with Arabic font support using matplotlib. When using
>>>>>> the correct font, Arabic characters are displayed, but are not joined
>>>>>> together
>>>>>> properly; and they are also not in the correct order (the font rendered
>>>>>> is ltr, but Arabic is a rtl language). Is this an issue with the render
>>>>>> I am using, or some incompatibility within matplotlib? Sample source
>>>>>> code used (please note, your email client should support utf8 to display
>>>>>> the code correctly).
>>>>>>
>>>>>> #-*- coding: utf-8 -*-
>>>>>> from pylab import *
>>>>>> figure(1) # the first figure
>>>>>> plot([1,2,3])
>>>>>> figure(1) # figure 1 current
>>>>>> title(u'برهان',name='Times New Roman') # figure 1 title
>>>>>> savefig('test.png')
>>>>>> savefig('test.eps')
>>>>>> show()
>>>>>>
>>>>>> Output when run from the command line:
>>>>>>
>>>>>> matplotlib data path /usr/share/matplotlib/mpl-data
>>>>>> $HOME=/home/burhan
>>>>>> CONFIGDIR=/home/burhan/.matplotlib
>>>>>> loaded rc file /etc/matplotlibrc
>>>>>> matplotlib version 0.90.1
>>>>>> verbose.level helpful
>>>>>> interactive is False
>>>>>> units is True
>>>>>> platform is linux2
>>>>>> numerix numpy 1.0.3
>>>>>> font search path ['/usr/share/matplotlib/mpl-data/fonts/ttf',
>>>>>> '/usr/share/matplotlib/mpl-data/fonts/afm']
>>>>>> loaded ttfcache file /home/burhan/.matplotlib/ttffont.cache
>>>>>> backend TkAgg version 8.4
>>>>>> Could not match Bitstream Vera Serif, New Century Schoolbook, Century
>>>>>> Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times
>>>>>> New Roman, Times, Palatino, Charter, serif, normal, normal. Returning
>>>>>> /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf
>>>>>>
>>>>>> This is on a clean Ubuntu Gutsy install, using python 2.5.1.
>>>>>>
>>>>>> Thanks,
>>>>>> Burhan
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>> - This SF.net email is sponsored by: Splunk Inc.
>>>>>> Still grepping through log files to find problems? Stop.
>>>>>> Now Search log events and configuration files using AJAX and a browser.
>>>>>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>
>>>>> -------------------------------------------------------------------------
>>>>> This SF.net email is sponsored by: Splunk Inc.
>>>>> Still grepping through log files to find problems? Stop.
>>>>> Now Search log events and configuration files using AJAX and a browser.
>>>>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>>>>> _______________________________________________
>>>>> Matplotlib-users mailing list
>>>>> Mat...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>> 
>>>> -------------------------------------------------------------------------
>>>> 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
>>>> 
>>>
>>> 
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> 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: Mathieu L. <lep...@gm...> - 2008年07月08日 17:07:10
Thank you Michael and Darren.
I'll keep your information for further polishing :
So far, I am not having problems with my two-steps solution :
1) SVG backend
2) rsvg + Cairo, code snippet :
svg = rsvg.Handle( filesvg )
width = svg.props.width
height = svg.props.height
surface = cairo.ImageSurface (cairo.FORMAT_ARGB32, width, height)
cr = cairo.Context (surface)
svg.render_cairo (cr)
surface.write_to_png (filepng)
Thanks again for your assistance ! Long live sub-cultures and their
exotic writings !
2008年6月25日 Mathieu Leplatre <lep...@gm...>:
> Well, I'll give a try towards another possibility :
> 1 - use SVG output with rc setting : svg.embed_char_paths" to False
> 2 - use cairo to export to PNG/JPG etc..
>
> Step 1 works great natively with Arabic (at least viewing it with Inkscape).
> Let's see if I have problems with step 2.
>
> 2008年6月25日 Darren Dale <dsd...@gm...>:
>> Hi Mathieu,
>>
>> Are there perhaps some latex packages you could load using the
>> text.latex.preamble rc setting? This setting is officially unsupported, but
>> it would be much easier than adding an option to use the xetex executable
>> (which would probably not be officially supported by mpl).
>>
>> Darren
>>
>> On Wednesday 25 June 2008 09:02:41 am Mathieu Leplatre wrote:
>>> Hi all,
>>>
>>> I have been trying to follow your tips regarding matplotlib and arabic
>>> support.
>>>
>>> Indeed matplotlib with Latex and unicode work great together :
>>>
>>> #-*- coding: utf-8 -*-
>>> from pylab import *
>>> from matplotlib import rcParams
>>> rcParams['text.usetex']=True
>>> rcParams['text.latex.unicode']=True
>>> figure(1)
>>> plot([1,2,3])
>>> title(unicode(r'\textit{éèê}','utf8'))
>>> show()
>>>
>>> But then I came to the conclusion that Latex did not support Arabic.
>>> This few lines generate a "missing def" error.
>>>
>>> \documentclass{article}
>>> \usepackage{ucs}
>>> \usepackage[utf8x]{inputenc}
>>> \title{éèê هه}
>>> \begin{document}
>>> \maketitle
>>> \end{document}
>>>
>>> Is it related to my installation ? (Ubuntu with package
>>> texlive-latex-recommended)
>>> I asked here : http://ubuntuforums.org/showthread.php?p=5258457
>>>
>>> Somebody pointed me out XeTeX, which has wider support for Unicode.
>>> www.tug.org/TUGboat/Articles/tb27-2/tb87kew.pdf
>>>
>>> I was wondering if there could be a way to get matplotlib work with XeTeX.
>>>
>>> What do you think ? Is it the right track ? Should I switch to
>>> grandpa's gnuplot :) ?
>>>
>>> Thank you all,
>>>
>>> Mathieu.
>>>
>>> Michael Droettboom wrote:
>>> > Unfortunately, I believe this is a fundamental incompatibility within
>>> > matplotlib. matplotlib uses a very simple algorithm for layout out a
>>> > line of characters which assumes ltr order and all kinds of other things.
>>> >
>>> > That said, there is something you could try. Matplotlib has a "usetex"
>>> > mode which will do all text rendering using LaTeX. Assuming you can get
>>> > LaTeX to handle Arabic correctly, you can set the following in your
>>> > .matplotlibrc file:
>>> >
>>> > text.usetex : True
>>> > text.latex.unicode : True
>>> >
>>> > You'll need to install the LaTeX Unicode extension "ucs" (Ubuntu
>>> > probably has packages for that.) If you need to load any LaTeX packages
>>> > to get arabic support, you can tell matplotlib about them in your
>>> > matplotlibrc like so:
>>> >
>>> > text.latex.preamble: \usepackage{foo}
>>> >
>>> > If Arabic-encoded-as-Unicode doesn't work, you could try setting
>>> > "text.latex.unicode" to False, and then typing your Arabic strings using
>>> > one of the other Arabic encodings that LaTeX understands.
>>> >
>>> > Please let us know if you have success or hit another roadblock.
>>> >
>>> > Cheers,
>>> > Mike
>>> >
>>> > Burhan Khalid wrote:
>>> >> Hello All:
>>> >>
>>> >> Having an issue with Arabic font support using matplotlib. When using
>>> >> the correct font, Arabic characters are displayed, but are not joined
>>> >> together
>>> >> properly; and they are also not in the correct order (the font rendered
>>> >> is ltr, but Arabic is a rtl language). Is this an issue with the render
>>> >> I am using, or some incompatibility within matplotlib? Sample source
>>> >> code used (please note, your email client should support utf8 to display
>>> >> the code correctly).
>>> >>
>>> >> #-*- coding: utf-8 -*-
>>> >> from pylab import *
>>> >> figure(1) # the first figure
>>> >> plot([1,2,3])
>>> >> figure(1) # figure 1 current
>>> >> title(u'برهان',name='Times New Roman') # figure 1 title
>>> >> savefig('test.png')
>>> >> savefig('test.eps')
>>> >> show()
>>> >>
>>> >> Output when run from the command line:
>>> >>
>>> >> matplotlib data path /usr/share/matplotlib/mpl-data
>>> >> $HOME=/home/burhan
>>> >> CONFIGDIR=/home/burhan/.matplotlib
>>> >> loaded rc file /etc/matplotlibrc
>>> >> matplotlib version 0.90.1
>>> >> verbose.level helpful
>>> >> interactive is False
>>> >> units is True
>>> >> platform is linux2
>>> >> numerix numpy 1.0.3
>>> >> font search path ['/usr/share/matplotlib/mpl-data/fonts/ttf',
>>> >> '/usr/share/matplotlib/mpl-data/fonts/afm']
>>> >> loaded ttfcache file /home/burhan/.matplotlib/ttffont.cache
>>> >> backend TkAgg version 8.4
>>> >> Could not match Bitstream Vera Serif, New Century Schoolbook, Century
>>> >> Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times
>>> >> New Roman, Times, Palatino, Charter, serif, normal, normal. Returning
>>> >> /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf
>>> >>
>>> >> This is on a clean Ubuntu Gutsy install, using python 2.5.1.
>>> >>
>>> >> Thanks,
>>> >> Burhan
>>> >>
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------
>>> >>
>>> >> ------------------------------------------------------------------------
>>> >>- This SF.net email is sponsored by: Splunk Inc.
>>> >> Still grepping through log files to find problems? Stop.
>>> >> Now Search log events and configuration files using AJAX and a browser.
>>> >> Download your FREE copy of Splunk now >> http://get.splunk.com/
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------
>>> >>
>>> >> _______________________________________________
>>> >> 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
>>> >
>>> > -------------------------------------------------------------------------
>>> > This SF.net email is sponsored by: Splunk Inc.
>>> > Still grepping through log files to find problems? Stop.
>>> > Now Search log events and configuration files using AJAX and a browser.
>>> > Download your FREE copy of Splunk now >> http://get.splunk.com/
>>> > _______________________________________________
>>> > Matplotlib-users mailing list
>>> > Mat...@li...
>>> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>> -------------------------------------------------------------------------
>>> 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
>>
>>
>>
>
From: Michael D. <md...@st...> - 2008年07月08日 16:21:00
Have a look here for some information about memory leaks:
http://matplotlib.sourceforge.net/faq.html#LEAKS
Can you provide a small standalone script that reproduces the error? It 
is possible that the figures are not being destroyed correctly because 
an extra reference is being held to them or something of that sort.
Cheers,
Mike
Maxime Bois wrote:
> Hi all,
>
> I have a problem of free memory for image buffer when I use Matplotlib 
> (the last version on linux).
> What i'm doing is that I create 4 figures in the same time, I save my 
> plots and I close them. After that, I create 4 new figures, save them 
> and close them... I do that many times and after a moment, a problem occurs.
> I obtain this message : "<class '_tkinter.TclError'>: not enough free 
> memory for image buffer" and my program stops.
>
> Does anyone have a solution for this problem ?
> Thanks a lot
> M.
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> 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: Maxime B. <max...@ob...> - 2008年07月08日 15:45:53
Hi all,
I have a problem of free memory for image buffer when I use Matplotlib 
(the last version on linux).
What i'm doing is that I create 4 figures in the same time, I save my 
plots and I close them. After that, I create 4 new figures, save them 
and close them... I do that many times and after a moment, a problem occurs.
I obtain this message : "<class '_tkinter.TclError'>: not enough free 
memory for image buffer" and my program stops.
Does anyone have a solution for this problem ?
Thanks a lot
M.
From: Pierre R. <co...@py...> - 2008年07月08日 15:35:20
2008年7月8日 <mat...@li...>:
> On Thursday 03 July 2008 02:28:47 pm Michael Droettboom wrote:
>> Friedrich Hagedorn wrote:
>> > Hello,
>> >
>> > 2. Does anybody know a good python dirstibution including mpl?
>>
>> Enthought has one, but I have no experience with it.
>
> It might be worth keeping an eye on Python(x,y). It doesn't have a linux
> installer yet, but it looks like Pierre is working on it.
>
> Darren
That is correct, thank you Darren.
Actually *we* are working on it. And, honestly, I didn't and won't do
much on the linux version because I'm already too busy with the
Windows distribution (especially with the forthcoming 2.0 release):
one of my colleague is working on it. After a lot of public
(http://groups.google.com/group/pythonxy/browse_thread/thread/e5c707a1ac8bd4a4)
and private discussions on this, we have decided to distribute the
linux version as a metapackage. The first public release will
hopefully be available before the end of summer.
Pierre
From: Darren D. <dsd...@gm...> - 2008年07月08日 13:44:34
On Thursday 03 July 2008 02:28:47 pm Michael Droettboom wrote:
> Friedrich Hagedorn wrote:
> > Hello,
> >
> > today I tried to install mpl in my local home directory at work. This
> > debian distribution is very old and I had to compile for my own.
> >
> > But I failed to compile pygtk (special cairo and pango) as a dependency
> > for mpl. So I have two questions:
> >
> > 1. Does you have an advice to compile mpl with minimal dependencies?
>
> You can copy "setup.cfg.template" to "setup.cfg" and then edit the [gui]
> section to disable certain GUIs. You will need at least one GUI --
> TkAgg is probably going to be the easiest to get working on an older
> system. You will need to have Tkinter and the Tcl/Tk development
> headers installed, however.
>
> > 2. Does anybody know a good python dirstibution including mpl?
>
> Enthought has one, but I have no experience with it.
It might be worth keeping an eye on Python(x,y). It doesn't have a linux 
installer yet, but it looks like Pierre is working on it.
Darren
From: Yves R. <yve...@ep...> - 2008年07月08日 12:19:35
Hi all,
Is there a way to define logarithmic axes when using axes3d ?
lines like
ax = axes3d.Axes3D(fig)
ax.semilogx()
or
ax.set_xscale('log')
fail !
Thanks,
yves
-- 
 (o o)
--------------------------------------------oOO--(_)--OOo-------
 Yves Revaz
 Laboratory of Astrophysics EPFL
 Observatoire de Sauverny Tel : ++ 41 22 379 24 28
 51. Ch. des Maillettes Fax : ++ 41 22 379 22 05
 1290 Sauverny e-mail : Yve...@ep...
 SWITZERLAND Web : http://www.lunix.ch/revaz/
----------------------------------------------------------------

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