From 2b4e74cc6e21848ef18f97c3638ae5a3a87daaff Mon Sep 17 00:00:00 2001 From: Lukas Hauertmann Date: Wed, 22 Sep 2021 15:31:19 +0200 Subject: [PATCH] Hotfix 1-based indexing for mesh3d in pgfplotsx --- src/backends/pgfplotsx.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index 3cc9114b..32a75c6d 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -521,7 +521,7 @@ function pgfx_add_series!(::Val{:mesh3d}, axis, series_opt, series, series_func, elseif typeof(opt[:connections]) <: AbstractVector{NTuple{3, Int}} # 1-based indexing 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 ", ) else