Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3555

Re: redefine Linetype -1 and 0

From Jörg Buchholz <bookwood4new@freenet.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: redefine Linetype -1 and 0
Date 2017-02-10 12:49 +0100
Organization A noiseless patient Spider
Message-ID <o7k997$opg$1@dont-email.me> (permalink)
References <o7bpsa$ao4$1@dont-email.me> <o7ibs0$uss$1@dont-email.me>

Show all headers | View raw


Hi Ethan,

thank you for your detailed answer. I hope that I can keep it in mind
for newer scripts.


On 09.02.2017 19:21, Ethan A Merritt wrote:
> Jörg Buchholz wrote:
> 
>> is there a way to redefine the linetypes -1 and 0? I have a very old
>> gnuplot script (RRSB Diagram) with lot of lines with lt -1 and lt 0.
> 
> Older versions of gnuplot allowed only very coarse control over color
> and dashtype.  When setting the terminal type you had to choose between
> color/monochrome and solid/dashed for the entire terminal session.
> This choice affected all normal linetypes and pointtypes.  
> 
> Since any normal linetype would then have a different result depending
> on your current terminal session, the program provided the special
> linetypes -1 and 0.   Linetype -1 was guaranteed to be a solid black
> line no matter whether the terminal session was set to "color" or
> "dashed".  Linetype 0 was guaranteed to be dotted (if possible on
> that output device) even if the current terminal setting was "solid".
> 
> Current gnuplot allows individual control over line colors and dash
> patterns at all times so in new scripts it is not strictly necessary
> to resort to linetypes -1 or 0.  Nevertheless they are still recognized
> for backwards compatibility with older scripts.  By the way even though
> "lt -1" is still recognized it now has a synomym "lt black".  It would
> be weird to accept a command of the form "set linetype black lc 'green'".
> 
> 	Ethan
> 
>> The "set linetype" command works only with lt > 0
>>
>> I will change the linewidth and the dashtype to get a better printout.
>> For a first solution I change the linewidth in the terminal.
>>
>> Jörg
> 

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

redefine Linetype -1 and 0 Jörg Buchholz <bookwood4new@freenet.de> - 2017-02-07 07:37 +0100
  Re: redefine Linetype -1 and 0 Ethan A Merritt <sfeam@users.sourceforge.net> - 2017-02-09 10:21 -0800
    Re: redefine Linetype -1 and 0 Jörg Buchholz <bookwood4new@freenet.de> - 2017-02-10 12:49 +0100

csiph-web