Changing Name Location of Points

4 次查看(过去 30 天)
Hey Community,
i am trying to name points in graph. It is writing the correct description at almost the correct position. For better visiblity I want, that the description in the graph is very close to the point but not interacting with any line in the graph.
Currently I use the following statement to name the points
text(x_coord , y_coord , Number of the point, 'fontsize',15)
Is there any feasible solution for that problem?
Thanks in advance.

采纳的回答

darova
darova 2020-2-19
You can set backgroundcolor to your labels
x = linspace(0,10);
y = sin(x);
plot(x,y)
text(0.8,0.8,'he','backgroundcolor','r')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by