Posted at https://github.com/matplotlib/matplotlib/issues/697

I think a syntax like:

plt.ylabel("Sun is shining.", color='rgb')

would be a good start. (Assuming len of string == len of colors)

On Tue, Feb 7, 2012 at 11:18 AM, Michael Droettboom <md...@stsci.edu> wrote:

>  Nope.  But it's something I've wanted to add for a while.  Can you file
> an Issue in the github tracker?
>
> Mike
>
>
> On 02/07/2012 11:40 AM, Gökhan Sever wrote:
>
> Is there a way in matplotlib to partially specify the color of a string?
>
>  Example:
>
>  plt.ylabel("Today is cloudy.")
> How can I show "today" as red, "is" as green and "cloudy." as blue?
>
>  Thanks.
>
>  PS: Asked also on
> http://stackoverflow.com/questions/9169052/partial-coloring-of-text-in-matplotlib
>
>  --
> Gökhan
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe 
> now!http://p.sf.net/sfu/learndevnow-d2d
>
>
>
> _______________________________________________
> Matplotlib-users mailing 
> listMatplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>


-- 
Gökhan
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to