[AstroPy] matplotlib's pie colors
Wed Nov 30 18:16:17 CST 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!
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)
> AstroPy mailing list
More information about the AstroPy