MATLAB: Plots Limits in Matlab plotplottingxlim Hi, I want the X asis to plot from 1 to -1 and I tired to do xlim[(1 -1)] and -1 to 1 It didn't work, I want i to start from 1 and end in -1 which is reverse than normal plots what I got it from -1 to 1 on te plot? Best Answer You need to set xdir property to 'reverse'xlim([-1 1])set(gca, 'xdir', 'reverse') Related SolutionsMATLAB: Remove certain yticklabels from axis Change the set call to:set(gca,'YTick',1:1:8, 'YTickLabel',1:1:8); MATLAB: Subplots limit Were you using export_fig()?http://blogs.mathworks.com/pick/2010/05/28/creating-and-exporting-publication-quality-graphics/http://matlab.wikia.com/wiki/FAQ#How_do_I_save_my_figure.2C_axes.2C_or_image.3F_I.27m_having_trouble_with_the_built_in_MATLAB_functions.If so, I'd contact Oliver and he'll probably tell you how to fix it.If not, then I guess you'll find out why export_fig is the most downloaded File Exchange submission. Related QuestionDeletting X and Y axes ticksMatrix limitsRemoving Xaxis and Yaxis valuesMatrix limitsPlotting and reversing axis directionEfficiently setting lower axis limit
Best Answer