[Matplotlib-users] getting the default color cycle

Slavin, Jonathan jslavin at cfa.harvard.edu
Mon May 15 12:02:41 EDT 2023


Yes! That looks good.

Thanks,
Jon

On Mon, May 15, 2023 at 11:39 AM Raymond Osborn <rayosborn at mac.com> wrote:

> I believe that the default color cycler is stored in
> mpl.rcParams['axes.prop_cycle’], unless you have modified it in a config
> file.
>
> Ray Osborn
>
> On May 15, 2023, at 10:05 AM, Slavin, Jonathan via Matplotlib-users <
> matplotlib-users at python.org> wrote:
>
> Hi,
>
> I'd like to use cycler to cycle the default color cycle with different
> line styles so as to be able to differentiate lines for more than those 10
> colors. I've looked at the documentation for cycler, but it's not clear to
> me how to get a cycler for the default cycle. I could do something like:
> color_cycle = cycler(color=['C0', 'C1', 'C2',...])
> but that's a bit tedious. Is there another way to get that?
>
> Thanks,
> Jon
>
> --
> Jonathan D. Slavin (he/him)
> Astrophysicist - High Energy Astrophysics Division
> Center for Astrophysics | Harvard & Smithsonian
> Office: (617) 496-7981 | Cell: (781) 363-0035
> 60 Garden Street | MS 04 | Cambridge, MA 02138
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/matplotlib-users/attachments/20230515/a263e518/attachment.html>


More information about the Matplotlib-users mailing list