-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GR: add support for mesh3d #3612
Conversation
This is missing the faces of the triangles though. Also some legend figure would be good. |
All right. But I would like to be able do disable faces via an option ...
OK I will change the example then. |
You could also add a warning, that the GR backend doesn't support 3D mesh's with faces at the moment |
5f195ae
to
8ef52e0
Compare
Codecov Report
@@ Coverage Diff @@
## master #3612 +/- ##
==========================================
- Coverage 65.19% 63.66% -1.54%
==========================================
Files 27 28 +1
Lines 6663 6885 +222
==========================================
+ Hits 4344 4383 +39
- Misses 2319 2502 +183
Continue to review full report at Codecov.
|
I don't think so, since this is only for triangles, your vertical bars would be ugly ! Also, this is only for the However you mentioned in #3507 (comment) that surface didn't have a mesh option. I've merged this PR which allows to use GR options when using surface, see the examples at #3591 Thinking out loud, maybe you can use: surface(...)
surface!(..., display_option=GR.OPTION_SHADED_MESH) # for a mesh on top of the previous plot ? Is that of any help ? |
Thanks for the suggestions. I'll think about your suggestions, and if you happen to have another good idea comment on my PR #3507. |
769bb19
to
49e87aa
Compare
@BeastyBlacksmith, if you don't see anything against, can I merge this ? |
Add GR support for mesh3d since, for now, GR does not support drawing arbitrary points using a triangle connectivity array.
The error check code was copied from the
pgfplotsx
backend: https://github.com/JuliaPlots/Plots.jl/blob/master/src/backends/pgfplotsx.jlThe test for this case already exists here as example
47
, and is run e.g. forpgfplotsx
: https://docs.juliaplots.org/latest/generated/pgfplotsx/#pgfplotsx-ref47.Needs JuliaPlots/RecipesPipeline.jl#90 patch.
Output of example 47
ref47.png
for GRAdd ref47 for Plots.jl/pull/3612 PlotReferenceImages.jl#101
Linked #392