I'd like to link axes for plots on different figures. However, my plotting method is within a class designed for a GUI and plots variables based on a listbox selection. Per listbox selection, a new figure is created with the Y value being different(only magnitude and not length). What I'd like to do is be able to linkaxes for all successive plots. I noticed that the linkaxes function only works for subplots. Is there a simpler way to accomplish what I'd like to do? My code is similar to the following where the value of Y1 will change based on a listbox selection.
X1=1:100;
Y1=sqrt(X1);
figure();
plot(X1,Y1)
Thanks!