|
From: Ethan A M. <merritt@u.washington.edu> - 2008-02-17 06:34:07
|
On Saturday 16 February 2008 12:37, Micha Wiedenmann wrote: > Hi, > > Are there any arguments against changing gnuplots default colors to help > people with color blindness? I think red and green following > immediatly each other is rather poor. In the current version of gnuplot you can choose any colors you like, in any order you like. > >> I think it would be helpful for people with color blindness to change > >> that order into > >> > >> 1 red > >> 2 blue > >> 3 magenta > >> 4 cyan > >> 5 green So put this in your ~/.gnuplot initialization file: set style line 1 lc rgb "red" set style line 2 lc rgb "blue" set style line 3 lc rgb "magenta" set style line 4 lc rgb "cyan" set style line 5 lc rgb "forest-green" set style increment user As I see, Hernan has already suggested this. > Here is my email from gnuplot-info: > > Hernán Gonzalo Asorey wrote: > > On Thu, Feb 14, 2008 at 8:57 AM, Micha Wiedenmann <mw...@gm...> wrote: > >> Hi there, > >> > >> gnuplot default colors seem to be > >> > >> 1 red > >> 2 green > >> 3 blue > >> 4 magenta > >> 5 cyan > >> ... > >> > >> I think it would be helpful for people with color blindness to change > >> that order into > >> > >> 1 red > >> 2 blue > >> 3 magenta > >> 4 cyan > >> 5 green > >> > >> This makes the clas of red and green less likely. > >> > >> A workaround is using linetype in the plot command as in > >> > >> plot [][-1:1] sin(x), cos(x) lt 3, tan(x) lt 4, x lt 5, x**2 lt 2, x**3 > >> > >> or defining line styles > >> > >> set style line 2 lc 3 > >> set style line 3 lc 4 > >> set style line 4 lc 5 > >> set style line 5 lc 2 > >> set style increment user > >> plot [][-1:1] sin(x), cos(x), tan(x), x, x**2, x**3 > >> > >> But this is lots of work on a day by day basis and I see no argument > >> against change gnuplots default, at least moving green down in the color > >> list. > > > > This is a good idea. As far as I know you can "pseudo-implement" that > > by seting the .gnuplot file (or GNUPLOT.INI) in your home directory: > > > > "[...] If the initialization file is found, `gnuplot` executes the > > commands in it. > > These may be any legal `gnuplot` commands, but typically they are > limited to > > setting the terminal and defining frequently-used functions or > variables." > > > > (see help .gnuplot for further details). > > Cheers, > > > > Hernán > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |