SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: James E. <jre...@ea...> - 2009年10月22日 23:01:31
All,
 
I have a question regarding the default alpha value for an Artist. Why is it 1.0 instead of None? The color conversion code takes
into account if alpha is None and having it default to something other than None makes it impossible for any Patch to have a
fill_color specified as an RGBA value (and possibly other Artist sub-classes). Should this be something else, or should the
Patch.set_facecolor method pre-process the incoming color value and set any specified alpha as appropriate (I hope not since this
would cause the color value to be processed several times)?
 
Thanks,
--James Evans
From: Eric F. <ef...@ha...> - 2009年10月23日 23:23:54
James Evans wrote:
> All,
> 
> 
> 
> I have a question regarding the default alpha value for an Artist. Why 
> is it 1.0 instead of None? The color conversion code takes into account 
> if alpha is None and having it default to something other than None 
> makes it impossible for any Patch to have a fill_color specified as an 
> RGBA value (and possibly other Artist sub-classes). Should this be 
> something else, or should the Patch.set_facecolor method pre-process the 
> incoming color value and set any specified alpha as appropriate (I hope 
> not since this would cause the color value to be processed several times)?
> 
James,
This is just an aspect of the general mess that is alpha-handling in 
mpl. Sometime, maybe a year ago, I thought it would be easy to fix at 
least some of the problems by changing the default Artist alpha to None. 
 It turned out to be not that simple, I ran out of time and patience, 
and dropped it. Perhaps some other changes in the interim have made it 
so that changing the Artist initial value now would be simpler, but I 
suspect it will still have to be done as part of a deeper overhaul, if 
not the full overhaul that would be most desirable.
Eric
> 
> 
> Thanks,
> 
> --James Evans
> 
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 によって変換されたページ (->オリジナル) /