[AstroPy] matplotlib's pie colors

Grigoris Maravelias gr.maravelias at gmail.com
Wed Nov 30 19:16:17 EST 2011


Thanks Jake, but I know that I can set the colors but I would like it to 
happen without me specifying the colors like this. Another approach 
would be to create a list of colors according to the objects 
automatically somehow by using #hex codes but it is getting too much 
without really a purpose.

Thanks for you answer!

Grigoris

On 11/30/2011 06:26 PM, Jacob VanderPlas wrote:
> Try the following:
>
>   >>>  ax = pylab.axes()
>   >>>  ax.set_color_cycle(['green', 'orange', 'blue', 'red','brown','pink'])
>   >>>  ax.plot(x1, y1)
>   >>>  ax.plot(x2, y2)
>   >>>
>
>    Jake
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy



More information about the AstroPy mailing list