Timeline for Get the coordinates from ContourPlot and RegionPlot
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 4, 2016 at 14:50 | comment | added | Jens |
No, and I wouldn't rely on any undocumented feature even if the order were coincidentally following some pattern. You should just sort them to be certain. It's easy using SortBy[... , First] .
|
|
Jul 4, 2016 at 9:29 | comment | added | GEF |
Hi @Jens, do you know how Normal orders the points? I have a plot with a series of contours and using this function gives me some contours with points ordered from left to right and others from right to left, is there a way to make this consistent?
|
|
Feb 28, 2013 at 3:00 | history | edited | Jens | CC BY-SA 3.0 |
Forgot the plot
|
Feb 28, 2013 at 2:52 | history | edited | Jens | CC BY-SA 3.0 |
Addressed RegionPlot
|
Feb 26, 2013 at 19:14 | comment | added | Jens |
Then just take the list as above, call it l , and access the first list as l[[1]] , the second list as l[[2]] etc. If that doesn't work for you, it's always possible to generate two separate contour plots to be sure you capture the correct coordinates.
|
|
Feb 26, 2013 at 19:09 | comment | added | fcpenha |
Yes, I meant { f[x,y] == 1, g[x,y] == 1} . But it would be more convenient to make two distinct nested lists, one for each function.
|
|
Feb 26, 2013 at 18:59 | comment | added | Jens |
I assume you mean two equations of the type {f==1, g==1} ? It should work without modification, and the order of the lines lets you determine which equation they belong to. The output of Cases is a list of lists, so the structure of the point sets is preserved.
|
|
Feb 26, 2013 at 18:54 | comment | added | fcpenha |
Thanks. What if ContourPlot has two or more functions as arguments (e.g., {f[x,y],{g[x,y]}} )? How should we change the code above?
|
|
Feb 26, 2013 at 18:41 | vote | accept | fcpenha | ||
Feb 26, 2013 at 18:39 | comment | added | Jens | OK, I've added an explanation and slightly simplified the expression. | |
Feb 26, 2013 at 18:39 | history | edited | Jens | CC BY-SA 3.0 |
Simplified and added explanation
|
Feb 26, 2013 at 18:29 | comment | added | fcpenha | Please, could you explain the syntax? | |
Feb 26, 2013 at 18:27 | history | answered | Jens | CC BY-SA 3.0 |