SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S

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



Showing results of 112

<< < 1 .. 3 4 5 (Page 5 of 5)
From: Mark B. <ma...@gm...> - 2006年05月11日 07:32:42
Oops, no idea this was already implemented.
I recalled discussion about the topic from way back I guess.
I'll give it a shot.
To get back to the real topic: it would indeed be even nicer if we didn't
have to convert to rgba.
On 5/10/06, Eric Firing <ef...@ha...> wrote:
>
> John Hunter wrote:
> >>>>>>"Mark" =3D=3D Mark Bakker <ma...@gm...> writes:
> >
> >
> > Mark> Eric - If you are going to make changes here, would it be
> > Mark> possible to pass a sequence of colors, one for each line
> > Mark> segment in the collection. You can check, for example,
> > Mark> whether the length of the sequence is equal to the number of
> > Mark> segments. Would be very helpful for some people, as I have
> > Mark> seen requests for this possibility several times on the
> > Mark> list.
> >
> > Unless, I am misunderstanding you, you can already do that. For
> > example, this is what scatter and polor do to make each element of the
> > collection a different color.
> >
> > Eric is talking about a convenience function so that you can pass
> > arbitrary colors arguments rather than rgba, ie the equivalent of
> >
> > from matplotlib.colors import colorConverter
> > colors =3D [colorConverter.to_rgba(x) for x in 'yellow', 0.5, (1,0,0,=
0.5
> )]
> >
> > you can then pass colors to a collection with three elements and get
> > the three colors yellow, gray and transparent red
>
> Exactly. The convenience function already exists--it is
> Collection._get_color()--and it is already used in all the
> set_facecolor() and similar methods, but not in processing the
> initializer argument list. What I have in mind is simply using it at
> initialization time. I have not thought it through carefully yet,
> though; it is just something that came up while working on a new
> colorbar, and for the moment I am concentrating on the latter.
>
> Eric
>
>
>
From: Eric F. <ef...@ha...> - 2006年05月10日 17:58:27
John Hunter wrote:
>>>>>>"Mark" == Mark Bakker <ma...@gm...> writes:
> 
> 
> Mark> Eric - If you are going to make changes here, would it be
> Mark> possible to pass a sequence of colors, one for each line
> Mark> segment in the collection. You can check, for example,
> Mark> whether the length of the sequence is equal to the number of
> Mark> segments. Would be very helpful for some people, as I have
> Mark> seen requests for this possibility several times on the
> Mark> list.
> 
> Unless, I am misunderstanding you, you can already do that. For
> example, this is what scatter and polor do to make each element of the
> collection a different color.
> 
> Eric is talking about a convenience function so that you can pass
> arbitrary colors arguments rather than rgba, ie the equivalent of
> 
> from matplotlib.colors import colorConverter
> colors = [colorConverter.to_rgba(x) for x in 'yellow', 0.5, (1,0,0,0.5)]
> 
> you can then pass colors to a collection with three elements and get
> the three colors yellow, gray and transparent red
Exactly. The convenience function already exists--it is 
Collection._get_color()--and it is already used in all the 
set_facecolor() and similar methods, but not in processing the 
initializer argument list. What I have in mind is simply using it at 
initialization time. I have not thought it through carefully yet, 
though; it is just something that came up while working on a new 
colorbar, and for the moment I am concentrating on the latter.
Eric
From: John H. <jdh...@ac...> - 2006年05月10日 14:15:12
>>>>> "Mark" == Mark Bakker <ma...@gm...> writes:
 Mark> Eric - If you are going to make changes here, would it be
 Mark> possible to pass a sequence of colors, one for each line
 Mark> segment in the collection. You can check, for example,
 Mark> whether the length of the sequence is equal to the number of
 Mark> segments. Would be very helpful for some people, as I have
 Mark> seen requests for this possibility several times on the
 Mark> list.
Unless, I am misunderstanding you, you can already do that. For
example, this is what scatter and polor do to make each element of the
collection a different color.
Eric is talking about a convenience function so that you can pass
arbitrary colors arguments rather than rgba, ie the equivalent of
 from matplotlib.colors import colorConverter
 colors = [colorConverter.to_rgba(x) for x in 'yellow', 0.5, (1,0,0,0.5)]
