Re: [Matplotlib-users] Access to color cycle?

2014-03-06 Thread Goyo
2014-03-05 21:13 GMT+01:00 Adam Hughes hughesada...@gmail.com: Thanks Andreas. That is correct; however, I'd rather not make this change global. I only want a subset of my plots to have this behavior. I feel like changing the rcparams would change this globally and probably confuse users

[Matplotlib-users] Access to color cycle?

2014-03-05 Thread Adam Hughes
Hi, I am making a stacked histogram where one must enter the desired colors together in a list/array when the histogram is called. For certain objects in my code, it's helpful to assign a color to them, so that they are immediately identified across various plots. Therefore, I essentially want

Re: [Matplotlib-users] Access to color cycle?

2014-03-05 Thread Adam Hughes
Well, the hack wasn't as messy as I thought. Still feel like there's a better way... def show_colors_default(): fig, axfoo = plt.subplots() clist = [] c = axfoo._get_lines.color_cycle.next() # Iterate until duplicate is found while c not in clist: clist.append(c)

Re: [Matplotlib-users] Access to color cycle?

2014-03-05 Thread Andreas Hilboll
On 05.03.2014 20:56, Adam Hughes wrote: Hi, I am making a stacked histogram where one must enter the desired colors together in a list/array when the histogram is called. For certain objects in my code, it's helpful to assign a color to them, so that they are immediately identified across

Re: [Matplotlib-users] Access to color cycle?

2014-03-05 Thread Adam Hughes
Thanks Andreas. That is correct; however, I'd rather not make this change global. I only want a subset of my plots to have this behavior. I feel like changing the rcparams would change this globally and probably confuse users who don't know this is being called. I should have realized this