Skip to content
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 more plot items #468

Closed
EmbersArc opened this issue Jun 6, 2021 · 0 comments · Fixed by #471
Closed

Add more plot items #468

EmbersArc opened this issue Jun 6, 2021 · 0 comments · Fixed by #471

Comments

@EmbersArc
Copy link
Contributor

EmbersArc commented Jun 6, 2021

I'd like to add the following items:

  • Arrows, also called "Quiver plots" in matplotlib etc.
  • (Convex*) polygons
  • Text
  • Images

Additionally it would be nice to make the following changes to existing plot items:

  • Make HLine/VLine into PlotItems as well.
  • Add a "fill" property to Line so that we can fill/shade the area between a line and a horizontal reference line.
  • Add stems to Points, which are lines between the points and a horizontal reference line.
  • Allow using .. when specifying ranges for values generated by explicit callback functions, as an alias for f64::NEG_INFINITY..f64::INFINITY
  • Allow using ranges with exclusive end bounds for values generated by parametric callback functions to generate values where the first and last value are not the same.

*I also have an implementation of the ear-clipping algorithm lying around that can be used to tessellate non-convex polygons. It's relatively few lines of code, but it's not the most efficient algorithm with O(n²) time complexity. I could add this to the plotting library, but maybe it's something for egui in general?

I've already implemented those things and will open a PR once #410 is merged

new_items.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant