MATLAB: Plot / names for points namesplotpointssubplot Hey Guys. How can I get some space between the points (x,y) and thier "names". text(x,y1,names,'Interpreter','none','rotation',90) Best Answer I always add a space:strcat({' '},names)Best regards, Michael Related SolutionsMATLAB: Changing Name Location of Points You can set backgroundcolor to your labelsx = linspace(0,10);y = sin(x);plot(x,y)text(0.8,0.8,'he','backgroundcolor','r') MATLAB: Change points name when plot See datatip(): https://www.mathworks.com/help/matlab/ref/matlab.graphics.datatip.datatip.html and this link: https://www.mathworks.com/help/matlab/creating_plots/create-custom-data-tips.html to find out how to customize the content of data tips. Related QuestionCustomizing point names in matlabLabel index/variable name near data points
Best Answer