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






Showing 10 results of 10

From: Eric F. <ef...@ha...> - 2006年12月09日 07:51:12
belinda thom wrote:
> Hi,
> 
> I could've sworn I recently read about how to draw a line on a plot 
> in such a way that you see it regardless of what the axis ranges are.
If you need horizontal or vertical lines specified in normalized 
coordinates (0 to 1 spans the axes) then you can use the Axes.axhline() 
and Axes.axvline() methods or their pylab function counterparts. There 
are also methods for specifying the length of the line in normalized 
coordinates and the position in data coordinates: axhspan() and 
axvspan(). See examples/axhspan.py for examples of both types using the 
pylab interface.
Eric
From: Eric F. <ef...@ha...> - 2006年12月09日 07:40:51
Alan G Isaac wrote:
> I assume there must be a reason for this::
> 
> >>> import pylab
> >>> pylab.__version__
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> AttributeError: 'module' object has no attribute '__version__'
> 
> That has always bothered me.
> But of course you can::
> 
> >>> import matplotlib
> >>> matplotlib.__version__
> '0.87.7'
After a little experimentation I have tentatively concluded that 
__version__ only gets imported if it is a package attribute--that is, if 
it is defined in __init__.py. Matplotlib is a package but pylab is just 
a module, so it does not seem to be possible to give it matplotlib's 
__version__. I could not find anything in the python documentation 
about this, though.
Eric
From: belinda t. <bt...@cs...> - 2006年12月09日 07:03:14
Hi,
I could've sworn I recently read about how to draw a line on a plot 
in such a way that you see it regardless of what the axis ranges are.
Now that I need it, I can't find it anywhere. I'm not even sure what 
to search for.
I suspect this is really trivial and hope some more advanced users 
can enlighten me.
Thanks,
--b
From: belinda t. <bt...@cs...> - 2006年12月09日 06:53:46
Hello,
Regarding http://matplotlib.sourceforge.net/installing.html, there is 
some unreliable info.
In particular, under the OS X topic,
"Robery Kern has built an all-in-one installer which includes scipy, 
Numeric, numarray, matplotlib, ipython, VTK, MayaVi, PIL, the 
enthought tool suite and much more; see >MacEnthon."
should be removed.
Whoever maintains this page should make the appropriate change.
On Dec 6, 2006, at 11:38 PM, Robert Kern wrote:
> belinda thom wrote:
>> I do not want to compile code myself unless absolutely necessary. I
>> was wondering what was up with the "MacEnton" suite; clicking on the
>> link described at the above web page informs me that the "MacEnthon"
>> page does not exist.
>
> Umm, ignore it. It targetted a now-old Python distribution, and I 
> don't have
> time to update it anymore. References recommending it should be 
> removed.
>
> -- 
> Robert Kern
From: Barry W. <bar...@gm...> - 2006年12月09日 06:36:32
In the process of creating a Cocoa app for scientific data
acquisition, I've built an NSImageView subclass that displays an MPL
figure in the Cocoa NSView hierarchy. It's based on the CocoaAgg
backend code in MPL. There are also some subclasses that allow the use
of Cocoa Bindings to supply the data, axis labels, and units for the
figure. Finally, I've created an IB palette for adding one of the
PlotView subclasses to a Cocoa app and setting its bindings in
Interface Builder.
For plotting data passed via NSData instances is converted to a numpy
array via numpy.frombuffer using the PlotView's .dtype parameter as
the array dtype (see the source for DataPlotView in PlotView.py).
I think the ability to have such a powerful plotting library available
from Cocoa with so few lines of code illustrates the huge power of the
combination of Cocoa, PyObjC, and the many good Python libraries such
as MPL.
CocoaMPLPlotView requires PyObjc, numpy, and matplotlib.
You can download a copy of the CocoaMPLPlotView and
CocoaMPLPlotViewPalette source from
http://fairhall-lab.physiol.washington.edu/~bwark/mpl/.
I don't have time to provide support for these, but would love to hear
if anyone finds them useful. Obviously if you have comments, bugs, or
patches, I'd love to hear those as well. Happy coding.
Thanks,
Barry
From: Gary R. <gr...@bi...> - 2006年12月09日 05:39:00
Sorry John,
I see this was fixed a while ago - I was still using 0.87.3 from the 
last Enthought edition. Now that there's a scipy installer, I should 
upgrade numpy/scipy/mpl to something more current.
Gary R.
Gary Ruben wrote:
> While I think of it, I think the default zorder of legends should be 
> bigger so that, by default it overlays all plot lines and symbols.
> 
> Gary R.
From: Alan G I. <ai...@am...> - 2006年12月09日 05:29:25
I assume there must be a reason for this::
 >>> import pylab
 >>> pylab.__version__
 Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 AttributeError: 'module' object has no attribute '__version__'
That has always bothered me.
But of course you can::
 >>> import matplotlib
 >>> matplotlib.__version__
 '0.87.7'
hth,
Alan Isaac
From: Josh L. <li...@me...> - 2006年12月09日 05:15:19
I didn't see it either. For questions like this, I recommend heading to
the #python channel on irc.freenode.net. If you find out how, please
post.
josh
On Fri, 8 Dec 2006, belinda thom wrote:
> Hi,
>
> Perhaps I'm missing something really basic, but I can't figure out
> how to query pylab as to what version it is (the usual import <foo>,
> <foo>.__version doesn't work).
>
> Advice appreciated.
>
> --b
>
> -------------------------------------------------------------------------
> 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: belinda t. <bt...@cs...> - 2006年12月09日 05:04:25
Hi,
Perhaps I'm missing something really basic, but I can't figure out 
how to query pylab as to what version it is (the usual import <foo>, 
<foo>.__version doesn't work).
Advice appreciated.
--b
Hi again,
At http://matplotlib.sourceforge.net/installing.html under topic OS X:
 "All of the backends run on OS X. Chris Barker has built a binary 
package (fink users see below) for matplotlib which is hosted on 
pythonmac, and works with Agg, Wx and Tk; see the step-by-step 
instructions kindly provided by Michael Tobis."
note that the step-by-step link leads to:
 Under revision. Please come back soon.
------
It is because I've had some installation troubles that I have been 
looking at the OS X install info so closely.
For instance: originally I tried to use macports for all python site- 
packages-related installs (as well as using their python24). The ONLY 
backend that seems to work thru that route is WxAgg (http:// 
howdy.physics.nyu.edu/index.php/Numpy_For_Mac_Using_MacPython 
corroborates this). I was able to achieve results w/backend WxAgg and 
numerix Numeric. However, when I tried to change the toolbar to 
classic, WxAgg crapped out.
W/MacPorts, I've been able to get the TkAgg backend to work, but 
_NOT_ with numerix set to Numeric. Success was only achieved w/TkAgg 
when numerix was set to Numpy. When I try the WXAgg backend (along w/ 
the pythonmac 2.6.3.3 wxPython dmg for python 2.4), a simple plot 
([1,2,3]) craps out with:
exceptions.MemoryError Traceback (most 
recent call last)
<snip>
---> 63 self.bitmap = _convert_agg_to_wx_bitmap 
(self.get_renderer(), None)
 64 if repaint:
 65 self.gui_repaint()
<snip>
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the 
wx.Bitmap

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