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
Add triplot and voronoiplot from DelaunayTriangulation.jl #3102
Conversation
Worth adding anything from this to the documentation? I figured not since it is pretty DelaunayTriangulation.jl specific. Two other comments:
tri = triangulate([rand(2) for _ in 1:50])
_tri = Observable(tri)
fig, ax, sc = triplot(_tri)
map(_tri) do tri
refine!(tri, max_area=1e-4get_total_area(tri))
end # Plot should now be updated Is my understanding of how this should work incorrect?
tri = triangulate(rand(2, 50))
triplot(tri, show_ghost_edges = true) |
|
Oh, is that how it's supposed to work? I tried |
Oh are they supposed to fill out the rectangle of the Axis? In that case I would suggest you create your own rectangle in the recipe and just stop them there. Then you can define |
Didn't know about |
…s to both plot types
@ffreyer I was actually hoping we could remove this at some point. It's kind of an axis setting set by a plotting function (setting |
Maybe we should release a breaking DelaunayTriangulation.jl release without Makie and rely on that here? |
That would be good. Let me release one tomorrow and change the compat in
this PR.
Do you know when a new release for Makie might be released if I do that? Is
it a schedule type release? Just thinking in case a new user gets the
newest release for DT.jl but has to know to downgrade to get 'triplot' in
the interim.
…On Tue, 1 Aug 2023, 1:53 am Simon, ***@***.***> wrote:
Maybe we should release a breaking DelaunayTriangulation.jl release
without Makie and rely on that here?
—
Reply to this email directly, view it on GitHub
<#3102 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWZPH4DA5HJVKCGQ7BMIVJ3XS7IF3ANCNFSM6AAAAAA23L42KM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I'm trying to tag a patch release this week! |
I've released the new version now (and then realised I have a bunch of edge cases to fix with the plots :) ). The test failures seem to just be from old reference images after I updated the recipes a bit. |
…colors after updating
- Use a coordinate-independent definition of color so that they don't rapidly change when moving points slightly
Did a |
Ah. Guess it wasn't the merged master. Don't know how I managed that. Sorry for mixing up the files like that - thanks for fixing it @ffreyer. |
…ie.jl into delaunay_recipes
I'm not sure how I managed to make the same mistake again? I'm pretty sure all I did was pull within VSCode ... Will undo once I learn how (: And then I will just stop touching it I've tried a few things but my Git seems really messed up with this branch for some reason? I've no clue what I've done to it honestly. Sorry to bug you again @ffreyer, are you able to redo the |
As long as you don't force push, it should just be a matter of undoing the last commit!
I opened a new PR with a corrected version since its easier to work with and actually builds + publishes the docs! |
Description
This PR adds
triplot
andvoronoiplot
from DelaunayTriangulation.jl (see here for the original code) to fix the circular dependency issue mentioned from @SimonDanisch here. Just for reference, here's an example of what it looks like:Once this is in (and after adding any other suggestions / changes to these recipes that might be made), I'll remove the corresponding code from DelaunayTriangulation.jl so that it is Makie-free.
Type of change
Checklist