you can then pass colors to a collection with three elements and get
the three colors yellow, gray and transparent red
JDH
From: Mark B. <ma...@gm...> - 2006年05月10日 09:29:18
Eric -
If you are going to make changes here, would it be possible to pass a
sequence of colors, one for each line segment in the collection.
You can check, for example, whether the length of the sequence is equal to
the number of segments.
Would be very helpful for some people, as I have seen requests for this
possibility several times on the list.
Thanks, Mark
> --__--__--
>
> Message: 3
> Date: 2006年5月09日 14:44:07 -1000
> From: Eric Firing <ef...@ha...>
> Organization: University of Hawaii
> To: John Hunter <jdh...@ni...>
> CC: matplotlib development list <mat...@li...>
> Subject: [matplotlib-devel] color argument to collections
>
> John,
>
> Collections would be easier to use if they did not have the restriction
> (from the docstring):
>
> All color args to a collection are sequences of rgba tuples
>
> It would be easy to remove this restriction; shall I do it, or is there
> a reason to leave the restriction in place? (The error message that
> results from violating the restriction is not helpful, and it would be
> as easy to remove the restriction as to improve the error handling.)
>
> Eric
>
>
>
>
From: Abraham S. <ab...@cn...> - 2006年05月10日 01:51:32
Hi. A long while ago I had sent out an email asking if anyone was 
interested in an XML library for plotting with matplotlib. It seemed the 
general consensus was no, though it might be nice as a backend for 
saving files. So I developed the XML library for my own purposes, and 
have been using it for some time.
I thought I might as well clean it up, package it, and release it in the 
wild. I'm not sure if this would even qualify as an alpha release, 
perhaps more of a RFC, but if anyone is interested, and wants to give 
some comments, let me know. While it has gotten a good amount of use 
(including a soon to be published paper), it has evolved to fit my needs 
more than anything else. So in the clean up, I tried to refractor some 
saneness into it, and had to fix some things in the process. I tried to 
test as much of it as possible, but I'm sure I forgot some obvious 
things as well.
It is trying to serve 3 purposes:
(1) Framework for making publishable figures easy
(2) Provide an easy way to allow pylab figures to be saveable/loadable 
and editable by human
(3) Provide a general framework for a higher level plotting library
I'm hoping to in the near future write the backend to pylab to save in 
the XML format. It should (hopefully) be fairly trivial..
It can be found (this includes some documentation and examples):
www.cns.nyu.edu/~abes/xmlplot.tar.gz
Thanks,
Abe
From: John H. <jdh...@ac...> - 2006年05月10日 01:03:57
>>>>> "Eric" == Eric Firing <ef...@ha...> writes:
 Eric> John, Collections would be easier to use if they did not
 Eric> have the restriction (from the docstring):
 Eric> All color args to a collection are sequences of rgba
 Eric> tuples
 Eric> It would be easy to remove this restriction; shall I do it,
 Eric> or is there a reason to leave the restriction in place?
 Eric> (The error message that results from violating the
 Eric> restriction is not helpful, and it would be as easy to
 Eric> remove the restriction as to improve the error handling.)
I think it's fine to remove it, but note that you have to be careful
to avoid ambiguity. How would you interpret
 color = (0.25, 0.5, 0.75, 1.0)
Is this one rgba color or 4 grayscales? 
Because mpl accepts lots of different types of args for colors, there
will probably be some ambiguous cases, thought these will be very rare
corner cases. Just document what the behavior is, and everyone should
be happy. I think you could do the same for the linewidths, etc. Eg
if scalar, interpret as a single linewidth for all elements of the
collection?
Or were you intending to preserve the requirement that one pass
sequences, but allow versatile color args in the sequence?
JDH
From: Eric F. <ef...@ha...> - 2006年05月10日 00:44:27
John,
Collections would be easier to use if they did not have the restriction 
(from the docstring):
 All color args to a collection are sequences of rgba tuples
It would be easy to remove this restriction; shall I do it, or is there 
a reason to leave the restriction in place? (The error message that 
results from violating the restriction is not helpful, and it would be 
as easy to remove the restriction as to improve the error handling.)
Eric
From: Eric F. <ef...@ha...> - 2006年05月09日 18:07:41
John Hunter wrote:
>>>>>>"Eric" == Eric Firing <ef...@ha...> writes:
> 
> 
> Eric> John (Hunter), Paul (Kienzle), Alex (Mont), I have fixed
> Eric> some of the problems with pcolormesh reported by George
> 
> I think some of these changes are not playing well with numarray
Or with Numeric.
It is fixed in svn now. I needed to use Travis's ma.getmaskorNone() trick.
I will breathe a sigh of relief on that happy day when we can drop 
support for Numeric and numarray...
Eric
From: John H. <jdh...@ac...> - 2006年05月09日 15:42:48
>>>>> "Eric" == Eric Firing <ef...@ha...> writes:
 Eric> John (Hunter), Paul (Kienzle), Alex (Mont), I have fixed
 Eric> some of the problems with pcolormesh reported by George
