diff --git a/src/backends.jl b/src/backends.jl index 90e5df3c..bd280f0f 100644 --- a/src/backends.jl +++ b/src/backends.jl @@ -818,6 +818,7 @@ const _pgfplotsx_seriestype = [ :surface, :wireframe, :heatmap, + :mesh3d, :contour, :contour3d, :quiver, diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index 0f991d48..d5caf807 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -527,6 +527,17 @@ function pgfx_add_series!(::Val{:heatmap}, axis, series_opt, series, series_func pgfx_add_legend!(axis, series, opt) end +function pgfx_add_series!(::Val{:mesh3d}, axis, series_opt, series, series_func, opt) + ptable = join([ string(i, " ", j, " ", k, "\\\\") for (i, j, k) in zip(opt[:connections]...) ], "\n ") + push!( + series_opt, + "patch" => nothing, + "table/row sep" => "\\\\", + "patch table" => ptable + ) + pgfx_add_series!(axis, series_opt, series, series_func, opt) +end + function pgfx_add_series!(::Val{:contour}, axis, series_opt, series, series_func, opt) push!(axis.options, "view" => "{0}{90}") if isfilledcontour(series) diff --git a/src/examples.jl b/src/examples.jl index 1b44c11b..6589e89d 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -1057,16 +1057,13 @@ _backend_skips = Dict( :pyplot => [2, 25, 30, 31, 47, 49], :plotlyjs => [2, 21, 24, 25, 30, 31, 49], :plotly => [2, 21, 24, 25, 30, 31, 49], - :pgfplots => [2, 5, 6, 10, 16, 20, 22, 23, 25, 28, 30, 31, 34, 37, 38, 39, 47], :pgfplotsx => [ 2, # animation 6, # images 16, # pgfplots thinks the upper panel is too small - 25, # @df 30, # @df 31, # animation 32, # spy - 47, # mesh3 49, # polar heatmap ], )