teresa (bobosan) wrote in imageprocessing,
teresa
bobosan
imageprocessing

  • Mood:

move that colorbar! and give me two axes that i can tailor

Hi. i am not sure how often people check this community but here goes my question:

Query 1: i am working on a plot with five parts to it but four subplots. I cannot figure out for the life of me to get the color bar to situate itself on the plot without rescaling one of the three lower subplots, so i moved it to the xyy plot at the top, but it cuts off the x-axis.
any ideas?


Query 2: the first subplot is a xyy plot and i need to set the values of the two y-axes as constant and not actually input data. i just need a blank plot with preset axes. is that possible?

I put the bits of code I am refering to in the following lj-cut. thanks a lot (in advance)


subplot('Position',[0.1 0.6 0.8 0.35])
q=[0:0.5:6];
%r1=[-30:10:100];
%r2=[0:0.1:1];
r1 = ;
r2 = ;
[AX,H1,H2] = plotyy(q,r1,q,r2,'plot');
set(get(AX(1),'Ylabel'),'String','fast direction');
set(get(AX(2),'Ylabel'),'String','lag time');
xlabel('natural strain')
title('fast direction and lag time vs natural strain')
axis ij
hold on

caxis([0 0.6])
colorbar

%subplot(2,3,4)
subplot('Position',[0.0 0.1 0.3 0.45])
surf(x,y,Z100)
%cs=contour(x,y,Z100,25);
%clabel(cs)
axis([-1 1 -1 1])
caxis([0 0.6])
axis('square')
%break
shading 'interp'
hold on
xlabel('[100]')
plot(x2,y2,'k')
%colorbar('horiz')

subplot('Position',[0.35 0.1 0.3 0.45])
surf(x,y,Z010)
axis([-1 1 -1 1])
caxis([0 0.6])
axis('square')
shading 'interp'
hold on
xlabel('[010]')
plot(x2,y2,'k')

subplot('Position',[0.7 0.1 0.3 0.45])
surf(x,y,Z001)
axis([-1 1 -1 1])
caxis([0 0.6])
axis('square')
shading 'interp'
xlabel('[001]')
hold on
plot(x2,y2,'k')
%colorbar

saveas(gcf,'foo2.eps','psc2')
  • Post a new comment

    Error

    default userpic
  • 0 comments