I am currently in the process of a paper submission, and the page charge estimation took us for a bit of a surprise. Luckily, most of my plots don't need color, and I would like to regenerate them in b&w mode. Is there some default line style cycle (I.e., ['-', '.', '--', '.-']) that can be set analogous to the color cycle used by default? Thanks, Ben Root
On 08/25/2011 04:09 AM, Benjamin Root wrote: > I am currently in the process of a paper submission, and the page charge > estimation took us for a bit of a surprise. Luckily, most of my plots > don't need color, and I would like to regenerate them in b&w mode. > > Is there some default line style cycle (I.e., ['-', '.', '--', '.-']) > that can be set analogous to the color cycle used by default? Something like this came up a while ago as a feature request--same sort of motivation, I think--but it was never implemented. You could make a little function that would operate on line objects, changing colors from the color cycle to black while using those colors to specify line styles. Eric > > Thanks, > Ben Root
Just brain-storming here... What about two rcparams: cycle.color = true and cycle.style = false? This way, cycling for both colors and line styles could be turned on and off accordingly. Then, a b&w mode could utilize this. as well as possibly substitute default values. Ben Root On Thursday, August 25, 2011, Eric Firing <ef...@ha...> wrote: > On 08/25/2011 04:09 AM, Benjamin Root wrote: >> I am currently in the process of a paper submission, and the page charge >> estimation took us for a bit of a surprise. Luckily, most of my plots >> don't need color, and I would like to regenerate them in b&w mode. >> >> Is there some default line style cycle (I.e., ['-', '.', '--', '.-']) >> that can be set analogous to the color cycle used by default? > > Something like this came up a while ago as a feature request--same sort > of motivation, I think--but it was never implemented. > > You could make a little function that would operate on line objects, > changing colors from the color cycle to black while using those colors > to specify line styles. > > Eric > >> >> Thanks, >> Ben Root > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under 10ドルK > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >
On Friday, August 26, 2011, Benjamin Root <ben...@ou...> wrote: > Just brain-storming here... What about two rcparams: cycle.color = true and cycle.style = false? > > This way, cycling for both colors and line styles could be turned on and off accordingly. Then, a b&w mode could utilize this. as well as possibly substitute default values. > > Ben Root Taking it a step further, a cycle for markers would be nice, too. Ben Root
On Sun, Aug 28, 2011 at 11:44 AM, Benjamin Root <ben...@ou...> wrote: > > > On Friday, August 26, 2011, Benjamin Root <ben...@ou...> wrote: > > Just brain-storming here... What about two rcparams: cycle.color = true > and cycle.style = false? > > > > This way, cycling for both colors and line styles could be turned on and > off accordingly. Then, a b&w mode could utilize this. as well as possibly > substitute default values. > > > > Ben Root > > Taking it a step further, a cycle for markers would be nice, too. > > Ben Root > I went ahead and started up a branch to test this idea out. I am not doing a pull request on this yet because there are a lot of style issues (names of rcParams and such), as well as the potential for easily producing lots of redundant code if we expand this idea to other things like markers, fill styles and such. Here is the branch: https://github.com/WeatherGod/matplotlib/tree/cycles Let me know what you think! This branch does give me enough control to solve my immediate problem by setting the following rcParams: # B&W mode axes.color_cycle = 'k' style.cycle = True Cheers! Ben Root