help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Plot scale space


From: sipjaga99
Subject: Plot scale space
Date: Fri, 16 Dec 2011 12:37:40 -0800 (PST)

hi
I made a plot with an image, but x-axis numbers is overlapping.
As you can see code below, if i set "axis auto", it makes space between
x-axis number, but I need to stick to "axis munual".

"axis([min(x1),max(x1),min(x2),max(x2)]);axis manual;"

Can you help me to figure out this problem?
(Attached file is plot image. Left plot is what is the problem. Right plot
is what I want.)

http://octave.1599824.n4.nabble.com/file/n4206143/plot_example.jpg 

========================
subplot(    8,    8,   58);
 sub_pos = get(gca,'position');
 set(gca,'position',sub_pos.*[1 1 1 1]);
pts=load (fullfile('plot_data/','NGC4694_2D_14_5'));
tmp = load (fullfile('plot_data/','NGC4694_p5.dat'));
 x1 = tmp(:,1);
tmp = load (fullfile('plot_data/','NGC4694_p14.dat'));
 x2 = tmp(:,1);
 hold on;
 axis([min(x1),max(x1),min(x2),max(x2)]);axis manual;
load (fullfile('plot_data/','NGC4694_2D_14_5_likes'));
 contourf(x1,x2,NGC4694_2D_14_5_likes,64);
 set(gca,'climmode','manual'); shading flat;
cnt = load (fullfile('plot_data/','NGC4694_2D_14_5_cont'));
[C h] = contour(x1,x2,pts,cnt,lineM{1});
set(h,'LineWidth',lw1);
 hold off; set(gca,'Layer','top','FontSize',axes_fontsize);
 xlabel('t_{2}','FontSize',lab_fontsize);
 ls =get(gca,'XTick');sz=size(ls,2);
 if(sz > 4)
  set(gca,'XTick',ls(:,1:2:sz));
 end;
======================================

--
View this message in context: 
http://octave.1599824.n4.nabble.com/Plot-scale-space-tp4206143p4206143.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]