|
Hi,
I am having a little problem with the nexplot property:
I am working on a GUI that have a axes and a uibuttongroup with 5 buttons. each button corresponds with a matriz, that are all the same size, but with different values inside.
I have created a SelectionChangeFcn for the uibuttongroup, so that each time I click on one button, it displays the matrix with an imagesc on the axes.
The thing is that I would like to keep zoom limits made on a first matrix, and then if I want to see another matrix data on the same axes, that matlab keep these limits.
I don' know how to do that, perhaps with nextplot and replacechildren? I t doesn't work ok because apparently this "replacechildren" set off all the properties of my axes, and so it changes the axis mode, and I can't see my matrix properly.
This what I have:
my axes:
h.cp1=subplot(5,3,[1 2 4 5],'Parent',h.panel_contourplots);
set(h.cp1,'position',[0.08 0.7 0.5 0.25],'nextplot','replacechildren' );
my plot command:
imagesc(matriz);
I have set some Xtick and Yticklabels,...
If you have an idea of what it is happening that would be very helpfgul. thanks!
Camille.
|