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

Showing 14 results of 14

From: Benjamin R. <ben...@ou...> - 2012年03月07日 20:30:12
On Wed, Mar 7, 2012 at 12:44 PM, Michael Droettboom <md...@st...> wrote:
> On 03/07/2012 01:39 PM, John Hunter wrote:
>
>
>
> On Wed, Mar 7, 2012 at 12:31 PM, Michael Droettboom <md...@st...>wrote:
>
>> I agree that the deprecation process should have been followed better.
>> However, I'm not sure what you mean by them being faster than their Pyhton
>> counterparts. Both functions in nxutils are replaced by functions in
>> _path.cpp, which are also written in C++ but are more complete and don't
>> have broken corner cases. They may be slightly slower because they have a
>> few more checks and handle Bezier curves, but they are not significantly
>> slower.
>>
>
>
> What about providing a python module nxutils in master (1.2) that has
> the same signature as the old nxutils extension code, calls the path
> functionality, and raises a deprecation warning with suggested a suggested
> code migration? And then remove it for 1.3
>
> Yeah. I think that's a good way out of this. I'll file a bug and
> self-assign.
>
> Mike
>
>
Thanks for that. As for timing, I have no hard numbers. In fact, after
some checking, I just realized that my app that has been using nxutils
still even though I am on master! Maybe my slowdown was a coincidence with
other changes I have made?
Everyone should remember to clear out nxutils.so because the build/clean
process won't necessarially do it unless you blow away your install dir.
Ben Root
From: Michael D. <md...@st...> - 2012年03月07日 19:26:11
It would be a nice idea. I'm not sure it's something that would work 
terribly well in vector backends as the images may not scale well. I 
should mention that there is already support to use arbitrary Unicode 
characters or math expressions as markers already, which does work well 
in vector backends.
Mike
On 03/07/2012 01:59 PM, C M wrote:
> I've for now taken a different approach that means I won't need custom 
> markers from images.
>
> But I'm just curious: is there any wish/plans in Matplotlib to add 
> support for this? I think it could do a lot to expand what's possible 
> in terms of the look and feel of plots (even without things drifing 
> into USA Today territory!).
>
> Just my 0ドル.02
>
> Che
>
>
> ------------------------------------------------------------------------------
> Virtualization& Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Eric F. <ef...@ha...> - 2012年03月07日 19:22:49
On 03/07/2012 04:51 AM, Giovanni Plantageneto wrote:
> Dear all,
> after upgrading to 1.1.0 on my linux machine (from debian-backports), I
> get an error (Can't set Attribute) with code looking like this:
>
> from pylab import figure
> F=figure()
> F.axes=[]
>
> Why is this so? Incidentally, going back to the previous available
> version (0.99.3) solves the problem.
> Cheers.
Figure.axes is now a read-only property to keep people from shooting 
themselves in the foot, or worse. Figure axes are internally tracked 
via a stack (AxesStack instance) rather than being maintained as a 
simple list.
Eric
From: C M <cmp...@gm...> - 2012年03月07日 19:00:30
I've for now taken a different approach that means I won't need custom
markers from images.
But I'm just curious: is there any wish/plans in Matplotlib to add support
for this? I think it could do a lot to expand what's possible in terms of
the look and feel of plots (even without things drifing into USA Today
territory!).
Just my 0ドル.02
Che
From: Michael D. <md...@st...> - 2012年03月07日 18:48:53
On 03/07/2012 01:39 PM, John Hunter wrote:
>
>
> On Wed, Mar 7, 2012 at 12:31 PM, Michael Droettboom <md...@st... 
> <mailto:md...@st...>> wrote:
>
> I agree that the deprecation process should have been followed
> better. However, I'm not sure what you mean by them being faster
> than their Pyhton counterparts. Both functions in nxutils are
> replaced by functions in _path.cpp, which are also written in C++
> but are more complete and don't have broken corner cases. They
> may be slightly slower because they have a few more checks and
> handle Bezier curves, but they are not significantly slower.
>
>
>
> What about providing a python module nxutils in master (1.2) that has 
> the same signature as the old nxutils extension code, calls the path 
> functionality, and raises a deprecation warning with suggested a 
> suggested code migration? And then remove it for 1.3
>
Yeah. I think that's a good way out of this. I'll file a bug and 
self-assign.
Mike
From: John H. <jd...@gm...> - 2012年03月07日 18:39:36
On Wed, Mar 7, 2012 at 12:31 PM, Michael Droettboom <md...@st...> wrote:
> I agree that the deprecation process should have been followed better.
> However, I'm not sure what you mean by them being faster than their Pyhton
> counterparts. Both functions in nxutils are replaced by functions in
> _path.cpp, which are also written in C++ but are more complete and don't
> have broken corner cases. They may be slightly slower because they have a
> few more checks and handle Bezier curves, but they are not significantly
> slower.
>
What about providing a python module nxutils in master (1.2) that has the
same signature as the old nxutils extension code, calls the path
functionality, and raises a deprecation warning with suggested a suggested
code migration? And then remove it for 1.3
JDH
From: Michael D. <md...@st...> - 2012年03月07日 18:32:39
On 03/07/2012 11:59 AM, Benjamin Root wrote:
>
>
> On Wed, Mar 7, 2012 at 10:46 AM, Jorge Scandaliaris 
> <jor...@ya... <mailto:jor...@ya...>> wrote:
>
> Hi,
> I've had an import error with some of my code, specifically with
> nxutils (I need
> it for using points_inside_poly).
>
> In [1]: import matplotlib.nxutils as nx
> ---------------------------------------------------------------------------
> ImportError Traceback (most recent
> call last)
> /home/jscandal/<ipython-input-1-c56b9729b42e> in <module>()
> ----> 1 import matplotlib.nxutils as nx
>
> ImportError: No module named nxutils
>
> I built mpl from trunk and tried also version 1.1 from my distro,
> but neither
> seems to have nxutils. I still find the examples in the docs using
> it, though,
> so I am confused.
> Has nxutils been replaced or removed?
>
> Thanks
>
> Jorge
>
>
> Last I heard, it was supposed to be deprecated in master (although it 
> was accidentially removed at one point). Indeed, it appears to be 
> missing from the current master. The deprecation process must be 
> followed! Personally, I think such removal is short-sighted (nxutil's 
> functions are much faster than their python counter-parts).
I agree that the deprecation process should have been followed better. 
However, I'm not sure what you mean by them being faster than their 
Pyhton counterparts. Both functions in nxutils are replaced by 
functions in _path.cpp, which are also written in C++ but are more 
complete and don't have broken corner cases. They may be slightly 
slower because they have a few more checks and handle Bezier curves, 
but they are not significantly slower.
Mike
From: Benjamin R. <ben...@ou...> - 2012年03月07日 17:44:39
On Wed, Mar 7, 2012 at 11:31 AM, Jorge Scandaliaris
<jor...@ya...>wrote:
> Benjamin Root <ben.root@...> writes:
>
> >
> < snip >
> >
> > import matplotlib
> > print matplotlib.__version__
> > print matplotlib.__file__
> >
> > Ben Root
> >
> >
>
> You're right, 1.1 still has nxutils. What are the python counterparts you
> mention, are they in mpl?
>
> Thanks,
>
> Jorge
>
>
Essentially, you make a Path object using the vertices, and then use its
contains_point() method.
Ben Root
From: Jorge S. <jor...@ya...> - 2012年03月07日 17:31:33
Benjamin Root <ben.root@...> writes:
> 
< snip >
>
> import matplotlib
> print matplotlib.__version__
> print matplotlib.__file__
>
> Ben Root
> 
> 
You're right, 1.1 still has nxutils. What are the python counterparts you
mention, are they in mpl?
Thanks,
Jorge
From: Benjamin R. <ben...@ou...> - 2012年03月07日 16:59:35
On Wed, Mar 7, 2012 at 10:46 AM, Jorge Scandaliaris
<jor...@ya...>wrote:
> Hi,
> I've had an import error with some of my code, specifically with nxutils
> (I need
> it for using points_inside_poly).
>
> In [1]: import matplotlib.nxutils as nx
> ---------------------------------------------------------------------------
> ImportError Traceback (most recent call last)
> /home/jscandal/<ipython-input-1-c56b9729b42e> in <module>()
> ----> 1 import matplotlib.nxutils as nx
>
> ImportError: No module named nxutils
>
> I built mpl from trunk and tried also version 1.1 from my distro, but
> neither
> seems to have nxutils. I still find the examples in the docs using it,
> though,
> so I am confused.
> Has nxutils been replaced or removed?
>
> Thanks
>
> Jorge
>
>
Last I heard, it was supposed to be deprecated in master (although it was
accidentially removed at one point). Indeed, it appears to be missing from
the current master. The deprecation process must be followed! Personally,
I think such removal is short-sighted (nxutil's functions are much faster
than their python counter-parts).
However, it was still in v1.1.x. I suspect that when you tested v1.1.x,
you were really running the source build. Verify which version you are
testing with:
import matplotlib
print matplotlib.__version__
print matplotlib.__file__
Ben Root
From: Jorge S. <jor...@ya...> - 2012年03月07日 16:46:46
Hi,
I've had an import error with some of my code, specifically with nxutils (I need
it for using points_inside_poly). 
In [1]: import matplotlib.nxutils as nx
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/jscandal/<ipython-input-1-c56b9729b42e> in <module>()
----> 1 import matplotlib.nxutils as nx
ImportError: No module named nxutils
I built mpl from trunk and tried also version 1.1 from my distro, but neither
seems to have nxutils. I still find the examples in the docs using it, though,
so I am confused.
Has nxutils been replaced or removed? 
Thanks
Jorge
From: Giovanni P. <g.p...@gm...> - 2012年03月07日 14:52:12
Dear all,
after upgrading to 1.1.0 on my linux machine (from debian-backports), I get
an error (Can't set Attribute) with code looking like this:
from pylab import figure
F=figure()
F.axes=[]
Why is this so? Incidentally, going back to the previous available version
(0.99.3) solves the problem.
Cheers.
From: <av...@fa...> - 2012年03月07日 10:37:55
> Perhaps you should post that question for the numpy mailing list?
Thanks, I will try that. I have no clues
Cheers,
Lucia
> On Mon, Mar 5, 2012 at 1:47 PM, <av...@fa...> wrote:
>
>> > On Feb 23, 2012 1:39 PM, <av...@fa...> wrote:
>> >>
>> >> should I reinstall numpy?
>> >
>> > No need. You should be able to build matplotlib without sudo and then
>> > install with sudo
>> >
>> > python setup.py build
>> > sudo python setup.py install
>>
>> Yes! This is how it should be, but it's not.
>>
>> I have gone a litte further trying to solve this. I have found out the
>> following:
>>
>> If I do an import numpy in python run as user, it works. In fact,
>> 'python
>> setup.py build' works perfectly as user. But if I do an import numpy in
>> python run as root, I get the error I pasted in my previous message:
>>
>> :~/matplotlib$ sudo python
>> Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
>> [GCC 4.6.1] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import numpy
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> File "/usr/local/lib/python2.7/dist-packages/numpy/__init__.py", line
>> 137, in <module>
>> import add_newdocs
>> File "/usr/local/lib/python2.7/dist-packages/numpy/add_newdocs.py",
>> line
>> 9, in <module>
>> from numpy.lib import add_newdoc
>> File "/usr/local/lib/python2.7/dist-packages/numpy/lib/__init__.py",
>> line 13, in <module>
>> from polynomial import *
>> File "/usr/local/lib/python2.7/dist-packages/numpy/lib/polynomial.py",
>> line 17, in <module>
>> from numpy.linalg import eigvals, lstsq
>> File "/usr/local/lib/python2.7/dist-packages/numpy/linalg/__init__.py",
>> line 48, in <module>
>> from linalg import *
>> File "/usr/local/lib/python2.7/dist-packages/numpy/linalg/linalg.py",
>> line 23, in <module>
>> from numpy.linalg import lapack_lite
>> ImportError: libifport.so.5: cannot open shared object file: No such
>> file
>> or directory
>>
>> After that I thought it must be something about this libifport.so that
>> numpy uses, but...
>>
>> :~/matplotlib$ locate libifport
>> /opt/intel/Compiler/11.1/038/lib/intel64/libifport.a
>> /opt/intel/Compiler/11.1/038/lib/intel64/libifport.so
>> /opt/intel/Compiler/11.1/038/lib/intel64/libifport.so.5
>> :~/matplotlib$
>>
>> :~$ echo $LD_LIBRARY_PATH
>>
>> /opt/intel/Compiler/11.1/038/lib/intel64:/opt/intel/Compiler/11.1/038/mkl/lib/em64t
>> :~$ sudo -s
>> root@:~# echo $LD_LIBRARY_PATH
>>
>> /opt/intel/Compiler/11.1/038/lib/intel64:/opt/intel/Compiler/11.1/038/mkl/lib/em64t
>>
>> So I don't know why python fails to import numpy as root... and I don't
>> know why mpl's installer needs to import numpy to install what has
>> already
>> been built.
>>
>> I haven't been able to solve this issue yet. Thank you all very much for
>> all your help.
>>
>> Cheers,
>> Lucia.
>>
>>
>>
> Part of the build process imports numpy in order to check its version (I
> think). But the bigger question is why it fails as root. That is very
> odd.
>
> Perhaps you should post that question for the numpy mailing list?
>
> Cheers!
> Ben Root
>
From: Jerzy K. <jer...@un...> - 2012年03月07日 08:44:39
Mic:
> Hello,
> I am able to draw a histogram with the following code:
>
> /.../
> /h.hist(hist_data, bins=50, normed=True)/
>
> However, I don't know how to draw a line for median at 249 position 
> like in attachment.
Are your axes really matplotlib axes? (I have doubts, since the vertical 
is not normed, although your histogram is).
In your real axes, the command plot([249,249],[0,height]) draws a 
vertical line (there is a primitive vert. line as well), what is the 
problem??
Jerzy Karczmarczuk
1 message has been excluded from this view by a project administrator.

Showing 14 results of 14

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