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


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

Can't draw dashed lines in cygwin X11

Started byijung5399@gmail.com
First post2016-07-21 18:41 -0700
Last post2016-07-22 22:59 +0200
Articles 2 — 2 participants

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


Contents

  Can't draw dashed lines in cygwin X11 ijung5399@gmail.com - 2016-07-21 18:41 -0700
    Re: Can't draw dashed lines in cygwin X11 Jörg Buchholz <bookwood4new@freenet.de> - 2016-07-22 22:59 +0200

#3372 — Can't draw dashed lines in cygwin X11

Fromijung5399@gmail.com
Date2016-07-21 18:41 -0700
SubjectCan't draw dashed lines in cygwin X11
Message-ID<fb047a10-7e12-452f-b1f8-4bdeea381cdd@googlegroups.com>
I'm drawing multiple lines in a chart so dashed line option is required.
I started with 'startxwin' and I tried in a cygwin terminal with gnuplot 5.0 patchlevel 3.
My env is: CYGWIN_NT-6.1 MYCOM 2.5.2(0.297/5/3) 2016-06-23 14:29 x86_64 Cygwin

I tested with one of internet example script but no luck:
====
set term x11 enhanced dashed "arial,16"
set notitle
set xlabel "x"
set ylabel "y"
set size square
set xrange [450:750]
set yrange [450:750]
set key inside top right

set style line 1 lc rgb "#FF0055" lt 2
set style line 2 lc rgb "#2C397D" lt 3

f(x) = x
g(x) = x + 100

plot f(x) ls 2 lw 3 notitle, g(x) ls 1 lw 1 notitle

pause -1
====

[toc] | [next] | [standalone]


#3373

FromJörg Buchholz <bookwood4new@freenet.de>
Date2016-07-22 22:59 +0200
Message-ID<nmu1fi$jg3$1@dont-email.me>
In reply to#3372
On 22.07.2016 03:41, ijung5399@gmail.com wrote:
> I'm drawing multiple lines in a chart so dashed line option is required.
> I started with 'startxwin' and I tried in a cygwin terminal with gnuplot 5.0 patchlevel 3.
> My env is: CYGWIN_NT-6.1 MYCOM 2.5.2(0.297/5/3) 2016-06-23 14:29 x86_64 Cygwin
>
> I tested with one of internet example script but no luck:
> ====
> set term x11 enhanced dashed "arial,16"
> set notitle
> set xlabel "x"
> set ylabel "y"
> set size square
> set xrange [450:750]
> set yrange [450:750]
> set key inside top right
>
> set style line 1 lc rgb "#FF0055" lt 2
> set style line 2 lc rgb "#2C397D" lt 3
>
> f(x) = x
> g(x) = x + 100
>
> plot f(x) ls 2 lw 3 notitle, g(x) ls 1 lw 1 notitle
>
> pause -1
> ====
>
you must give a "dash type" in the plot command.

use "test" to see the predefined dashed lines.

example:
plot f(x) ls 2 lw 3 dt 3 notitle, g(x) ls 1 lw 1 dt 5 notitle

Jörg

[toc] | [prev] | [standalone]


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


csiph-web