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

Showing 8 results of 8

From: Jeffrey O. <Jef...@ve...> - 2005年04月18日 19:23:13
There appears to be a bug in the latest basemap distrib. (0.3.1) that
prevents it from being installed in a non-standard location. 
In basemap.py, the required data file location is specified as:
_datadir =
os.path.join(sys.prefix,'share/basemap-py'+repr(sys.version_info[0])+rep
r(sys.version_info[1]))
On my system, sys.prefix returns '/usr'. However, I installed the
package using the --prefix option and a different path than /usr. Then
when basemap tries to access data files for coastlines, etc. with
open(os.path.join(_datadir,'gshhs_'+resolution+'.txt'))
it's looking for the files in /usr and they ain't there.
Since I don't have root privileges on my own machine, I can't do a
symbolic link (and that would be tacky anyway). Jeff, could you fix
this? Thanks.
Jeff Orrey
From: Olive <enc...@ya...> - 2005年04月18日 17:58:20
On 2005年4月16日 00:19:37 +0200, Olive <enc...@ya...> wrote
:
> I forgot to take the version number of the freetype library before
> leaving work, I will get it on monday.
> 
Version of freetype is 2.1.7 !
From: Eric E. <ems...@ob...> - 2005年04月18日 11:26:21
Hi,
The more I am using matplotlib, the more I like it. But using it more 
means I more often hit the limits of the code, so I was wondering if 
there is any plan for a routine to plot data points w.r.t 3 axes (so a 
perspective scatter plot with x,y,z, data and a viewing angle). Of 
course another (maybe more difficult) goal would be to be able to draw 
surfaces, but already a simple scatter plot in 3D would help 
tremendously there (I realize the concept of "axis" has then to be 
revised, but well I have no idea how much effort this is).
(if there is no - coming - plan for this, is there any way around it?)
Please let me know, and congrats for the work already achieved!
Cheers
Eric
-- 
===============================================================
Observatoire de Lyon ems...@ob...
9 av. Charles-Andre tel: +33 4 78 86 83 84
69561 Saint-Genis Laval Cedex fax: +33 4 78 86 83 86
France http://www-obs.univ-lyon1.fr/eric.emsellem
===============================================================
From: Nikolai H. <nik...@ma...> - 2005年04月18日 10:35:25
Hi everyone
Last week I stumbled about a bug in imshow, which can easily be 
reproduced by doing the following:
python
 >>> from pylab import *
 >>> imshow(ones((20,40)),aspect='preserve',origin='lower')
 >>> show()
Note that the y-axis is wrong and resizing makes this even worse.
I tried versions 0.71 to 0.80 which show all the same behaviour.
It is obviously the aspect='preserve' option, that introduces this bug.
So I'd like to address two issues:
First of course I'd like to ask if this bug could be fixed since 
constant aspect ratio is very crucial for me.
Second it seems that the plotting area is always maximum size and the 
aspect='preserve' option just rescales the axis. I think it would be 
more natural to rescale the plotting area.
Cheers,
Nikolai
From: Werner F. B. <wer...@fr...> - 2005年04月18日 10:34:12
Hi David,
Thanks for the info.
See you
Werner
D Brown wrote:
> Werner,
> 
> Recently I reported a batch plot memory issue when using
> mostly matlab-style commands and TkAgg backend. In my case
> I found that the memory increased when I called close(). 
> If I stopped using this the memory use became more or less
> constant. Based on Fernando Perez's comments I also
> started using import gc and gc.collect() to reduce memory
> use more. This just calls the garbage collector more
> frequently to clean up memory. If your system is paging to
> disk because of memory use it can speed things up quite a
> bit. In my case it keeps the total python footprint
> significantly reduced.
> 
> Good Luck,
> 
> David
> 
> 
>>From: "Werner F. Bruhin" <wer...@fr...>
>>Date: 2005年4月14日 11:42:34 +0200
>>Subject: [Matplotlib-users] Memory usage
> 
> 
>>Hi All,
>>
>>Doing multiple plots I see that memory usage grows and
> 
> grows.
> 
>>Before doing a new plot I do "self.figure.clear()", or 
>>"self.figure.clf()", is there some other call I should
> 
> use?
> 
>>See you
>>Werner
> 
> 
> +_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
From: Werner F. B. <wer...@fr...> - 2005年04月18日 10:28:48
In some of my plots I show month names as axes labels.
When I run this on a machine in "French" (i.e. on Win XP changing the 
Settings - Regional and Language settings" to French the labels don't 
show correctly if there is an accented character in there e.g. "déc".
I changed the line 256 in dates.py (matplotlib 0.8) from:
return dt.strftime(fmt)
to:
return unicode(dt.strftime(fmt), 'iso-8859-1')
Obviously this is not a correct fix as it will only work in some situations.
I tried to use sys.getdefaultencoding(), instead of hard coding 
'iso-8859-1', but on my machine it returns "ascii".
Any suggestions on how to handle this correctly will be very appreciated.
See you
Werner
From: Jochen V. <vo...@se...> - 2005年04月18日 10:10:56
Hi Stephen,
On Fri, Apr 15, 2005 at 10:01:30AM -0700, Stephen Walton wrote:
> What I really meant was that the PostScript file produced by MPL starts=
=20
> with '%!PS-Adobe-3.0', which I thought meant Postscript level 3. =20
> Changing the 3.0 to 2.0 by hand still doesn't allow it to print. dvips=
=20
> output files print fine on this printer, and they start with=20
> '%!PS-Adobe-2.0'.
Confusingly enough there are two kinds of version numbers involved, here.
There is the PostScript language level, which can be 1, 2, or 3.
Additionally there is something called DSC (Document structuring
conventions), which gives additional information in PostScript comments
(lines starting with a percent sign). This DSC thing allows PostScript
viewers to go back to the previous page, allows to print single pages
=66rom a PostScript file, etc. DSC also comes in several versions.
The "%!PS-Adobe-3.0" indicated that the document confirms to DSC version 3.
This does not imply anything for the PostScript language level. Since
all DSC stuff is most probably ignored by the Printer, it should not
cause any problems.
> Thanks for the suggestion, but I'm afraid this didn't help. The=20
> workaround I found was to do a dvipdf on the LaTeX file which included=20
> the MPL doc, read it with Acrobat Reader, and tell acroread to print it=
=20
> at Postscript level 1.
GhostScript has also a converting-fancy-PostScript-into-simple-PostScript
functionality which might come in handy here.
All the best,
Jochen
--=20
http://seehuhn.de/
From: D B. <db...@ya...> - 2005年04月18日 07:02:10
Werner,
Recently I reported a batch plot memory issue when using
mostly matlab-style commands and TkAgg backend. In my case
I found that the memory increased when I called close(). 
If I stopped using this the memory use became more or less
constant. Based on Fernando Perez's comments I also
started using import gc and gc.collect() to reduce memory
use more. This just calls the garbage collector more
frequently to clean up memory. If your system is paging to
disk because of memory use it can speed things up quite a
bit. In my case it keeps the total python footprint
significantly reduced.
Good Luck,
David
>From: "Werner F. Bruhin" <wer...@fr...>
>Date: 2005年4月14日 11:42:34 +0200
>Subject: [Matplotlib-users] Memory usage
>Hi All,
>
>Doing multiple plots I see that memory usage grows and
grows.
>
>Before doing a new plot I do "self.figure.clear()", or 
>"self.figure.clf()", is there some other call I should
use?
>
>See you
>Werner
+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Showing 8 results of 8

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