-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Improve versatility of Contours #102
Comments
In #100 I asked for the behaviour that is now implemented in Although now I discovered why I was using Considering the speeds with which you guys implemented the multiple curve plotting with |
How did you get that idea? Path and Contours are largely identical, both have two |
Ah, my bad, I did something stupid... All works fine. |
Great, thanks. |
There are a few more notes I want to make about The main issue is that if you tabulate a contours object, there is no way to recover the original contour lines. This is because
In other words, currently contours[<path numbers>, <point numbers>, <x-range>, <y-range>] This would then be an example of an Element with key-dimensions that aren't completely independent: if you select a particular point, that constrains the The path numbers and point numbers would not need to be store explicitly as they can be easily computed from the data supplied in the constructor. The This approach also suggests |
So this was a long time coming but this is finally done. |
Currently,
Contour
elements accept a single level value, assigning all the contained contour paths to that level. For multiple levels, you need to overlay multiple contours.The suggestion here is to allow
Contours
to support a value dimension such that each point along a contour is associated with a value. As setting a value for each point is awkward and memory efficient in the case of iso-contours, there will be two ways of specifying contours:There are a few more possible niceties that we have discussed:
Contours
could be used even without specifying values by automatically assigning a value if not supplied. The simplest approach is a simple integer counter - the first path added could have a level value of 0, the second could have a value of 1 etc. This would allow a collection of (x,y) paths to be passed toContours
where they will render with different colors (see Multiple curves plotting is too much work (feature request) #100).Note that for now, I am only considering a single value dimension but you can imagine support multi-dimensional values along a contour as well (a possible future extension).
One other thing to note is that in the explicit format, we relax the notion of a contour from necessarily being an iso contour but I think this is ok as iso-contours will still be the common and easy case.
The text was updated successfully, but these errors were encountered: