Line and Marker Properties Corrupt

Petr Mikulik mikulik at physics.muni.cz
Mon Dec 8 11:21:08 CST 2008


> | t = 0:0.1:6.3;
> | line(t,sin(t),'linestyle','-')
> | Gives the same result as linestyle changed to:
> |      Dashed lines.
> | "--"
> |      Points.
> | ":"
> |      A dash-dot line.
> | "-."
> | That is the line style is solid no matter what I specify.
> | Linewidth works.

Dotted and dashed lines are either not available or not unitified across 
gnuplot terminals.

A "dashtype" option has been mentioned in
http://sourceforge.net/tracker/index.php?func=detail&aid=2004590&group_id=2055&atid=302055

however solid/dash/dotted control has not been contributed. A patch would be 
very welcome.


> |  plot(t,sin(t),".","markersize",3)
> |  plot(t,sin(t),"+","markersize",3)
> |  plot(t,sin(t),"*","markersize",3)
> |  plot(t,sin(t),"o","markersize",3)
> |  plot(t,sin(t),"x","markersize",3)
> |  
> | Gives the same results as octave: 
> | plot(t,sin(t),".")

This is a bug in octave. Try command
	test
in gnuplot. The first 13 point symbols are unified across many terminals 
(x11, wxt, png, ps, pdf, ...).


> I think the problem is that gnuplot does not provide
> terminal-independent control over line styles.

Yes, it does except for the control of dashes. See
	set style line ...


---
PM


More information about the Bug-octave mailing list