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


Groups > comp.graphics.apps.gnuplot > #3553 > unrolled thread

redefine Linetype -1 and 0

Started byJörg Buchholz <bookwood4new@freenet.de>
First post2017-02-07 07:37 +0100
Last post2017-02-10 12:49 +0100
Articles 3 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  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

#3553 — redefine Linetype -1 and 0

FromJörg Buchholz <bookwood4new@freenet.de>
Date2017-02-07 07:37 +0100
Subjectredefine Linetype -1 and 0
Message-ID<o7bpsa$ao4$1@dont-email.me>
Hello,

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.

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

[toc] | [next] | [standalone]


#3554

FromEthan A Merritt <sfeam@users.sourceforge.net>
Date2017-02-09 10:21 -0800
Message-ID<o7ibs0$uss$1@dont-email.me>
In reply to#3553
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

[toc] | [prev] | [next] | [standalone]


#3555

FromJörg Buchholz <bookwood4new@freenet.de>
Date2017-02-10 12:49 +0100
Message-ID<o7k997$opg$1@dont-email.me>
In reply to#3554
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
> 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web