|
From: Ethan M. <eam...@gm...> - 2018-08-22 19:44:50
|
Many possible options. The first three that come to mind are
(1) You can now set line colors to anything you like.
I don't remember what they were for the eps terminal in version 4.0 but for
the purpose of illustrating, let's say it was red, blue, green, magenta.
You can redefine the first four line colors to this sequence by saying
set linetype 1 linecolor "red"
set linetype 2 linecolor "blue"
set linetype 3 linecolor "green"
set linetype 4 linecolor "magenta"
This will affect all terminals, not just the eps terminal
(2) That red/blue/green/magenta sequence is the "classic" one, so you
should get the same result by saying
set colors classic
in gnuplot version 5
(3) The definitions you show above are read from the file prologue.ps
You could edit this file in place (will affect all future use of the
gnuplot postscript terminals) or you could make a copy in a new directory
and edit the copy. You can then use the gnuplot command
set psdir <new-directory-name>
so the the postscript terminals will use the edited copy rather than the
system-wide copy. This will affect only the current gnuplot session, or
until you say "unset psdir".
On Wed, Aug 22, 2018 at 11:44 AM, Jelle de Jong <jel...@po...>
wrote:
> I came a bit further by looking at the generated eps files.
>
> I found the bellow default colors (this whole block is not present with
> the old generated eps with gnuplot 4.0 patchlevel 0) and if I change the
> values in the eps file the lines color will change. So I am looking for
> the behaviour of gnuplot 4.0 patchlevel 0 (this was the old working
> version).
>
> Is there a way to not have the default line colors present, or otherwise
> what is the way to set the default line colors to other values, because
> altering them may be a workaround.
>
> gnuplot 4.6 patchlevel 2
>
> % Default Line colors
> /LCw {1 1 1} def
> /LCb {0 0 0} def
> /LCa {0 0 0} def
> /LC0 {1 0 0} def
> /LC1 {0 1 0} def
> /LC2 {0 0 1} def
> /LC3 {1 0 1} def
> /LC4 {0 1 1} def
> /LC5 {1 1 0} def
> /LC6 {0 0 0} def
> /LC7 {1 0.3 0} def
> /LC8 {0.5 0.5 0.5} def
>
> gnuplot 5.2 patchlevel 4
>
> % Classic Line colors (version 5.0)
> /LCw {1 1 1} def
> /LCb {0 0 0} def
> /LCa {0 0 0} def
> /LC0 {1 0 0} def
> /LC1 {0 1 0} def
> /LC2 {0 0 1} def
> /LC3 {1 0 1} def
> /LC4 {0 1 1} def
> /LC5 {1 1 0} def
> /LC6 {0 0 0} def
> /LC7 {1 0.3 0} def
> /LC8 {0.5 0.5 0.5} def
>
> Kind regards,
>
> Jelle de Jong
>
>
>
> On 15/08/18 18:34, Jelle de Jong wrote:
> > On 15/08/18 17:19, Kevin Oberman wrote:
> >> On Wed, Aug 15, 2018 at 7:51 AM Jelle de Jong <
> jel...@po...
> >> <mailto:jel...@po...>> wrote:
> >>
> >> Hello everybody,
> >>
> >> upgrade from gnuplot 4.0 patchlevel 0 to -> gnuplot 4.6 patchlevel 2
> >>
> >> I attached two picture of graphs that generated different line
> colours.
> >>
> >> I can not find any colour definitions in the gnuplot input files.
> >>
> >> I am trying to figure out what to look for in the gnuplot input
> files so
> >> I can change the colours back. Can somebody help?
> >>
> >> For what I can see there are lt (linetype) 1 to 5 used.
> >>
> >> Can I output the linetype colour mapping/pallet somehow?
> >>
> >> This change was documented in the v5 release notes.
> >>
> >> If you want the old colors back, you may explicitly specify them or use
> >> the command "set colors classic".
> >
> > Thank you for taking the time to reply, very much appreciated!
> >
> > I am running gnuplot 4.6 patchlevel 2
> >
> > There does not seem to be a set colors classic command, is there
> > something else I can do to get the classic colors back?
> >
> > Kind regards,
> >
> > Jelle de Jong
> >
> > ------------------------------------------------------------
> ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > gnuplot-info mailing list
> > gnu...@li...
> > Membership management via: https://lists.sourceforge.net/
> lists/listinfo/gnuplot-info
> >
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/
> lists/listinfo/gnuplot-info
>
|