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

Showing 7 results of 7

From: Matthieu B. <mat...@gm...> - 2007年03月12日 18:19:59
>
> What version of mpl are you using?
The latest, I compiled it from the source as FC5 has a very old version -
can't update myself the distribution -
In recent versions, the collections should accept 2D numpy arrays as
> well as any sequence of tuples (and several other possibilities).
For 2D plots, numpy arrays is accepted - but not for colors, it tells me
there is a problem with tuples, I do not remember exactly, but I can check
the error tomorrow -.
For 3D plots, the offsets must be special, I suppose, as the array must be
iterated on with a zip, I don't know why there is this need, but I didn't
write it :) This difference in format is akward :| And the fact that the
example file cannot be executed is still stranger.
Autoscaling does not work well with arbitrary collections because there
> is a chicken-and-egg problem: a collection member may be drawn in pixels
> or other physical units, in which case its size in data units cannot be
> determined until it is drawn with a given xlim and ylim (and sometimes
> dpi).
That is not my worst problem, I imposed the limits and it works now like a
charm :)
Matthieu
From: Eric F. <ef...@ha...> - 2007年03月12日 18:07:49
Matthieu Brucher wrote:
> I manage to do what I wanted to do, it was not that easy - the colours 
> were in an array I had to transform into an array of tuples, the 
> autoscale did not function, I had to put in the fig.subplot the correct 
> xlim and ylim -, but now it works like a charm.
> Many thanks.
What version of mpl are you using?
In recent versions, the collections should accept 2D numpy arrays as 
well as any sequence of tuples (and several other possibilities).
Autoscaling does not work well with arbitrary collections because there 
is a chicken-and-egg problem: a collection member may be drawn in pixels 
or other physical units, in which case its size in data units cannot be 
determined until it is drawn with a given xlim and ylim (and sometimes dpi).
Eric
From: Matthieu B. <mat...@gm...> - 2007年03月12日 18:00:52
>
> There may be, but all 3D plotting is shaky right now. The 3D code is
> essentially unmaintained and unsupported.
>
> Eric
>
Sad to hear this, I hope someone will enhance it :)
Matthieu
From: Eric F. <ef...@ha...> - 2007年03月12日 17:53:21
Matthieu Brucher wrote:
> OK, I'm trying to the same but in 3D, and there, no documentaion.
> I tried to launch axes3d.py to see exactly what I can do, but the 
> example file does not work. For instance, Axes3D takes two parameters 
> for method __init__ and only one is provided. Did someone test it ?
> I'm trying to use collection as well, but for once I prefer MatLab 
> simplicity here, it's way to complicated, some arguments must be zipped, 
> other are passed not in the collection, but when the collection is added 
> to the subplot, ...
> Is there a simple and clear way to do 3D plotting with collections ?
There may be, but all 3D plotting is shaky right now. The 3D code is 
essentially unmaintained and unsupported.
Eric
Hi All,
 I am using matplotlib-0.90.0 with numpy-1.0.1 for my python
program which I later convert in to an executable with the help of
pyinstaller,
I am installing matplotlib-0.90.0 from source and it installs fine.when
I create the executable of my program (I include matplotlib as a .pkg in
it) and run it
I get the following error only on linux , it fails at with this message
=20
matplotlib._ns_transforms.so: undefined symbol:
_ZNSs4_Rep20_S_empty_rep_storage
=20
but same set of source of matplotlib-0.90.0 with numpy-1.0.1 installed
from source works fine on windows and solaris,any idea what is going
wrong here?
I am using gcc version 3.4.3 on red hat linux 2.6.9-11
=20
Here is the complete stack trace
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Extracting mpl-data.pkg data ... ok
Extracting numpy.pkg data ... ok
working dir /home/rik/output/var/projects
/home/rik/are_new/exe/linux/buildare_top/out1.pyz/matplotlib:931:
UserWarning: Could not find matplotlibrc; using defaults
/home/rik/are_new/exe/linux/buildare_top/out1.pyz/matplotlib:982:
UserWarning: could not find rc file; returning defaults
=20
The import of the numpy version of the _transforms module,
_ns_transforms, failed. This is is either because numpy was
unavailable when matplotlib was compiled, because a dependency of
_ns_transforms could not be satisfied, or because the build flag for
this module was turned off in setup.py. If it appears that
_ns_transforms was not built, make sure you have a working copy of
numpy and then re-install matplotlib. Otherwise, the following
traceback gives more details:
=20
Traceback (most recent call last):
 File "/home/rik/are_new/exe/linux/buildare_top/out1.pyz/exe_harness",
line 97, in __init__
 File "<string>", line 69, in dispatch
 File "<string>", line 109, in handleReportRequest
 File "/home/rik/pyinstaller-1.3/iu.py", line 312, in importHook
 mod =3D _self_doimport(nm, ctx, fqname)
 File "/home/rik/pyinstaller-1.3/iu.py", line 398, in doimport
 exec co in mod.__dict__
 File "/home/rik/are_new/exe/linux/buildare_top/out1.pyz/convert_dom",
line 12, in ?
 File "/home/rik/pyinstaller-1.3/iu.py", line 312, in importHook
 mod =3D _self_doimport(nm, ctx, fqname)
 File "/home/rik/pyinstaller-1.3/iu.py", line 398, in doimport
 exec co in mod.__dict__
 File "/home/rik/are_new/exe/linux/buildare_top/out1.pyz/report", line
29, in ?
 File "/home/rik/pyinstaller-1.3/iu.py", line 312, in importHook
 mod =3D _self_doimport(nm, ctx, fqname)
 File "/home/rik/pyinstaller-1.3/iu.py", line 398, in doimport
 exec co in mod.__dict__
 File "/home/rik/are_new/exe/linux/buildare_top/out1.pyz/page_setup",
line 14, in ?
 File "/home/rik/pyinstaller-1.3/iu.py", line 312, in importHook
 mod =3D _self_doimport(nm, ctx, fqname)
 File "/home/rik/pyinstaller-1.3/iu.py", line 398, in doimport
 exec co in mod.__dict__
 File "/home/rik/are_new/exe/linux/buildare_top/out1.pyz/graph_view",
line 11, in ?
 File "/home/rik/pyinstaller-1.3/iu.py", line 312, in importHook
 mod =3D _self_doimport(nm, ctx, fqname)
 File "/home/rik/pyinstaller-1.3/iu.py", line 398, in doimport
 exec co in mod.__dict__
 File "/home/rik/are_new/exe/linux/buildare_top/out1.pyz/pylab", line
1, in ?
 File "/home/rik/pyinstaller-1.3/iu.py", line 312, in importHook
 mod =3D _self_doimport(nm, ctx, fqname)
 File "/home/rik/pyinstaller-1.3/iu.py", line 398, in doimport
 exec co in mod.__dict__
 File
"/home/rik/are_new/exe/linux/buildare_top/out1.pyz/matplotlib.pylab",
line 203, in ?
 File "/home/rik/pyinstaller-1.3/iu.py", line 312, in importHook
 mod =3D _self_doimport(nm, ctx, fqname)
 File "/home/rik/pyinstaller-1.3/iu.py", line 398, in doimport
 exec co in mod.__dict__
 File
"/home/rik/are_new/exe/linux/buildare_top/out1.pyz/matplotlib.axes",
line 14, in ?
 File "/home/rik/pyinstaller-1.3/iu.py", line 312, in importHook
 mod =3D _self_doimport(nm, ctx, fqname)
 File "/home/rik/pyinstaller-1.3/iu.py", line 398, in doimport
 exec co in mod.__dict__
 File
"/home/rik/are_new/exe/linux/buildare_top/out1.pyz/matplotlib.artist",
line 4, in ?
 File "/home/rik/pyinstaller-1.3/iu.py", line 312, in importHook
 mod =3D _self_doimport(nm, ctx, fqname)
 File "/home/rik/pyinstaller-1.3/iu.py", line 398, in doimport
 exec co in mod.__dict__
 File
"/home/rik/are_new/exe/linux/buildare_top/out1.pyz/matplotlib.transforms
", line 223, in ?
 File "/home/rik/pyinstaller-1.3/iu.py", line 312, in importHook
 mod =3D _self_doimport(nm, ctx, fqname)
 File "/home/rik/pyinstaller-1.3/iu.py", line 398, in doimport
 exec co in mod.__dict__
 File
"/home/rik/are_new/exe/linux/buildare_top/out1.pyz/matplotlib._transform
s", line 17, in ?
 File "/home/rik/pyinstaller-1.3/iu.py", line 312, in importHook
 mod =3D _self_doimport(nm, ctx, fqname)
 File "/home/rik/pyinstaller-1.3/iu.py", line 373, in doimport
 mod =3D importfunc(nm)
 File "/home/rik/pyinstaller-1.3/iu.py", line 215, in getmod
 mod =3D owner.getmod(nm)
 File "/home/rik/pyinstaller-1.3/archive.py", line 409, in getmod
 return iu.DirOwner.getmod(self, self.prefix+'.'+nm)
 File "/home/rik/pyinstaller-1.3/iu.py", line 77, in getmod
 mod =3D imp.load_module(nm, fp, attempt, (ext, mode, typ))
