GLE
GLE copied to clipboard
macOS: Segmentation Fault when building figures with contour lines
A segmentation fault occurs on the macOS version when attempting to build figures that use contour lines. Examples are these three figures in the manual in the utilities/fig directory:
volcano.gle gaussian.gle saddle-contour.gle
The building of these figures has been purposely removed on macOS when building the manual.
Here is the code for one of the figures.
size 7 6
include "contour.gle"
set font psh
include "../../script/manual.gle"
begin letz
data "saddle.z"
z = 3/2*(cos(3/5*(y-1))+5/4)/(1+(((x-4)/3)^2))
x from 0 to 20 step 0.5
y from 0 to 20 step 0.5
end letz
begin contour
data "saddle.z"
values 0.5 1 1.5 2 3
end contour
manual_graph_mode
begin graph
scale 0.85 0.75 center
title "Saddle Plot Contour Lines"
data "saddle-cdata.dat"
xaxis min -0.75 max 11.75
yaxis min -1.5 max 21.5
d1 line color blue
end graph
contour_labels "saddle-clabels.dat" "fix 1"