-
Notifications
You must be signed in to change notification settings - Fork 46
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
Plotting filled polygons with holes #101
Comments
This isn't supported currently, but it's easy to add. Here's a WIP branch I can finish soon: #102 |
Thanks for looking into this! One question, does your solution require me to pass the Polygon as a single path, or does your solution know how to plot polygons with holes implicitly? |
It'll be passed straight to gnuplot, so you'll need to deal with holes yourself. |
Thanks! I'm still testing, and I am glad you took care of this so quickly. What I am asking for now is merely guidance into how to organize/create functions that will provide higher level plotting for this crate. Thanks! |
If you want contour plots, there's already some support for that via |
If you have some insights, I will greatly appreciate it! I think plotting is currently Rust's Achilles heel, but I think that can be remediated. In practice what I am looking for is the family of 2D plots for triangulation and surfaces, (tricontour, trincontourf and triplot), because my work revolves around geoplanetary unstructured meshes. I also want to see if I can replicate contextily. I guess I could get away with using Axes3D, but strictly speaking, I am looking for 2D surfaces and triangulation plots, along with contextily-like basemap images. I know it's a super tall order! But Rust needs this! Personally, if I had the funding, I would be happily sponsoring a team to bring Rust plotting up to speed, particuarly, through a gnuplot-like interface, which is extremely similar to matplotlib and would essentially work as the Rust equivalent. Lots of people would probably switch from Py to Rust if we had solid plotting! |
I am trying to replicate this: https://stackoverflow.com/a/56375007/7432462
Assuming we already have converted the geo_types::Polygon into a single path, as described in the referenced link, how do we use the gnuplot api to plot this fill curve?
Thanks!
The text was updated successfully, but these errors were encountered: