SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Benjamin R. <ben...@ou...> - 2011年08月25日 14:09:16
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
From: Eric F. <ef...@ha...> - 2011年08月25日 17:57:20
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
From: Benjamin R. <ben...@ou...> - 2011年08月26日 15:47:47
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
>
From: Benjamin R. <ben...@ou...> - 2011年08月28日 16:44:59
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
From: Benjamin R. <ben...@ou...> - 2011年08月31日 22:15:42
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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /