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



Showing results of 257

1 2 3 .. 11 > >> (Page 1 of 11)
From: Mark H. <ma...@mi...> - 2007年01月31日 23:13:43
Self follow-up:
Rolled back to visual 0.3.2.9 and the segfault with pylab is not present 
there; both the visual object and pylab graph are rendered correctly. 
Sorry vpython, looks like the bug is due to your new beta.
-Mark
Mark Heslep wrote:
> Version information:
> ---------------------------
> Vpython visual-4.beta14
> In [2]: visual.__version__
> Out[2]: '1.0.1'
> Python 2.4.4, Fedora Core 6 updated.
> python-matplotlib-0.87.7-3.fc6
>
> Description:
> A segfault is reliably produced when running vpython along with pylab / 
> matplotlib functions:
>
> cut------------------------------------------
> from visual import *
> from pylab import *
>
> ball = sphere( pos=(0,0,0), color=color.red)
> x=arrange(0,10,0.1)
> y=sin(2*pi*x)
> plot(x,y)
> cut ------------------------------------------
>
>
> The segfault actually triggers on the plot call, but removing _either_ 
> the visual sphere call _or_ the pylab plot call eliminates the segfault, 
> with the either the plot or the ball rendering correctly.
> Ive filed a bug w/ vpython. Any ideas?
>
> Regards,
> Mark
>
>
> -------------------------------------------------------------------------
> 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 easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
> 
From: Mark H. <ma...@mi...> - 2007年01月31日 23:05:44
Version information:
---------------------------
Vpython visual-4.beta14
In [2]: visual.__version__
Out[2]: '1.0.1'
Python 2.4.4, Fedora Core 6 updated.
python-matplotlib-0.87.7-3.fc6
Description:
A segfault is reliably produced when running vpython along with pylab / 
matplotlib functions:
cut------------------------------------------
from visual import *
from pylab import *
ball = sphere( pos=(0,0,0), color=color.red)
x=arrange(0,10,0.1)
y=sin(2*pi*x)
plot(x,y)
cut ------------------------------------------
The segfault actually triggers on the plot call, but removing _either_ 
the visual sphere call _or_ the pylab plot call eliminates the segfault, 
with the either the plot or the ball rendering correctly.
Ive filed a bug w/ vpython. Any ideas?
Regards,
Mark
From: Gary R. <gr...@bi...> - 2007年01月31日 22:26:35
Christopher Barker wrote:
 > Gary Ruben wrote:
 >> I just picked up a problem posted over on the numpy list. I noticed that
 >> from pylab import * is importing the oldnumeric-wrapper versions of
 >> zeros(), ones() and empty(), and presumably other things too, into the
 >> interactive namespace. Shouldn't it be picking up the versions from
 >> numpy's main namespace for interactive use?
 >
 > My understanding is that pylab (and Numerix) is maintaining backward
 > compatibility with itself, so the oldnumeric form is the right one.
 >
 > Another reason NOT to EVER use "import *"
The way I tripped over this was using "ipython -pylab", which is doing 
this under the hood, so it's a little uglier in this case. What would be 
the effect on pylab using the newer numpy interactive namespace instead? 
I wonder whether matplotlib could check whether it has been imported by 
ipython interactively and import the newer namespace in this case, or 
whether there's a good argument for just dropping this little backward 
compatibility wart?
 > Before too long, hopefully we'll only have to deal with numpy.
 >
 > -Chris
I'll just cross-post Fernando (ipython) Perez's solution from the numpy 
list to aid anyone else who falls into this trap:
--
Until mpl drops support for the compatibility layers, you may want to
set up a simple pylab profile. In ~/.ipython make a file called
'ipythonrc-pylab' consisting of:
#######
# Load default config
include ipythonrc
# Add single-line python statements here
execute from numpy import *
########
Since pylab does a 'from .num?. import *' this will ensure that the
top-level visible functions are the current numpy ones, not the
compatibility layer ones. You then start things with:
ipython -pylab -p pylab
and you'll get:
In [1]: zeros?
Type: builtin_function_or_method
Base Class: <type 'builtin_function_or_method'>
Namespace: Interactive
Docstring:
 zeros((d1,...,dn),dtype=float,order='C')
 Return a new array of shape (d1,...,dn) and type typecode with all
 it's entries initialized to zero.
Not ideal, but it's a little hack that will work in practice until we
finish crossing the muddy river of backwards compatibility.
Cheers,
f
--
Gary
From: John H. <jd...@gm...> - 2007年01月31日 21:44:10
Well, the old trusted email jdh...@ac... is being
retired today. It served me well for 12 years migrating from old Sun
boxes through countless linux boxes but since I'm no longer at
uchicago and the box it is running on is dying, I figured it is
finally time to give it up. That and the fact that spamemrs have
harvested that address off of the usenet for 10+ years and spam-bayes
is losing the battle to them. Hopefully google's spam filters will do
better.
So my future postings and annoucements will be coming from jd...@gm...
JDH
From: Martin W. <mp...@bh...> - 2007年01月31日 21:12:36
Hi,
I'm using matplotlib in a GTK gui canvas with the GTKAgg backend. I'm 
connecting a mouse click 'button_press_event' to the click function. If 
I choose print event.x everything works fine. However I'm after the x 
value in terms of the x-axis not pixels. When I try print event.xdata I 
get an error message. Am I making a stupid mistake or is this a bug?
Thanks
Martin
 
 self.canvas.connect('button_press_event',self.click)
def click(self,widget,event):
 print 'you clicked', event.xdata, event.ydata
 #print 'you clicked', event.x, event.y
Traceback (most recent call last):
 File "./dangerplotpy", line 120, in click
 print 'you clicked', event.xdata, event.ydata