I think some of these changes are not playing well with numarray
peds-pc311:~/mpl/examples> python image_demo_na.py
Traceback (most recent call last):
 File
 "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py", line 283, in expose_event
 self._render_figure(self._pixmap, w, h)
 File
 "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py", line 72, in _render_figure
 FigureCanvasAgg.draw(self)
 File
 "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py", line 389, in draw
 self.figure.draw(renderer)
 File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", line
 529, in draw
 for a in self.axes: a.draw(renderer)
 File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
 972, in draw
 im.draw(renderer)
 File "/usr/lib/python2.4/site-packages/matplotlib/image.py", line
 184, in draw im = self.make_image()
 File "/usr/lib/python2.4/site-packages/matplotlib/image.py", line
 115, in make_image
 x = self.to_rgba(self._A, self._alpha)
 File "/usr/lib/python2.4/site-packages/matplotlib/cm.py", line 56,
 in to_rgba
 x = self.norm(x)
 File "/usr/lib/python2.4/site-packages/matplotlib/colors.py", line
 657, in __call__
 mask=val.mask)
 File
 "/home/jdhunter/debs/numarray/usr/lib/python2.4/site-packages/numarray/ma/MA.py", line 649, in __init__
 self._mask = make_mask (mask, flag=ss)
 File
 "/home/jdhunter/debs/numarray/usr/lib/python2.4/site-packages/numarray/ma/MA.py", line 185, in make_mask
 result = Numeric.array(filled(m,1), MaskType, savespace=1)
 File
 "/home/jdhunter/debs/numarray/usr/lib/python2.4/site-packages/numarray/ma/MA.py", line 230, in filled
 return Numeric.array(a)
 File
 "/home/jdhunter/debs/numarray/usr/lib/python2.4/site-packages/numarray/numarraycore.py", line 411, in array
 return fromlist(sequence,type,shape)
 File
 "/home/jdhunter/debs/numarray/usr/lib/python2.4/site-packages/numarray/numarraycore.py", line 247, in fromlist
 if not len(seq) and type is None:
TypeError: len() of unsized object
peds-pc311:~/mpl/examples>
From: Eric F. <ef...@ha...> - 2006年05月06日 18:35:26
John (Hunter), Paul (Kienzle), Alex (Mont),
I have fixed some of the problems with pcolormesh reported by George 
Nurser on May 4, but the remaining problems appear to involve Agg 
rendering with alpha != 1. To see the problem, run 
examples/quadmesh_demo.py, and resize the window a few times, or zoom on 
the masked region of the RH subplot. You will see that the redraw does 
not erase what was under the region that is masked in the redraw. The 
masked region is transparent by default. A bit of uncommenting and 
commenting in quadmesh_demo.py allow you to make the masked region any 
color and alpha; you will find that if alpha is 1.0, this problem does 
not occur.
Second question: Why does QuadMesh.draw() *not* call 
update_scalarmappable()? The draw method seems like the logical place 
to do this, as other collection classes do.
Thanks.
Eric
From: Jouni K S. <jk...@ik...> - 2006年05月02日 07:19:42
Tennessee Leeuwenburg <ten...@te...> writes:
> TypeError: Bbox::update_numerix expected numerix array
 [...]
> As I'm passing in simple python types, I don't see how this is the
> fault of my code. I tried passing in various flags (--numpy,
> --numarray, --Numeric) but I just got the exact same error message.
I don't know anything about mplot3D, but have you tried wrapping the
arguments in nx.asarray (where nx is obtained from "from matplotlib
import numerix as nx)?
-- 
Jouni
From: Tennessee L. <ten...@te...> - 2006年05月02日 06:06:49
Hi all,
My problem includes the use of mplot3D, so I'm not sure if this is the 
appropriate venue...
The last n lines of my program are :
 xs = tuple(xs)
 ys = tuple(ys)
 zs = tuple(zs)
 fig = p.figure()
 ax = p3d.Axes3D(fig)
 ax.scatter3D(xs,ys,zs)
 fig.add_axes(ax)
 p.show()
and my error message is
Traceback (most recent call last):
 File "grid.py", line 56, in ?
 ax.scatter3D(xs,ys,zs)
 File "/usr/lib/python2.4/site-packages/mplot3d/mplot3d.py", line 997, 
in scatter3D
 self.auto_scale_xyz(xs,ys,zs, had_data)
 File "/usr/lib/python2.4/site-packages/mplot3d/mplot3d.py", line 736, 
in auto_scale_xyz
 self.zz_dataLim.update_numerix(z, z, not had_data)
TypeError: Bbox::update_numerix expected numerix array
As I'm passing in simple python types, I don't see how this is the fault 
of my code. I tried passing in various flags (--numpy, --numarray, 
--Numeric) but I just got the exact same error message.
Ideas appreciated!
Cheers,
-T

Showing results of 112

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