I want to obtain the values of streamlines and put it into legend.

2 次查看(过去 30 天)
see attached file

回答(1 个)

Adam Danz
Adam Danz 2021-11-21
Your contour lines are all black so a legend of black lines would not be helpful to map the contour values to the plot. I recommend removing the "-k" input so contour lines are colored and add a colorbar.

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by