ImportError: /tmp/_MEI22558/matplotlib._ns_transforms.so: undefined
symbol: _ZNSs4_Rep20_S_empty_rep_storageE
=20
Regards
Rishi
This email and any files transmitted with it are confidential, proprietar=
y
and intended solely for the individual or entity to whom they are address=
ed.
If you have received this email in error please delete it immediately.
=0D
From: Matthieu B. <mat...@gm...> - 2007年03月12日 09:45:42
OK, I'm trying to the same but in 3D, and there, no documentaion.
I tried to launch axes3d.py to see exactly what I can do, but the example
file does not work. For instance, Axes3D takes two parameters for method
__init__ and only one is provided. Did someone test it ?
I'm trying to use collection as well, but for once I prefer MatLab
simplicity here, it's way to complicated, some arguments must be zipped,
other are passed not in the collection, but when the collection is added to
the subplot, ...
Is there a simple and clear way to do 3D plotting with collections ?
Matthieu
2007年3月12日, Matthieu Brucher <mat...@gm...>:
>
> I manage to do what I wanted to do, it was not that easy - the colours
> were in an array I had to transform into an array of tuples, the autoscale
> did not function, I had to put in the fig.subplot the correct xlim and
> ylim -, but now it works like a charm.
> Many thanks.
>
> Matthieu
>
> 2007年3月9日, John Hunter <jd...@gm...>:
> >
> > On 3/9/07, Matthieu Brucher <mat...@gm...> wrote:
> >
> > > What I have is a set of points in a numpy.array - for instance size
> > (2000,
> > > 2) -. What I have as well is a nump.array of size (2000, 3). How can I
> > make
> > > plot understand that each line of the set points must be painted with
> > the
> > > corresponding line in the colour array ?
> >
> > You'll probably want to use a regular poly collection, as in the
> > example below. Your array of facecolors can pretty much be whatever
> > you want:
> >
> > from pylab import figure, nx, show, cm
> > from matplotlib.collections import RegularPolyCollection
> >
> >
> > fig = figure()
> > ax = fig.add_subplot(111)
> >
> > offsets = nx.mlab.rand(20,2)
> > facecolors = [cm.jet(x) for x in nx.mlab.rand(20)]
> > black = (0,0,0,1)
> >
> > collection = RegularPolyCollection(
> > fig.dpi,
> > numsides=5, # a pentagon
> > rotation=0,
> > sizes=(50,),
> > facecolors = facecolors,
> > edgecolors = (black,),
> > linewidths = (1,),
> > offsets = offsets,
> > transOffset = ax.transData,
> > )
> >
> > ax.add_collection (collection)
> >
> > show()
> >
> >
> >
> >
> >
> >
> >
> > > Matthieu
> > >
> > >
> > -------------------------------------------------------------------------
> > > 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: Matthieu B. <mat...@gm...> - 2007年03月12日 09:08:20
I manage to do what I wanted to do, it was not that easy - the colours were
in an array I had to transform into an array of tuples, the autoscale did
not function, I had to put in the fig.subplot the correct xlim and ylim -,
but now it works like a charm.
Many thanks.
Matthieu
2007年3月9日, John Hunter <jd...@gm...>:
>
> On 3/9/07, Matthieu Brucher <mat...@gm...> wrote:
>
> > What I have is a set of points in a numpy.array - for instance size
> (2000,
> > 2) -. What I have as well is a nump.array of size (2000, 3). How can I
> make
> > plot understand that each line of the set points must be painted with
> the
> > corresponding line in the colour array ?
>
> You'll probably want to use a regular poly collection, as in the
> example below. Your array of facecolors can pretty much be whatever
> you want:
>
> from pylab import figure, nx, show, cm
> from matplotlib.collections import RegularPolyCollection
>
>
> fig = figure()
> ax = fig.add_subplot(111)
>
> offsets = nx.mlab.rand(20,2)
> facecolors = [cm.jet(x) for x in nx.mlab.rand(20)]
> black = (0,0,0,1)
>
> collection = RegularPolyCollection(
> fig.dpi,
> numsides=5, # a pentagon
> rotation=0,
> sizes=(50,),
> facecolors = facecolors,
> edgecolors = (black,),
> linewidths = (1,),
> offsets = offsets,
> transOffset = ax.transData,
> )
>
> ax.add_collection(collection)
>
> show()
>
>
>
>
>
>
>
> > Matthieu
> >
> >
> -------------------------------------------------------------------------
> > 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
> >
> >
>

Showing 7 results of 7

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