help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Geometry Line Plotting Problem


From: Thomas D. Dean
Subject: Geometry Line Plotting Problem
Date: Fri, 3 Jan 2020 19:18:50 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

I am using geometry 3.0.0. The order of plotting effects 'linestyle' property.

== case 1 Failure =====================================================
dx=0.4375/2;
dz=0.31;
dr=1.25/2;
L=0.995;

X = [-L -dz -dz 0 0 -dz -dz -L -L];
Y = [-dr -dr -dx -dx dx dx dr dr -dr];
line(X,Y);

X = [ -L  -L+0.250 -L+0.250 0 ]
Y = [ 0.250  0.250  3/8/2  3/8/2 ]
line(X,Y, 'linestyle','--');
Y = [ -0.250  -0.250  -3/8/2  -3/8/2 ]
line(X,Y, 'linestyle','--');

The line style property is not obeyed. No dashed line is plotted. The 2nd and 3rd calls to line seem to not change the plot.

== case 2 Success =====================================================
dx=0.4375/2;
dz=0.31;
dr=1.25/2;
L=0.995;

X = [ -L  -L+0.250 -L+0.250 0 ]
Y = [ 0.250  0.250  3/8/2  3/8/2 ]
line(X,Y, 'linestyle','--');
Y = [ -0.250  -0.250  -3/8/2  -3/8/2 ]
line(X,Y, 'linestyle','--');
X = [-L -dz -dz 0 0 -dz -dz -L -L];
Y = [-dr -dr -dx -dx dx dx dr dr -dr];
line(X,Y);

The dashed lines are plotted.

Tom Dean



reply via email to

[Prev in Thread] Current Thread [Next in Thread]