From jslavin at cfa.harvard.edu Mon May 15 11:05:53 2023 From: jslavin at cfa.harvard.edu (Slavin, Jonathan) Date: Mon, 15 May 2023 11:05:53 -0400 Subject: [Matplotlib-users] getting the default color cycle Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rayosborn at mac.com Mon May 15 11:39:46 2023 From: rayosborn at mac.com (Raymond Osborn) Date: Mon, 15 May 2023 10:39:46 -0500 Subject: [Matplotlib-users] getting the default color cycle In-Reply-To: References: Message-ID: <0713D6BD-8165-4542-871D-2E617A36DE4E@mac.com> 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 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: From jslavin at cfa.harvard.edu Mon May 15 12:02:41 2023 From: jslavin at cfa.harvard.edu (Slavin, Jonathan) Date: Mon, 15 May 2023 12:02:41 -0400 Subject: [Matplotlib-users] getting the default color cycle In-Reply-To: <0713D6BD-8165-4542-871D-2E617A36DE4E@mac.com> References: <0713D6BD-8165-4542-871D-2E617A36DE4E@mac.com> Message-ID: Yes! That looks good. Thanks, Jon On Mon, May 15, 2023 at 11:39?AM Raymond Osborn 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: