KristofferC / PGFPlotsX.jl

Plots in Julia using the PGFPlots LaTeX package
Other
301 stars 40 forks source link

PGFPlotsX Does Not Support the Series Type Val{:volume} #252

Closed umbriquse closed 3 years ago

umbriquse commented 3 years ago

I'm running into an issue with plotting in 3-D. From looking at the error message (see below), it seems that a recipe isn't defined for dealing with the type :volume, or in general: a 3-D matrix. Below is a minimum working example of how to produce the error.

using Plots; pgfplotsx()
plot3d(rand(10,10,10))

ERROR

LoadError: The backend must not support the series type Val{:volume}, and there isn't a series recipe defined.
  Stacktrace:
   [1] error(::String) at ./error.jl:33
   [2] macro expansion at /Users/jasonlehto/.julia/packages/RecipesPipeline/uPBKQ/src/type_recipe.jl:9 [inlined]
   [3] apply_recipe(::AbstractDict{Symbol,Any}, ::Type{Val{:volume}}, ::Any, ::Any, ::Any) at /Users/jasonlehto/.julia/packages/RecipesBase/92zOw/src/RecipesBase.jl:282
   [4] _process_seriesrecipe(::Any, ::Any) at /Users/jasonlehto/.julia/packages/RecipesPipeline/uPBKQ/src/series_recipe.jl:50
   [5] _process_seriesrecipes!(::Any, ::Any) at /Users/jasonlehto/.julia/packages/RecipesPipeline/uPBKQ/src/series_recipe.jl:27
   [6] recipe_pipeline!(::Any, ::Any, ::Any) at /Users/jasonlehto/.julia/packages/RecipesPipeline/uPBKQ/src/RecipesPipeline.jl:97
   [7] _plot!(::Plots.Plot, ::Any, ::Any) at /Users/jasonlehto/.julia/packages/Plots/vsE7b/src/plot.jl:172
   [8] plot(::Any; kw::Any) at /Users/jasonlehto/.julia/packages/Plots/vsE7b/src/plot.jl:58
   [9] plot3d(::Any; kw::Any) at /Users/jasonlehto/.julia/packages/Plots/vsE7b/src/shorthands.jl:410
   [10] plot3d(::Any) at /Users/jasonlehto/.julia/packages/Plots/vsE7b/src/shorthands.jl:410

I don't know if I should create a personal recipe or if this is some bug in the PGFPlotsX code base.

KristofferC commented 3 years ago

Seems like a Plots.jl issue.