" command. The bare-bones syntax for this is as follows: This places a text box with horizontal offset of 50% of the Figure's width, and vertical offset of 20% of the Figure's height. Add an annotation, with an optional arrow, at an arbitrary location of the Axes. Based on your location, we recommend that you select: . Unable to complete the action because of changes made to the page. Find the treasures in MATLAB Central and discover how the community can help you! From Matlab I have a set of data from which i create a graph. The annotation command requires me to set the location but I am unable to set the location outside the axes. Annotation objects are created in a hidden axes that extends the full width and height of the figure. Display an arrow pointing to the left by including the TeX markup \leftarrow. When the square is plotted, the line connecting the markers disappear, is it … You have to rotate the textbox using the property position. ... Find the treasures in MATLAB Central and discover how the community can help you! Reload the page to see its updated state. https://www.mathworks.com/matlabcentral/answers/358438-adding-second-line-to-text-box-in-plot#answer_283227, https://www.mathworks.com/matlabcentral/answers/358438-adding-second-line-to-text-box-in-plot#comment_487800, https://www.mathworks.com/matlabcentral/answers/358438-adding-second-line-to-text-box-in-plot#comment_487811.