SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: sa6113 <s.p...@gm...> - 2008年08月27日 06:54:22
Dear All,
how can I set more color and font for my plot, as I know matplotlib just
supporte 8 color strings and five fonts.
Is there any way to extend it for all color and font from system ?
has every one any useful code about that?
Thanks
-- 
View this message in context: http://www.nabble.com/set-font-and-color-problem-tp19175632p19175632.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Mathieu L. <lep...@gm...> - 2008年08月27日 11:04:43
For the colors, I just use :
textobj.set_color( #FF0000 )
textobj.set_alpha( 0.5 )
For the fonts, I never noticed there were a limit :
textobj.set_fontname( "DejaVu Sans" )
I would be interested in a way to check if the selected font exists on
the system or not, because currently no exception is raised.
Hope it helps.
On Wed, Aug 27, 2008 at 3:54 AM, sa6113 <s.p...@gm...> wrote:
>
> Dear All,
> how can I set more color and font for my plot, as I know matplotlib just
> supporte 8 color strings and five fonts.
> Is there any way to extend it for all color and font from system ?
> has every one any useful code about that?
> Thanks
> --
> View this message in context: http://www.nabble.com/set-font-and-color-problem-tp19175632p19175632.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Michael D. <md...@st...> - 2008年08月27日 12:13:23
Mathieu Leplatre wrote:
> For the colors, I just use :
>
> textobj.set_color( #FF0000 )
> textobj.set_alpha( 0.5 )
> 
Just to point out -- from this you have access to ~16 million colors.
> For the fonts, I never noticed there were a limit :
>
> textobj.set_fontname( "DejaVu Sans" )
>
> I would be interested in a way to check if the selected font exists on
> the system or not, because currently no exception is raised.
> 
This *should* work -- matplotlib should be able to use any font on your 
system. If not, that's a bug, so please let us know. To help us 
diagnose the problem, please look here:
http://matplotlib.sourceforge.net/doc/html/faq/troubleshooting_faq.html#how-do-i-report-a-problem
Cheers,
Mike
> Hope it helps.
>
> On Wed, Aug 27, 2008 at 3:54 AM, sa6113 <s.p...@gm...> wrote:
> 
>> Dear All,
>> how can I set more color and font for my plot, as I know matplotlib just
>> supporte 8 color strings and five fonts.
>> Is there any way to extend it for all color and font from system ?
>> has every one any useful code about that?
>> Thanks
>> --
>> View this message in context: http://www.nabble.com/set-font-and-color-problem-tp19175632p19175632.html
>> Sent from the matplotlib - users mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>> 
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
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 によって変換されたページ (->オリジナル) /