Hi,
I am learning to use Plots.jl these days, to visualise output from FEM analysis.
One thing I would like to be able to do is provide 3 “nodes” (in 2D, in my case, but 3D is an obvious extension) and 3 values or colors, and get a triangle, colored by linear interpolation. My visualisation will require hundreds or thousands of such patches.
In Matlab, this type of functionality is provided by “patch()”.
Is there a way to do this in Plots? If not, do you know whether GR could do this?
This is not an answer to your questions but for large meshes I would recommend writing to VTK files using https://github.com/jipolanco/WriteVTK.jl and open them in Paraview. It is an excellent tool to learn especially if you want to go over to 3d visualizations later.
May not exactly be the fastest or best option out there but check out VTKDataTypes and VTKDataIO. You can create your data structure using VTKDataTypes and then either visualize it directly using VTKDataIO or change it to a form that can be visualized with GLVisualize using the GLMesh function.
As shown in the issues. PyPlot.jl can do it directly but Plots.jl doesn’t support it yet. If I ever understand how to add attributes in Plots.jl this would be the PR I’d work on.