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

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

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

Asked:

on 7 Aug 2018

Commented:

on 8 Aug 2018

Community Treasure Hunt

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

Start Hunting!