How to plot one point in one axis

12 次查看(过去 30 天)
I am trying to create a plot where I have only the x-axis. With
xlim ([a b])
I can specifiy the length of the axis. I now want to plot a number in only that axis. How could I do this?
  1 个评论
John Miller
John Miller 2020-9-13
If it wasn't clear my question is how to make the y-axis disapper and how to plot that point (which is a number between 'a' and 'b')

请先登录,再进行评论。

采纳的回答

Abdolkarim Mohammadi
编辑:Abdolkarim Mohammadi 2020-9-13
You should turn off the visibility of the vertical axis. For example:
scatter (1,1);
ax = gca;
ax.YAxis.Visible = 'off';
xlim ([0,3]);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by