How can you plot from a saved contour?
2 views (last 30 days)
Show older comments
I have run the contour function on a very large data set, and the structure file saved and a graph appeared. This however takes a VERY long time given the size of the file. Is there a way to plot the contour from the saved file rather than have to run the whole contour function again? Thanks.
Answers (1)
Walter Roberson
on 31 May 2013
If you are looking to plot from a contour matrix returned by contour(), then I do not see any routine to do that. MATLAB does not use an kind of obvious routine for that internally. There might be one in the File Exchange.
Have a look at the source code for contour3() as that has the code for the old (-v6) method of producing patch objects.
The current method involves internal magic with a hggroup and a hidden undocumented property. When the property is set, something internal takes the zdata matrix of the hggroup and builds the contour matrix and patch objects; then contour() fetches the contour matrix from the resulting hggroup and returns it. There must be some plotting routine involved, but Some Things Man Is Not Intended To Know.
0 Comments
See Also
Categories
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!