From: mena swagemakers on
Dear all,

I hope someone can help me.
I am trying to make a plot that consists of 1 y-axis and two datasets plotted at different x-axes...

figure
plot(....)
set(gca,'xaxislocation','bottom')
hold on
set(gca,'xaxislocation','bottom')
plot(....)

For those into oceanography it is about plotting x,y : salinity,depth on top of temperature, depth to look for double diffusivity.

but as soon as I change the xaxislocation command, this changes my first (already existing) plot, not the one that follows.

i used a manual zoom to locate the respective x-values for my first plot
thanks in advance!