How do I change the line width in a contourslice plot?

8 views (last 30 days)
Take for example
[X,Y,Z,V] = flow;
zslice = 0;
s=contourslice(X,Y,Z,V,[],[],zslice)
grid on
I want the lines in the contourslice plot to be thicker, as I would them change in a regular contour plot via the LineWidth property. However, the contourslice object (called s here) does not have this property.

Accepted Answer

jonas
jonas on 7 Aug 2018
Edited: jonas on 7 Aug 2018
Yes it does. Contourslice builds a number of patch objects, which have linewidths like any patch objects. If it really does not work for you, then perhaps you are using an old MATLAB release.
set(s,'linewidth',2)

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!