How to plot one point in one axis

조회 수: 9 (최근 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 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