• How to generate dotted lines?

    From Bengt T@21:1/5 to All on Wed Apr 1 06:42:29 2020
    Width gnuplot 5.2 I wish to generate plots into png files.

    I succeed in changing line colors and widths for continuous lines. However not to generate dotted lines.

    Is this not implemented for png outputs or what am i missing?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Karl Ratzsch@21:1/5 to All on Wed Apr 1 23:56:58 2020
    Am 01.04.2020 um 15:42 schrieb Bengt T:
    I succeed in changing line colors and widths for continuous lines. However not to generate dotted lines.

    Is this not implemented for png outputs or what am i missing?


    Does "dashtype"

    plot x**2 w l dt 0

    not give what you´re looking for? You see more dashtypes with the
    "test" command.

    Karl

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bengt T@21:1/5 to All on Thu Apr 2 01:06:36 2020

    Does "dashtype"

    plot x**2 w l dt 0

    not give what you´re looking for? You see more dashtypes with the
    "test" command.

    Karl

    Yes it works for dt -1 and dt 0. However still not for dt 1 to dt 19 of the rightmost part of the "test" command.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?J=c3=b6rg_Buchholz?=@21:1/5 to Bengt T on Thu Apr 2 11:53:06 2020
    On 02.04.2020 10:06, Bengt T wrote:


    Does "dashtype"

    plot x**2 w l dt 0

    not give what you´re looking for? You see more dashtypes with the
    "test" command.

    Karl

    Yes it works for dt -1 and dt 0. However still not for dt 1 to dt 19 of the rightmost part of the "test" command.


    Which terminal do you use? The pngcairo terminal is the good one for png output.


    set term pngcairo size 1200,900
    set out 'dt.png'
    plot for [i=1:20] sin(x+i) w l dt i t "dt".i
    set out


    Jörg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bengt T@21:1/5 to All on Thu Apr 2 08:58:46 2020

    set term pngcairo size 1200,900
    set out 'dt.png'
    plot for [i=1:20] sin(x+i) w l dt i t "dt".i
    set out


    Jörg

    Works fine.

    Thank you all who contributed.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bengt T@21:1/5 to All on Thu Apr 2 08:45:41 2020

    set term pngcairo size 1200,900
    set out 'dt.png'
    plot for [i=1:20] sin(x+i) w l dt i t "dt".i
    set out


    Jörg

    Works fine with datatype 1 to 5. dt 1 to 5 lines are repeated, with other colors, for dt 6 to 20.

    How to generate lines with symbols according to the right hand side of the "test" output?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?J=c3=b6rg_Buchholz?=@21:1/5 to Bengt T on Thu Apr 2 20:08:27 2020
    On 02.04.20 17:45, Bengt T wrote:



    set term pngcairo size 1200,900
    set out 'dt.png'
    plot for [i=1:20] sin(x+i) w l dt i t "dt".i
    set out


    Jörg

    Works fine with datatype 1 to 5. dt 1 to 5 lines are repeated, with other colors, for dt 6 to 20.

    How to generate lines with symbols according to the right hand side of the "test" output?


    There are only 5 different dashtypes predefined. You can add more by
    your own. See "help dashtype".

    Examples:
    plot f(x) dt 3 # use terminal-specific dash pattern 3
    plot f(x) dt ".. " # construct a dash pattern on the spot
    plot f(x) dt (2,5,2,15) # numerical representation of the same pattern
    set dashtype 11 (2,4,4,7) # define new dashtype to be called by index
    plot f(x) dt 11 # plot using our new dashtype

    Jörg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)