hello,
thanks for the reaction
here is another descritption of the (plot) requirements:
- origin of all the three subplots should be identical - point [0 0] of subplots corresponding to point [ 0 0 0] of the data (somewhere in the middle of parent fig.)
- the (lover) axes of subplot 11 should be identical with (upper) axes of subplot 21
- the (right) axes of subplot 11 should be identical with (left) axes of subplot 12
- required operation is (mainly) figure size change
It could be done also by the code given below, however the TickLabels do not correspond to the 3D data (in signs). Of course the TicksLabels can be re-write, or 2nd axes could be added .... but is there any way how to place subplots at the particular positon (and size) into pattern figure/axes ? And keep their mutual position/connection while e.g. the fig size change? (the subaxes can be linked).
function plot3x2D_v2
close all
clear all
NN=10;
x=rand(1,NN);
y=rand(1,NN);
z=rand(1,NN);
val=rand(1,NN);
figure; hold on
%axis off
% added two calibration points
x=[x 0 1];
y=[y 0 1];
z=[z 0 1];
val=[val 0.1 0.9];
% subplot 11
scatter(-x,y,val*200,val,'filled','Markerfacealpha',0.6);
% subplot 12
scatter(z,y,val*200,val,'filled','Markerfacealpha',0.6);
% subplot 21
scatter(-x,-z,val*200,val,'filled','Markerfacealpha',0.6);
plot([-1 1],[0 0],'k:');
plot([0 0],[-1 1],'k:');
axis equal
set(gca,'xlim',[-1 1]);
set(gca,'ylim',[-1 1]);
box on
end