Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

vincentjzy
Copy link

This PR adds a function to plot filled contour according to a regular/irregular grid of data. It reproduces the function of contourf(x, y, z) in Matplotlib. The implementation is inspired by Surface plots in ImPlot3D. Existing plot functionality is unaffected.

An example, Demo_ContourFill, is added into the implot_demo.cpp, as shown in the figure below. Three 1D float arrays are required as inputs, two for coordinates x and y, and one for z (could be the values of height, temperature or density, etc).
Demo_ContourFill

Please let me know if there is any comment or suggestion.

… data, reporducing the function of contourf(x, y, z) in Matplotlib.
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 this pull request may close these issues.

1 participant