Azzera filtri
Azzera filtri

Changing clim on previous imagesc in a subplot

8 visualizzazioni (ultimi 30 giorni)
Hello,
I am making imagesc subplots and at the end i am finding max values within a loop.
I tried using h = imagesc() then "set(h, 'CLim', [somevalue, somevalue])" but then found out you cant use handles in this way with imagesc.
How can i change the clim values on those plots?
Thanks!

Risposta accettata

Walter Roberson
Walter Roberson il 8 Feb 2013
imagesc() does not itself create subplots. subplot() creates subplots. You need to record the output from the subplot() call and use it as the handle for the set()
thisax = subplot(2,3,5); %for example
imagesc()
set(thisax, 'CLim', [somevalue, somevalue]);

Più risposte (1)

Mason
Mason il 8 Feb 2013
ah ha! awesome, thanks! Makes total sense.

Categorie

Scopri di più su Lighting, Transparency, and Shading in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by