set x-axis intervals as cubic of X
Show older comments
hello,
I am really sorry to bother you all with this question, I know that there is a solution somewhere in a forum (yesterday I found it, but I cannot find it again today, maybe because my keywords are not appropriated).
I am plotting subplots of errobar graphs, displaying X and Y experimental data. The x-axis interval is linear. I would like to set the x-axis interval as X^3, keeping the xlabel as X, and displaying the xticks as X^3.
Actually, I use set(gca,'Xscale','lin','Yscale','lin','FontSize',16);
I want to modify this line to display Xscale with XTicks as X^3
Could someone refresh my mind ?
Just to figure out some line of my program (for reading only) :
long = 800; large = 800;
f1 = figure('PaperUnits','inches','PaperType','A4','PaperOrientation','landscape',...
'Color',[1 1 1], 'OuterPosition',[20 1 long large]);
set(0, 'CurrentFigure', f1);
errorbar(x,y1,err_y1,'-v','Color',markerColour,'MarkerEdgeColor',markerColour,'MarkerFaceColor',markerColour);
title(strcat(YLABEL_M{u(idx(IndexT))},'= ',num2str(Pp{IndexT}(i),'%.0f')),'FontSize',12); % title of the overall graph
set(gca,'Xscale','lin','Yscale','lin','FontSize',16);
grid on; hold on;
Answers (1)
laurent jalabert
on 22 May 2019
0 votes
Categories
Find more on Graphics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!