Bugfix: add second black line to separate iso-contour lines; Make a copy input Vector{String} datasets
This commit is contained in:
parent
c2dbb2a946
commit
9bb35931b6
@ -624,7 +624,8 @@ newBlockName(gp::Session) = string("\$data", length(gp.datas)+1)
|
|||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------
|
# ---------------------------------------------------------------------
|
||||||
function add_dataset(gp::Session, gpsource::String, accum::Vector{String})
|
function add_dataset(gp::Session, gpsource::String, _accum::Vector{String})
|
||||||
|
accum = deepcopy(_accum)
|
||||||
prepend!(accum, [gpsource * " << EOD"])
|
prepend!(accum, [gpsource * " << EOD"])
|
||||||
append!( accum, ["EOD"])
|
append!( accum, ["EOD"])
|
||||||
preview = (length(accum) < 6 ? accum : [accum[1:5]..., "...", accum[end]])
|
preview = (length(accum) < 6 ? accum : [accum[1:5]..., "...", accum[end]])
|
||||||
@ -1606,6 +1607,7 @@ mutable struct IsoContourLines
|
|||||||
for i in 1:length(paths)
|
for i in 1:length(paths)
|
||||||
append!(data, arrays2datablock(paths[i].x, paths[i].y, z .* fill(1., length(paths[i].x))))
|
append!(data, arrays2datablock(paths[i].x, paths[i].y, z .* fill(1., length(paths[i].x))))
|
||||||
push!(data, "")
|
push!(data, "")
|
||||||
|
push!(data, "")
|
||||||
end
|
end
|
||||||
return new(paths, data, z)
|
return new(paths, data, z)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user