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


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

How to generate dotted lines?

Started byBengt T <bengt_tornqvist@hotmail.com>
First post2020-04-01 06:42 -0700
Last post2020-04-02 08:58 -0700
Articles 7 — 3 participants

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


Contents

  How to generate dotted lines? Bengt T <bengt_tornqvist@hotmail.com> - 2020-04-01 06:42 -0700
    Re: How to generate dotted lines? Karl Ratzsch <mail.kfr@gmx.net> - 2020-04-01 23:56 +0200
      Re: How to generate dotted lines? Bengt T <bengt_tornqvist@hotmail.com> - 2020-04-02 01:06 -0700
        Re: How to generate dotted lines? Jörg Buchholz <bookwood4new@freenet.de> - 2020-04-02 11:53 +0200
          Re: How to generate dotted lines? Bengt T <bengt_tornqvist@hotmail.com> - 2020-04-02 08:45 -0700
            Re: How to generate dotted lines? Jörg Buchholz <bookwood4new@freenet.de> - 2020-04-02 20:08 +0200
          Re: How to generate dotted lines? Bengt T <bengt_tornqvist@hotmail.com> - 2020-04-02 08:58 -0700

#4308 — How to generate dotted lines?

FromBengt T <bengt_tornqvist@hotmail.com>
Date2020-04-01 06:42 -0700
SubjectHow to generate dotted lines?
Message-ID<c90c1740-66cc-426f-9592-95653b1122d0@googlegroups.com>
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?

[toc] | [next] | [standalone]


#4309

FromKarl Ratzsch <mail.kfr@gmx.net>
Date2020-04-01 23:56 +0200
Message-ID<r632nb$djr$1@solani.org>
In reply to#4308
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


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


#4310

FromBengt T <bengt_tornqvist@hotmail.com>
Date2020-04-02 01:06 -0700
Message-ID<a20bd865-e6ec-464e-8475-ad50932aa7ae@googlegroups.com>
In reply to#4309
> 
> 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.

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


#4311

FromJörg Buchholz <bookwood4new@freenet.de>
Date2020-04-02 11:53 +0200
Message-ID<r64clu$k8q$1@dont-email.me>
In reply to#4310
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

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


#4312

FromBengt T <bengt_tornqvist@hotmail.com>
Date2020-04-02 08:45 -0700
Message-ID<e661f66c-476e-4806-978d-fef55a84257a@googlegroups.com>
In reply to#4311

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

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


#4314

FromJörg Buchholz <bookwood4new@freenet.de>
Date2020-04-02 20:08 +0200
Message-ID<r659mr$4lb$1@dont-email.me>
In reply to#4312
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

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


#4313

FromBengt T <bengt_tornqvist@hotmail.com>
Date2020-04-02 08:58 -0700
Message-ID<145438b9-22e3-4065-8812-b3aa0fc6aa28@googlegroups.com>
In reply to#4311
> 
> 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.

[toc] | [prev] | [standalone]


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


csiph-web