I used contourf. after changing the scales like colorbar min/max/interval, contour line interval etc, how to redraw the contour quickly? I found some contour in previous plot still exist so cause overlapping. Do I have to delete the contourf first? Thanks
MATLAB: How to redraw contourf after changing scale
redraw contourf
Related Question
- Are title and x/y lable not listed in Children property of axes
- How to change the location of the contours produced by MESHC or SURFC in HG1
- The default interpreter for the ‘title’ command is ‘tex’. How can the default be changed to ‘latex’
- “surf” overwrites axis properties
- можно ли сделать так, что бы сетка отображалась поверх 3D графиков
- When using copyobj() with a contour, changing properties of the copy has no effect
Best Answer
If you are just changing the properties of the contour object returned by contourf() then the graphics will update by themselves the next time the event queue is flushed.
If you already have the handle of a contour object returned by contourf(), and you want to change x, y, z data, and the other properties are going to remain the same, then you can update the XData, YData, or ZData properties of the contour object. The graphic will update by itself the next time the event queue is flushed.