How to plot one point in one axis

8 ビュー (過去 30 日間)
John Miller
John Miller 2020 年 9 月 13 日
編集済み: Abdolkarim Mohammadi 2020 年 9 月 13 日
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 日
編集済み: 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 Center および File ExchangeScatter Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by