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






Showing 10 results of 10

From: Stan W. <sta...@nr...> - 2008年11月13日 22:57:45
> Another approach is to use the subplotpars kwarg to adjust 
> the positioning parameters when initializing the figure.
Here's how I like to implement that approach when I want strict dimensions:
 figW = 6.5 # in inches
 figH = 7
 fig = figure(figsize=(figW, figH),
 subplotpars=mpl.figure.SubplotParams(
 left= (48 / 72.0) / figW, # 48-point left margin 
 bottom= (36 / 72.0) / figH, # etc.
 right= 1 - (18 / 72.0) / figW, 
 top= 1 - (12 / 72.0) / figH))
From: Eric F. <ef...@ha...> - 2008年11月13日 22:02:28
Erik Tollerud wrote:
> I've been grappling with an annoying bug for a while now - attached
> are two examples of an empty set of log-log axes with an xlabel. one
> has figsize(10,5) and the other is figsize(10,6) . As is apparent
> from the images, the (10,5) figure has the xlabel cut off because the
> log axes are too big. If I don't use a log axis, everything is fine,
> but the added size of the superscript in the axis pushes the label off
> the edge of the figure. I've been working around this by changing the
> size of the figure (as shown in the (10,6) figure , but sometimes I
> have strict limits on the size I need for my figures. Is there an
> obvious work-around to fix this, or does some of the labelling code
> need to be changed? Note that this problem is much exacerbated if I
> use larger font sizes or smaller figures...
Erik,
Instead of changing the figure size, you can use the pyplot 
subplots_adjust() function or the Figure.subplots_adjust() method to 
change the axes size and positioning within the figure.
Another approach is to use the subplotpars kwarg to adjust the 
positioning parameters when initializing the figure.
Eric
From: Erik T. <eri...@gm...> - 2008年11月13日 21:21:29
I've been grappling with an annoying bug for a while now - attached
are two examples of an empty set of log-log axes with an xlabel. one
has figsize(10,5) and the other is figsize(10,6) . As is apparent
from the images, the (10,5) figure has the xlabel cut off because the
log axes are too big. If I don't use a log axis, everything is fine,
but the added size of the superscript in the axis pushes the label off
the edge of the figure. I've been working around this by changing the
size of the figure (as shown in the (10,6) figure , but sometimes I
have strict limits on the size I need for my figures. Is there an
obvious work-around to fix this, or does some of the labelling code
need to be changed? Note that this problem is much exacerbated if I
use larger font sizes or smaller figures...
-- 
Erik Tollerud
Graduate Student
Center For Cosmology
Department of Physics and Astronomy
2142 Frederick Reines Hall
University of California, Irvine
Office Phone: (949)824-2587
Cell: (651)307-9409
eto...@uc...
From: D2Hitman <j.m...@wa...> - 2008年11月13日 18:24:25
I am getting a memory leak when i am using the pylab.close() function. I am
running matplotlib-0.98.3. It happens in a very simple script such as:
#!/usr/bin/python
import time
import pylab
while True:
 time.sleep(1)
 print 'calling pylab'
 pylab.box()
 pylab.close()
Every close seems to store megabytes in physical memory. Any idea why this
happens?
Cheers.
-- 
View this message in context: http://www.nabble.com/pylab.close%28%29-tp20486589p20486589.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Eric F. <ef...@ha...> - 2008年11月13日 17:42:51
Zane Selvans wrote:
> 
> On Nov 12, 2008, at 8:12 PM, Eric Firing wrote:
>> The example code runs with mpl from svn, so I suspect you are running 
>> into an example that was written to show capabilities added since the 
>> last release. In fact, it looks like that 6212 #todo is the clue: it 
>> is not found in the svn version.
> 
> Hmm. It seems like it might be better to have the default online 
> documentation generated from the current release, instead of the 
> bleeding edge. The title of the page does after all say: "Matplotlib 
> v0.98.3 documentation". Of course there could be an svn version 
> accessible somewhere too, but having this kind of disconnect between 
> what people have installed, and what the default doc refers to, will 
> probably create other headaches too.
I agree. I don't know anything about how the web site is generated, 
though, so I don't know how easy or hard this is. We just switched to a 
new documentation generation system. Maybe the scheme you suggest, with 
docs matching versions (at least the latest release and svn; possibly 
even keeping access to older versions as new versions are released, the 
way Python.org does it) can be implemented with the next release.
I wonder if any users or developers might be interested in becoming 
developers specializing in the website and documentation, to take some 
of the load off of John and Mike...
Eric
> 
> Just my 0ドル.02,
> Zane
> 
> --
> Zane Selvans
> Amateur Earthling
> za...@id... <mailto:za...@id...>
> 303/815-6866
> http://zaneselvans.org
> PGP Key: 55E0815F
> 
> 
> 
> 
> 
> 
> 
> 
From: Benjamin J. R. <bjr...@gl...> - 2008年11月13日 17:28:43
I am sending this forward on behalf of Matt Foster...
Be sure to look into pysmell (for completion) as well.
>>>>>>>>>>>>>>>>>>>>>>
Hi All,
A similar mail has already been on the (ipython) users mailing list, so my apologies if you've seen most of this before.
I've started working on a TextMate bundle for IPython, based on the info on the Wiki [1], the aim is to produce a BSD licensed bundle which helps to integrate TextMate with IPython.
I have set up a project on Github [2] which currently contains:
 * Some help, which doubles as the README
 * commands for running the current file / line / section in IPython (via applescript, and Terminal.app)
 * a basic language grammar for ipythonrc config files.
The GitHub page contains the README file which has instructions on how to get GetBundles, which will allow you to install the bundle (but not track changes). Alternatively, if you have git, you can get the bundle using the following commands:
cd "~/Library/Application Support/TextMate/Bundles"
git clone git://github.com/mattfoster/ipython-tmbundle.git IPython.tmbundle osascript -e 'tell app "TextMate" to reload bundles'
GitHub users can fork the project and make their own changes.
I'd really love to hear any ideas, suggestions or feature requests people have, and I've been told by Fernando that it's ok to use this list for discussions, provided we prefix mail subjects with [TextMate].
Thanks,
Matt
[1]: http://ipython.scipy.org/moin/Cookbook/UsingIPythonWithTextMate
[2]: http://github.com/mattfoster/ipython-tmbundle/
--
Matt Foster | http://my-mili.eu/matt
_______________________________________________
IPython-dev mailing list
IPy...@sc...
http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev
From: Zane S. <za...@id...> - 2008年11月13日 17:18:56
On Nov 12, 2008, at 8:12 PM, Eric Firing wrote:
> The example code runs with mpl from svn, so I suspect you are 
> running into an example that was written to show capabilities added 
> since the last release. In fact, it looks like that 6212 #todo is 
> the clue: it is not found in the svn version.
Hmm. It seems like it might be better to have the default online 
documentation generated from the current release, instead of the 
bleeding edge. The title of the page does after all say: "Matplotlib 
v0.98.3 documentation". Of course there could be an svn version 
accessible somewhere too, but having this kind of disconnect between 
what people have installed, and what the default doc refers to, will 
probably create other headaches too.
Just my 0ドル.02,
Zane
--
Zane Selvans
Amateur Earthling
za...@id...
303/815-6866
http://zaneselvans.org
PGP Key: 55E0815F
From: Eric F. <ef...@ha...> - 2008年11月13日 04:13:04
Zane Selvans wrote:
> I'm trying to make a bar-style histogram, along the lines of the last 
> example figure from the extended histogram demo:
> 
> http://matplotlib.sourceforge.net/examples/pylab_examples/histogram_demo_extended.html
> 
> in which the several arrays to be histogrammed do not have the same 
> length. However, I'm getting an error about "setting an array element 
> with a sequence", even when I just cut-and-paste in the example code. 
> The previous multi-histogram examples in which the array being plotted 
> is generated using: x = mu + sigma*randn(1000,3) work fine though.
> 
> Am I doing something stupid?
No.
The example code runs with mpl from svn, so I suspect you are running 
into an example that was written to show capabilities added since the 
last release. In fact, it looks like that 6212 #todo is the clue: it is 
not found in the svn version.
Eric
> 
> Here's the trace:
> 
> In [25]: n, bins, patches = hist( [x0,x1,x2], 10, histtype='bar')
> ---------------------------------------------------------------------------
> ValueError Traceback (most recent call last)
> 
> /Users/zane/svn/googlecode/<ipython console> in <module>()
> 
> /Library/Python/2.5/site-packages/matplotlib-0.98.3-py2.5-macosx-10.3-i386.egg/matplotlib/pyplot.pyc 
> in hist(*args, **kwargs)
> 1866 hold(h)
> 1867 try:
> -> 1868 ret = gca().hist(*args, **kwargs)
> 1869 draw_if_interactive()
> 1870 except:
> 
> /Library/Python/2.5/site-packages/matplotlib-0.98.3-py2.5-macosx-10.3-i386.egg/matplotlib/axes.pyc 
> in hist(self, x, bins, range, normed, cumulative, bottom, histtype, 
> align, orientation, rwidth, log, **kwargs)
> 6211 
> 6212 # todo: make hist() work with list of arrays with 
> different lengths
> -> 6213 x = np.asarray(x).copy()
> 6214 if len(x.shape)==2 and min(x.shape)==1:
> 6215 x.shape = max(x.shape),
> 
> /Library/Python/2.5/site-packages/numpy-1.2.0.dev5677-py2.5-macosx-10.3-i386.egg/numpy/core/numeric.pyc 
> in asarray(a, dtype, order)
> 228 
> 229 """
> --> 230 return array(a, dtype, copy=False, order=order)
> 231 
> 232 def asanyarray(a, dtype=None, order=None):
> 
> ValueError: setting an array element with a sequence.
> 
> 
> --
> Zane Selvans
> Amateur Earthling
> za...@id... <mailto:za...@id...>
> 303/815-6866
> http://zaneselvans.org
> PGP Key: 55E0815F
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Zane S. <za...@id...> - 2008年11月13日 03:48:06
I'm trying to make a bar-style histogram, along the lines of the last 
example figure from the extended histogram demo:
http://matplotlib.sourceforge.net/examples/pylab_examples/histogram_demo_extended.html
in which the several arrays to be histogrammed do not have the same 
length. However, I'm getting an error about "setting an array element 
with a sequence", even when I just cut-and-paste in the example code. 
The previous multi-histogram examples in which the array being plotted 
is generated using: x = mu + sigma*randn(1000,3) work fine though.
Am I doing something stupid?
Here's the trace:
In [25]: n, bins, patches = hist( [x0,x1,x2], 10, histtype='bar')
---------------------------------------------------------------------------
ValueError Traceback (most recent call 
last)
/Users/zane/svn/googlecode/<ipython console> in <module>()
/Library/Python/2.5/site-packages/matplotlib-0.98.3-py2.5-macosx-10.3- 
i386.egg/matplotlib/pyplot.pyc in hist(*args, **kwargs)
 1866 hold(h)
 1867 try:
-> 1868 ret = gca().hist(*args, **kwargs)
 1869 draw_if_interactive()
 1870 except:
/Library/Python/2.5/site-packages/matplotlib-0.98.3-py2.5-macosx-10.3- 
i386.egg/matplotlib/axes.pyc in hist(self, x, bins, range, normed, 
cumulative, bottom, histtype, align, orientation, rwidth, log, **kwargs)
 6211
 6212 # todo: make hist() work with list of arrays with 
different lengths
-> 6213 x = np.asarray(x).copy()
 6214 if len(x.shape)==2 and min(x.shape)==1:
 6215 x.shape = max(x.shape),
/Library/Python/2.5/site-packages/numpy-1.2.0.dev5677-py2.5- 
macosx-10.3-i386.egg/numpy/core/numeric.pyc in asarray(a, dtype, order)
 228
 229 """
--> 230 return array(a, dtype, copy=False, order=order)
 231
 232 def asanyarray(a, dtype=None, order=None):
ValueError: setting an array element with a sequence.
--
Zane Selvans
Amateur Earthling
za...@id...
303/815-6866
http://zaneselvans.org
PGP Key: 55E0815F
From: Gideon S. <si...@ma...> - 2008年11月13日 01:38:45
Both of these issues seem to be resolved by the latest fink packages.
-gideon
On Nov 7, 2008, at 10:13 AM, Gideon Simpson wrote:
> 1. I find that the eps's generated, for whatever reason, do not
> automatically conform to something that Preview.app can open. it
> generates the error:
>
> PostScript Conversion Error
> The PostScript file "test.eps" could not be converted to a PDF file.
>
> However, the eps's are fundamentally there. I can open them in GIMP
> and use ps2pdf on them.
>
> 2. My fink installed QT4 backend gives an error while trying to save
> a figure as PDF using the GUI. I get:
>
> [Errno 4] Interrupted system call
>
> Other file formats do not generate this error.
>
>
> -gideon
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's 
> challenge
> Build the coolest Linux based applications with Moblin SDK & win 
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in 
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

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