Filter löschen
Filter löschen

add label to a contour when when multiples plots

1 Ansicht (letzte 30 Tage)
Beatriz Sanchez
Beatriz Sanchez am 18 Sep. 2019
Kommentiert: Star Strider am 19 Sep. 2019
Hello saviors,
so, I'm creating three contour from trhee matrix array on a single plot using hold on:
hold on
contour (muvec, muvec, spaln(:,:,1))
contour (muvec, muvec, spaln(:,:,2))
contour (muvec, muvec, spaln(:,:,3))
hold off
What I want is to label each contour with 1, 2, 3 for each matrix, so I can know which contour represent wich matrix array.
thank you all

Akzeptierte Antwort

Star Strider
Star Strider am 18 Sep. 2019
They appear to be plotted on the same set of coordinate matrices. One option is to use different line colours (and other variations) for each contour plot. You might also consider contour3, that will allow you to separate them vertically.
  4 Kommentare
Beatriz Sanchez
Beatriz Sanchez am 19 Sep. 2019
thank you, I didn't do it exactly like you, but your way help me a lot!
Star Strider
Star Strider am 19 Sep. 2019
As always, my pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by