How can you plot from a saved contour?
显示 更早的评论
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.
回答(1 个)
Walter Roberson
2013-5-31
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!