AttributeError: xdata
From: Chris F. <ch...@tr...> - 2007年01月31日 20:56:46
On 1/31/07, Christopher Barker <Chr...@no...> wrote:
>
> Chris Fonnesbeck wrote:
> > I have built a
> > matplotlib installer for OS X,
>
> Sorry I can't help with your problem, but:
>
> Which Python are you building against?
Which num* are you including
> Which wxPython?
> Which other back-ends.
>
ActiveState Python 2.4.3numpy from svn
no wxPython, just TkAgg
Curoiously, this only happens on my intel machine and not on my PPC! I have
tried pulling a completely new svn code, but it still happens.
-- 
Chris Fonnesbeck + Atlanta, GA + http://trichech.us
From: Christopher B. <Chr...@no...> - 2007年01月31日 20:00:17
Chris Fonnesbeck wrote:
> I have built a 
> matplotlib installer for OS X, 
Sorry I can't help with your problem, but:
Which Python are you building against?
Which num* are you including
Which wxPython?
Which other back-ends.
I'd really love to see a workable installer that we can post on pythonmac!
-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: Chris F. <ch...@tr...> - 2007年01月31日 18:26:37
This may not be the appropriate place to post this, but I have built a
matplotlib installer for OS X, using setupegg.py:
python setupegg.py config -L../staticlibs build bdist_mpkg
However, when I import pylab, I get the follwing:
ImportError: No module named matplotlib.pylab
The problem appears to be that __init__.py is not included in the package;
when I do a standard install using setup.py, the file is copied over as it
should be.
-- 
Chris Fonnesbeck + Atlanta, GA + http://trichech.us
From: Eric F. <ef...@ha...> - 2007年01月31日 18:26:32
Chris,
My guess is that you have some combination of 0.87.7 and svn; the 
traceback says 0.87.7, and the KeyError is because of an addition to 
rcParams since 0.87.7.
Try this:
In [1]:import matplotlib
In [2]:matplotlib.rcParams
Out[2]:
{'axes.axisbelow': False,
 'axes.edgecolor': 'k',
 'axes.facecolor': 'w',
 'axes.formatter.limits': (-7, 7),
 'axes.grid': False,
 'axes.hold': True,
etc. etc.
If you don't see the axes.formatter.limits key then your __init__.py is 
not from svn. Maybe the thing to do is delete all versions and traces 
of matplotlib from your system and then re-download and install.
Eric
Chris Fonnesbeck wrote:
> On 1/31/07, *John Hunter* <jdh...@ac... 
> <mailto:jdh...@ac...>> wrote:
> 
> >>>>> "Chris" == Chris Fonnesbeck <ch...@tr...
> <mailto:ch...@tr...>> writes:
> 
> Chris> The thing is, I deleted my entire ~/.matplotlib directory,
> Chris> hoping to start clean. Where does matplotlib get its info
> Chris> when a .matplotlibrc is not present in my home directory?
> 
> It first looks in the current working dir and then in ~/.matplotlib
> 
> Try running a sample script with --verbose-helpful and it will tell
> you which file is being read...
> 
> 
> 
> I copied the matplotlibrc file from the source in svn; here is what I 
> get using --verbose-helpful:
> 
> Osoyoos:~ chris$ python plot.py --verbose-helpful
> plot.py:14: SyntaxWarning: import * only allowed at module level
> def main():
> matplotlib data path 
> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data 
> 
> $HOME=/Users/chris
> CONFIGDIR=/Users/chris/.matplotlib
> loaded rc file /Users/chris/.matplotlib/matplotlibrc
> matplotlib version 0.87.7
> verbose.level helpful
> interactive is False
> platform is darwin
> numerix numpy 1.0.2.dev3522
> font search path 
> ['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data']
> loaded ttfcache file /Users/chris/.matplotlib/ttffont.cache
> backend TkAgg version 8.4
> Traceback (most recent call last):
> File "plot.py", line 20, in ?
> main()
> File "plot.py", line 16, in main
> plot(range(10), range(10))
> File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py", 
> line 2038, in plot
> b = ishold()
> File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py", 
> line 937, in ishold
> return gca().ishold()
> File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py", 
> line 883, in gca
> ax = gcf().gca(**kwargs)
> File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/figure.py", 
> line 679, in gca
> return self.add_subplot(111, **kwargs)
> File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/figure.py", 
> line 506, in add_subplot
> a = Subplot(self, *args, **kwargs)
> File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py", 
> line 4911, in __init__
> Axes.__init__(self, fig, [ self.figLeft, self.figBottom,
> File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py", 
> line 439, in __init__
> self._init_axis()
> File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py", 
> line 470, in _init_axis
> self.xaxis = XAxis(self)
> File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axis.py", 
> line 514, in __init__
> self.cla()
> File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axis.py", 
> line 535, in cla
> self.set_major_formatter(ScalarFormatter())
> File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ticker.py", 
> line 271, in __init__
> self._powerlimits = rcParams['axes.formatter.limits ']
> KeyError: 'axes.formatter.limits'
> 
> 
> 
> -- 
> Chris Fonnesbeck + Atlanta, GA + http://trichech.us
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Chris F. <ch...@tr...> - 2007年01月31日 17:57:57
On 1/31/07, John Hunter <jdh...@ac...> wrote:
>
> >>>>> "Chris" == Chris Fonnesbeck <ch...@tr...> writes:
>
> Chris> The thing is, I deleted my entire ~/.matplotlib directory,
> Chris> hoping to start clean. Where does matplotlib get its info
> Chris> when a .matplotlibrc is not present in my home directory?
>
> It first looks in the current working dir and then in ~/.matplotlib
>
> Try running a sample script with --verbose-helpful and it will tell
> you which file is being read...
>
>
I copied the matplotlibrc file from the source in svn; here is what I get
using --verbose-helpful:
Osoyoos:~ chris$ python plot.py --verbose-helpful
plot.py:14: SyntaxWarning: import * only allowed at module level
 def main():
matplotlib data path
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data
$HOME=/Users/chris
CONFIGDIR=/Users/chris/.matplotlib
loaded rc file /Users/chris/.matplotlib/matplotlibrc
matplotlib version 0.87.7
verbose.level helpful
interactive is False
platform is darwin
numerix numpy 1.0.2.dev3522
font search path
['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data']
loaded ttfcache file /Users/chris/.matplotlib/ttffont.cache
backend TkAgg version 8.4
Traceback (most recent call last):
 File "plot.py", line 20, in ?
 main()
 File "plot.py", line 16, in main
 plot(range(10), range(10))
 File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py",
line 2038, in plot
 b = ishold()
 File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py",
line 937, in ishold
 return gca().ishold()
 File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py",
line 883, in gca
 ax = gcf().gca(**kwargs)
 File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/figure.py",
line 679, in gca
 return self.add_subplot(111, **kwargs)
 File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/figure.py",
line 506, in add_subplot
 a = Subplot(self, *args, **kwargs)
 File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py",
line 4911, in __init__
 Axes.__init__(self, fig, [self.figLeft, self.figBottom,
 File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py",
line 439, in __init__
 self._init_axis()
 File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py",
line 470, in _init_axis
 self.xaxis = XAxis(self)
 File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axis.py",
line 514, in __init__
 self.cla()
 File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axis.py",
line 535, in cla
 self.set_major_formatter(ScalarFormatter())
 File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ticker.py",
line 271, in __init__
 self._powerlimits = rcParams['axes.formatter.limits']
KeyError: 'axes.formatter.limits'
-- 
Chris Fonnesbeck + Atlanta, GA + http://trichech.us
From: Fernando P. <fpe...@gm...> - 2007年01月31日 17:18:13
On 1/31/07, Chris Fonnesbeck <ch...@tr...> wrote:
> I am still getting this problem. Here is an ipython traceback of a very
> simple plot:
>
> In [1]: from pylab import *
Chris, try
xmode verbose
in ipython right before running your code. This will make the
traceback dump even more detail, which may help John and his evil
minions track down your little critter even faster.
Cheers,
f
From: John H. <jdh...@ac...> - 2007年01月31日 16:57:06
>>>>> "Chris" == Chris Fonnesbeck <ch...@tr...> writes:
 Chris> The thing is, I deleted my entire ~/.matplotlib directory,
 Chris> hoping to start clean. Where does matplotlib get its info
 Chris> when a .matplotlibrc is not present in my home directory?
It first looks in the current working dir and then in ~/.matplotlib
Try running a sample script with --verbose-helpful and it will tell
you which file is being read...
JDH
From: Christopher B. <Chr...@no...> - 2007年01月31日 16:53:56
Gary Ruben wrote:
> I just picked up a problem posted over on the numpy list. I noticed that
> from pylab import * is importing the oldnumeric-wrapper versions of
> zeros(), ones() and empty(), and presumably other things too, into the
> interactive namespace. Shouldn't it be picking up the versions from
> numpy's main namespace for interactive use?
My understanding is that pylab (and Numerix) is maintaining backward 
compatibility with itself, so the oldnumeric form is the right one.
Another reason NOT to EVER use "import *"
Before too long, hopefully we'll only have to deal with numpy.
-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: Chris F. <ch...@tr...> - 2007年01月31日 16:41:00
On 1/6/07, Eric Firing <ef...@ha...> wrote:
>
> Chris,
>
> I suspect it is a problem with your matplotlibrc file; you could try
> stripping it down to bare minimum, as in the svn root directory.
> Another possibility is that your update is somehow incomplete or
> scrambled with an earlier installation.
>
> If that doesn't work, try making a minimal script that illustrates the
> problem.
>
> examples/newscalarformatter_demo.py works fine, so I don't think the
> basic subplot mechanism is broken.
>
>
> Chris Fonnesbeck wrote:
> > I have just updated to a matplotlib build from SVN, and now all my
> > subplots generate errors:
> >
> > (Pdb) rows
> > Out[3]: 2
> > (Pdb) columns
> > Out[3]: 2
> > (Pdb) num
> > Out[3]: 1
> > (Pdb) subplot(rows, columns, num)
> > *** KeyError: 'axes.formatter.limits'
>
> I think this is a valid key in rcParams.
>
> Doesn't the error trigger a full traceback that shows where it is coming
> from?
>
>
I am still getting this problem. Here is an ipython traceback of a very
simple plot:
In [1]: from pylab import *
In [2]: plot([3,45,6],[7,9,2])
---------------------------------------------------------------------------
exceptions.KeyError Traceback (most recent
call last)
/Users/chris/<ipython console>
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py
in plot(*args, **kwargs)
 2036 def plot(*args, **kwargs):
 2037 # allow callers to override the hold state by passing
hold=True|False
-> 2038 b = ishold()
 2039 h = popd(kwargs, 'hold', None)
 2040 if h is not None:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py
in ishold()
 935 Return the hold status of the current axes
 936 """
--> 937 return gca().ishold()
 938
 939 def isinteractive():
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py
in gca(**kwargs)
 881 """
 882
--> 883 ax = gcf().gca(**kwargs)
 884 return ax
 885
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/figure.py
in gca(self, **kwargs)
 677 ax = self._axstack()
 678 if ax is not None: return ax
--> 679 return self.add_subplot(111, **kwargs)
 680 gca.__doc__ = dedent(gca.__doc__) % artist.kwdocd
 681
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/figure.py
in add_subplot(self, *args, **kwargs)
 504 a = PolarSubplot(self, *args, **kwargs)
 505 else:
--> 506 a = Subplot(self, *args, **kwargs)
 507
 508
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py
in __init__(self, fig, *args, **kwargs)
 4909 """
 4910 SubplotBase.__init__(self, fig, *args)
-> 4911 Axes.__init__(self, fig, [self.figLeft, self.figBottom,
 4912 self.figW, self.figH], **kwargs)
 4913
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py
in __init__(self, fig, rect, axisbg, frameon, sharex, sharey, label,
**kwargs)
 437
 438 # this call may differ for non-sep axes, eg polar
--> 439 self._init_axis()
 440
 441
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py
in _init_axis(self)
 468 def _init_axis(self):
 469 "move this out of __init__ because non-separable axes don't
use it"
--> 470 self.xaxis = XAxis(self)
 471 self.yaxis = YAxis(self)
 472
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axis.py
in __init__(self, axes)
 512 self.minorTicks = []
 513
--> 514 self.cla()
 515
 516 def get_children(self):
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axis.py
in cla(self)
 533 'clear the current axis'
 534 self.set_major_locator(AutoLocator())
--> 535 self.set_major_formatter(ScalarFormatter())
 536 self.set_minor_locator(NullLocator())
 537 self.set_minor_formatter(NullFormatter())
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ticker.py
in __init__(self, useOffset, useMathText)
 269 self.format = ''
 270 self._scientific = True
--> 271 self._powerlimits = rcParams['axes.formatter.limits']
 272
 273 def __call__(self, x, pos=None):
KeyError: 'axes.formatter.limits'
The thing is, I deleted my entire ~/.matplotlib directory, hoping to start
clean. Where does matplotlib get its info when a .matplotlibrc is not
present in my home directory?
Thanks
-- 
Chris Fonnesbeck + Atlanta, GA + http://trichech.us
From: Gary R. <gr...@bi...> - 2007年01月31日 14:10:20
I just picked up a problem posted over on the numpy list. I noticed that
from pylab import * is importing the oldnumeric-wrapper versions of
zeros(), ones() and empty(), and presumably other things too, into the
interactive namespace. Shouldn't it be picking up the versions from
numpy's main namespace for interactive use?
I picked this up because I use "ipython -pylab" and noticed that zeros()
etc. was generating integers instead of floats by default.
In ipython:
 Welcome to pylab, a matplotlib-based Python environment.
 For more information, type 'help(pylab)'.
In [1]: zeros?
Type: function
Base Class: <type 'function'>
String Form: <function zeros at 0x010CA3F0>
Namespace: Interactive
File: c:\python24\lib\site-packages\numpy\oldnumeric\functions.py
Definition: zeros(shape, typecode='l', savespace=0, dtype=None)
Docstring:
 zeros(shape, dtype=int) returns an array of the given
dimensions which is initialized to all zeros
In [2]: import numpy as n
In [3]: n.zeros?
Type: builtin_function_or_method
Base Class: <type 'builtin_function_or_method'>
String Form: <built-in function zeros>
Namespace: Interactive
Docstring:
 zeros((d1,...,dn),dtype=float,order='C')
Return a new array of shape (d1,...,dn) and type typecode with all
it's entries initialized to zero.
--
Gary R.
From: Stephen G. <ste...@op...> - 2007年01月31日 00:04:57
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
 <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Has anyone else noticed a problem when saving an image (png) on windows.<br>
Hard to describe, .. but it seems that if there is lots of data to plot
and window size too big, or maximized, it cannot save the full plot
data stopping half way. (plot look fine on window). ....&nbsp; Interesting
reducing the window size can get to the point where can save the full
image.<br>
<br>
Good plot (small window size)<br>
<a class="moz-txt-link-freetext" href="http://members.optusnet.com.au/~steve_geo/MatPlotLibTests/12p5KInternalIR_InputGndGood.png">http://members.optusnet.com.au/~steve_geo/MatPlotLibTests/12p5KInternalIR_InputGndGood.png</a><br>
<br>
Failed plot (larger window size)<br>
<a class="moz-txt-link-freetext" href="http://members.optusnet.com.au/~steve_geo/MatPlotLibTests/12p5KInternalIR_InputGndFailed.png">http://members.optusnet.com.au/~steve_geo/MatPlotLibTests/12p5KInternalIR_InputGndFailed.png</a><br>
<br>
I get the same problem on two different systems:<br>
<b>Windows XP &amp; Python 2.4 &amp; matplotlib &amp; numarray 1.5.2</b><br>
matplotlib installed from matplotlib-0.87.6.win32-py2.4.exe<br>
matplotlibrc has <br>
<blockquote><i>backend&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : TkAgg<br>
numerix&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : numarray&nbsp; # numpy, Numeric or numarray<br>
interactive&nbsp; : False&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # see <br>
 </i></blockquote>
<br>
<b>Windows 2000 &amp; Python 2.5 &amp; matplotlib &amp; numpy 1.0</b><br>
matplotlib installed from matplotlib-0.87.7.win32-py2.5.exe<br>
matplotlibrc has <br>
<blockquote><i>backend&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : TkAgg</i><br>
 <i>numerix&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : numpy&nbsp; # numpy, Numeric or numarray</i><br>
 <i>#interactive&nbsp; : False&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # see <a class="moz-txt-link-freetext" href="http://matplotlib.s">http://matplotlib.s</a></i><br>
</blockquote>
<br>
find my data here<br>
<a class="moz-txt-link-freetext" href="http://members.optusnet.com.au/~steve_geo/MatPlotLibTests/ScanDataInternalIR_GndInput.log">http://members.optusnet.com.au/~steve_geo/MatPlotLibTests/ScanDataInternalIR_GndInput.log</a><br>
<br>
and the script here (only tested with numpy and numarray)<br>
<a class="moz-txt-link-freetext" href="http://members.optusnet.com.au/~steve_geo/MatPlotLibTests/irplot24.py">http://members.optusnet.com.au/~steve_geo/MatPlotLibTests/irplot24.py</a><br>
<br>
the command to reproduce the test is <br>
<font face="Courier New, Courier, monospace">irplot24.py --second=fft
--target=600000 ScanDataInternalIR_GndInput.log<br>
<br>
=================<br>
</font>Also it's also interesting to note the difference in load time
(sec) of the data between numarray and numpy for the same data.<br>
<b>Windows </b><b>2000 </b><b>&amp; Python 2.4 &amp; matplotlib &amp;
numarray</b><br>
X:\srg\MatPlotLibTests&gt;c:\python24\python ..\irplot24.py
--second=fft --target=600000 ScanDataInternalIR_GndInput.log<br>
Importing pylab library ........ 1.685<br>
Opening file and loading array .<b> 3.999<br>
</b><br>
<b>Windows 2000 &amp; Python 2.5 &amp; matplotlib &amp; numpy</b><br>
X:\srg\MatPlotLibTests&gt;c:\python25\python ..\irplot24.py
--second=fft --target=600000 ScanDataInternalIR_GndInput.log<br>
Importing pylab library ........ 0.882<br>
Opening file and loading array . <b>10.687</b><br>
<br>
<font face="Courier New, Courier, monospace"><br>
<br>
</font>Thanks for any comments<br>
Steve<font face="Courier New, Courier, monospace"><br>
</font>
</body>
</html>
From: Alex P. <pl...@tx...> - 2007年01月30日 18:07:43
Hi,
Has anyone had experience running matplotlib in conjunction with 
mpi4py/mpich2 on Windows?
The following program hangs (python 2.4), even when running with 
mpiexec -n 1 python <test.py>:
import pylab
from mpi4py import MPI
pylab.plot([1,2,3])
pylab.show()
but runs once the line pylab.show() is commented out. I haven't seen 
that behavior on Linux or Mac OS X. Thanks in advance for your help.
--Alex
From: Blake G. <bl...@bl...> - 2007年01月29日 14:42:21
Are matplotlib 64-bit Windows binaries available anywhere on the net? I'm
running 64-bit Python (2.3 and 2.4) and I'm having trouble finding a
compatible matplotlib to use with it.
-Blake
From: Darren D. <dd...@co...> - 2007年01月29日 03:29:49
On Sunday 28 January 2007 10:07:26 pm Jonathon Anderson wrote:
> It seems that xlim/ylim only set outside bounds. (Don't plot less than min,
> or more than max.) Is there any way to specify a plot range even if there's
> no data there? Like, if my graph plots [5,6,7,8], [5,7,3,6] could I specify
> that my plot should display x and y from 0 to 10?
it is straight forward:
plot([5,6,7,8],[5,7,3,6])
xlim(0,10)
ylim(0,10)
From: Jonathon A. <and...@gm...> - 2007年01月29日 03:07:31
It seems that xlim/ylim only set outside bounds. (Don't plot less than min,
or more than max.) Is there any way to specify a plot range even if there's
no data there? Like, if my graph plots [5,6,7,8], [5,7,3,6] could I specify
that my plot should display x and y from 0 to 10?
~jonathon anderson
From: Fernando P. <fpe...@gm...> - 2007年01月27日 18:46:37
On 1/27/07, Eric Firing <ef...@ha...> wrote:
> Fernando,
>
> I think it is OK in svn now.
Much better, thanks!
Regards,
f
From: Eric F. <ef...@ha...> - 2007年01月27日 18:33:58
Fernando,
I think it is OK in svn now.
Eric
Fernando Perez wrote:
> Hi all,
> 
> this simple test
> 
> plot([3e-6,3e-5,3e-4])
> 
> 
> produces with current SVN a vertical axis with all labels as '0'. I
> first saw this with some actual data I was working with this week, and
> I imagine this isn't intended behavior.
> 
> It's not a big deal, but I figured I'd report it.
> 
> Cheers,
> 
> f
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Eric F. <ef...@ha...> - 2007年01月27日 17:20:08
Fernando,
Thanks. That looks like a consequence of a change I made in the default 
switchover threshold between scientific notation and ordinary. I will 
be happy to fix it, later today, I hope. It's a pretty big bug.
Eric
Fernando Perez wrote:
> Hi all,
> 
> this simple test
> 
> plot([3e-6,3e-5,3e-4])
> 
> 
> produces with current SVN a vertical axis with all labels as '0'. I
> first saw this with some actual data I was working with this week, and
> I imagine this isn't intended behavior.
> 
> It's not a big deal, but I figured I'd report it.
> 
> Cheers,
> 
> f
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: John T W. <joh...@li...> - 2007年01月27日 10:46:50
On 2007年1月26日, Andrew Straw wrote:
> You may be encountering this bug: 
> http://code.astraw.com/debian_sarge_libc.html
Thanks for the tip. I didn't manage to patch the bug in glibc6, but
based the discussion in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=279294
I tried uninstalling my atlas3-sse packages, and the problem went
away.
-- 
======================================================================
Office: 0.17 (Golm) Dr. John T. Whelan
Phone: +49 331 567 7117 Albert-Einstein Institute
FAX: +49 331 567 7298 Am Muehlenberg 1
http://www.aei.mpg.de/~whelan/ D-14476 Potsdam
joh...@li... joh...@ae...
======================================================================
From: Fernando P. <fpe...@gm...> - 2007年01月27日 09:46:18
Hi all,
this simple test
plot([3e-6,3e-5,3e-4])
produces with current SVN a vertical axis with all labels as '0'. I
first saw this with some actual data I was working with this week, and
I imagine this isn't intended behavior.
It's not a big deal, but I figured I'd report it.
Cheers,
f
3 messages has been excluded from this view by a project administrator.

Showing results of 257

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