Hotfix 1-based indexing for mesh3d in pgfplotsx

This commit is contained in:
Lukas Hauertmann 2021-09-22 15:31:19 +02:00
parent 2a0aa0ff96
commit 2b4e74cc6e

View File

@ -521,7 +521,7 @@ function pgfx_add_series!(::Val{:mesh3d}, axis, series_opt, series, series_func,
elseif typeof(opt[:connections]) <: AbstractVector{NTuple{3, Int}} elseif typeof(opt[:connections]) <: AbstractVector{NTuple{3, Int}}
# 1-based indexing # 1-based indexing
ptable = join( ptable = join(
[string(i, " ", j, " ", k, "\\\\") for (i, j, k) in opt[:connections]], [string(i-1, " ", j-1, " ", k-1, "\\\\") for (i, j, k) in opt[:connections]],
"\n ", "\n ",
) )
else else