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


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

Re: redefine Linetype -1 and 0

From Ethan A Merritt <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: redefine Linetype -1 and 0
Date 2017-02-09 10:21 -0800
Organization gnuplot development
Message-ID <o7ibs0$uss$1@dont-email.me> (permalink)
References <o7bpsa$ao4$1@dont-email.me>

Show all headers | View raw


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 | Next 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