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')
How to plot one point in one axis
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
John Miller
le 13 Sep 2020
Modifié(e) : Abdolkarim Mohammadi
le 13 Sep 2020
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?
Réponse acceptée
Abdolkarim Mohammadi
le 13 Sep 2020
Modifié(e) : Abdolkarim Mohammadi
le 13 Sep 2020
You should turn off the visibility of the vertical axis. For example:
scatter (1,1);
ax = gca;
ax.YAxis.Visible = 'off';
xlim ([0,3]);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/359917/image.jpeg)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Scatter Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!