It's Possible chage the X-axis in order to hide the blank space?
    1 次查看(过去 30 天)
  
       显示 更早的评论
    
I cant find how chage the X-axis so that reduce the blank space between these points (space between blue bars in the picture) I attach my  code andmy .txt file.
I tried whit other optios but the results not is what I want. The important for this question in the code starting from figure(1) 
close all;
clearvars;
clc;
%% import data for permeability
IFT = importdata('IFT.txt');
%% calll the measurement of IFT
time   = IFT(:,1);  %% Call step time
IFTHSW = IFT(:,3); %%Call IFT measurement
IFTLSW1 = IFT(:,4); %%Call IFT measurement
IFTLSW2 = IFT(:,5); %%Call IFT measurement
IFTLSW4 = IFT(:,7); %%Call IFT measurement
%% Find mean and standar desviation
meanIFTHSW = mean (IFT(:,3));
meanIFTLSW1 = mean (IFT(:,4));
meanIFTLSW2 = mean (IFT(:,5)); 
meanIFTLSW4 = mean (IFT(:,7));
stdIFTHSW  = std   (IFT(:,3));
stdIFTLSW1 = std  (IFT(:,4));
stdIFTLSW2 = std  (IFT(:,5)) ;
stdIFTLSW4 = std  (IFT(:,7));
IFT = [meanIFTHSW meanIFTLSW1 meanIFTLSW2 meanIFTLSW4]'
salmuera = [30000 500 2000 500]'
figure(1)
E = plot(salmuera,IFT, 'o', 'MarkerSize', 8,'MarkerEdgeColor' , [.49 1 .63], 'MarkerFaceColor' , 'k')
%xticks('auto')
%smart_clean('NoWhiteSpace');
xlim([0 30500]) 
%ylim([0 25])

0 个评论
回答(1 个)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

