Exact meaning of dashtype index in the Gnuplot 5.0? -


i got problem in gnuplot 5.0, dashtype index, such ``set dashtype 1 (2,5,2,15)` in manual.

my question is: these numbers in parenthesis mean? tried change them feeling, great know exact meaning.

my actual problem is, using dashtype n, gives lines different previous 4.6 version, unfortunately. try reproduce plots made in gnuplot 4.6.

those numerical pairs

<solid length>,<empty length> 

those lengths factors internal unit length. dash pattern length further depends on dashlength terminal option , line width.

so, having

plot x dt (2,4,2,6) 

plots dash, empty space twice long, again dash of same length , empty space 3 times dash length.

the actual length of first dash then

linewidth * terminal_linewidth * solid_length * terminal_dashlength * dash_unit 

first example:

set terminal pngcairo size 600,50 dashlength 2 linewidth 1 set output 'dash1.png' unset border; unset key; unset tics plot 0 dt (2,4,2,6) lw 10 

enter image description here

what might confusing is, terminals qt or wxt use rounded line ends default (terminal option round), applied every single dash, distorts given dash lengths:

set terminal pngcairo size 600,50 round dashlength 2 linewidth 1 set output 'dash2.png' unset border; unset key; unset tics plot 0 dt (2,4,2,6) lw 10 

enter image description here

terminal option square extends each dash 1 line width @ each end:

set terminal pngcairo size 600,50 square dashlength 2 linewidth 1 set output 'dash2.png' unset border; unset key; unset tics plot 0 dt (2,4,2,6) lw 10 

enter image description here

in last example, final dash lengths (4,2,4,4).

to behavior of first example (exact dash length) default other terminals, use butt terminal option.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -