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


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

No dashed lines although terminal set to dashed

Started byflorian.stoertz@googlemail.com
First post2015-02-19 15:24 -0800
Last post2015-02-20 03:29 -0800
Articles 3 — 2 participants

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


Contents

  No dashed lines although terminal set to dashed florian.stoertz@googlemail.com - 2015-02-19 15:24 -0800
    Re: No dashed lines although terminal set to dashed Ethan A Merritt <EAMerritt@gmail.com> - 2015-02-19 21:44 -0800
      Re: No dashed lines although terminal set to dashed florian.stoertz@googlemail.com - 2015-02-20 03:29 -0800

#2767 — No dashed lines although terminal set to dashed

Fromflorian.stoertz@googlemail.com
Date2015-02-19 15:24 -0800
SubjectNo dashed lines although terminal set to dashed
Message-ID<cb5c22c5-fb54-4958-b5a0-c3780fad5410@googlegroups.com>
Dear all,

I have the following problem: Even if I set the terminal option 'dashed', my terminal still produces only solid lines, apart from style 0. I use the following code:

set encoding utf8
set terminal pdfcairo dashed enhanced
set termoption dashed
set output 'test.pdf'
test

This behaviour seems to occur only on Windows machines, as the exact same code produces the proper line types on an Apple machine. I need a PDF output, so the code above would be the most convenient.
Is there anything I can do to make my Windows-GnuPlot plot dashed/dotted lines?

Thank you in advance!


P.S.: I'm using gnuplot 5.0 patchlevel 0.

[toc] | [next] | [standalone]


#2769

FromEthan A Merritt <EAMerritt@gmail.com>
Date2015-02-19 21:44 -0800
Message-ID<mc6hj5$tld$1@dont-email.me>
In reply to#2767
florian.stoertz@googlemail.com wrote:

> Dear all,
> 
> I have the following problem: Even if I set the terminal option
> 'dashed', my terminal still produces only solid lines, apart from
> style 0. 

The treated of line properties (color, dash/dot) is very different
in version 5.   There is no longer any need for the terminal option
"set term ... dashed" because dashed lines are always possible.

Both the Release Notes and the User Manual for version 5 explain
how dashed lines now work.  

   http://gnuplot.sourceforge.net/ReleaseNotes_5_0.html

Here is a very brief summary from the Release Notes:

%%%%%
Earlier versions of gnuplot used the keyword "linetype" to mean both
the color and the solid/dot/dash pattern of a line. Version 5 has
separate keywords "linecolor" and "dashtype". You can use these keywords
directly in a plot command or assign any desired color and a dash pattern
to a linetype.  You do not need to change the current terminal or
terminal mode in order to use dashed lines.
%%%%%

The following command assigns different dash patterns to linetypes
1 through 4.  It does not affect the color of the linetypes.

   set for [i=1:4] linetype i dashtype i

To return the linetype properties to their original state

   set for [i=1:4] linetype i dashtype solid

There are other options for setting or defining dash patterns,
but that should get you started

	Ethan


> I use the following code:
> 
> set encoding utf8
> set terminal pdfcairo dashed enhanced
> set termoption dashed
> set output 'test.pdf'
> test
> 
> This behaviour seems to occur only on Windows machines, as the exact
> same code produces the proper line types on an Apple machine. I need a
> PDF output, so the code above would be the most convenient. Is there
> anything I can do to make my Windows-GnuPlot plot dashed/dotted lines?
> 
> Thank you in advance!
> 
> 
> P.S.: I'm using gnuplot 5.0 patchlevel 0.

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


#2771

Fromflorian.stoertz@googlemail.com
Date2015-02-20 03:29 -0800
Message-ID<a45864d4-54ba-4516-b198-42f4793a4b81@googlegroups.com>
In reply to#2769
Thank you so much! Problem is solved by this.

Am Freitag, 20. Februar 2015 06:44:46 UTC+1 schrieb Ethan A Merritt:
> 
> > Dear all,
> > 
> > I have the following problem: Even if I set the terminal option
> > 'dashed', my terminal still produces only solid lines, apart from
> > style 0. 
> 
> The treated of line properties (color, dash/dot) is very different
> in version 5.   There is no longer any need for the terminal option
> "set term ... dashed" because dashed lines are always possible.
> 
> Both the Release Notes and the User Manual for version 5 explain
> how dashed lines now work.  
> 
>    http://gnuplot.sourceforge.net/ReleaseNotes_5_0.html
> 
> Here is a very brief summary from the Release Notes:
> 
> %%%%%
> Earlier versions of gnuplot used the keyword "linetype" to mean both
> the color and the solid/dot/dash pattern of a line. Version 5 has
> separate keywords "linecolor" and "dashtype". You can use these keywords
> directly in a plot command or assign any desired color and a dash pattern
> to a linetype.  You do not need to change the current terminal or
> terminal mode in order to use dashed lines.
> %%%%%
> 
> The following command assigns different dash patterns to linetypes
> 1 through 4.  It does not affect the color of the linetypes.
> 
>    set for [i=1:4] linetype i dashtype i
> 
> To return the linetype properties to their original state
> 
>    set for [i=1:4] linetype i dashtype solid
> 
> There are other options for setting or defining dash patterns,
> but that should get you started
> 
> 	Ethan
> 
> 
> > I use the following code:
> > 
> > set encoding utf8
> > set terminal pdfcairo dashed enhanced
> > set termoption dashed
> > set output 'test.pdf'
> > test
> > 
> > This behaviour seems to occur only on Windows machines, as the exact
> > same code produces the proper line types on an Apple machine. I need a
> > PDF output, so the code above would be the most convenient. Is there
> > anything I can do to make my Windows-GnuPlot plot dashed/dotted lines?
> > 
> > Thank you in advance!
> > 
> > 
> > P.S.: I'm using gnuplot 5.0 patchlevel 0.

[toc] | [prev] | [standalone]


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


csiph-web