How to plot a contour in a fast scatter plot
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi everyone,
I have a temperature field calculated through markers advection and I would like to plot the 600 °C contour.
I am using the fastscatter function to obtain the temperature field(Fastscatter(xm,ym,Tm)), where xm and ym represent markers coordinate and Tm the markers temeprature and are calculated accordingly to particular functions. I just need the contour to visualize its evolution over time, I don't need it for further calculations.
Thanks!
댓글 수: 3
Walter Roberson
2019년 7월 31일
fastscatter is not part of MATLAB so it is necessary to identify the source of it so that people know what it does.
채택된 답변
Walter Roberson
2019년 7월 31일
편집: Walter Roberson
2019년 8월 1일
추가 답변 (1개)
checkMAT
2019년 8월 1일
댓글 수: 1
Walter Roberson
2019년 8월 1일
contour() itself returns https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.contour-properties.html Contour objects. clabel() expects those objects, but tricontour() returns patch objects.
Patch properties include EdgeColor and LineWidth
To label the contours that are patch objects, you will have to text() somewhere appropriate. True contour objects are able to internally break the line and put in the text somewhere "nice", but you will not be able to do that at all easily for patch objects.
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!