How to adjust Scatter Plot's Y range while keeping X range constant?

29 ビュー (過去 30 日間)
zaki saadeh
zaki saadeh 2020 年 4 月 13 日
回答済み: Sindar 2020 年 4 月 14 日
On a scatter plot, how can I adjust the range of Y-values while leaving the X-values unchanged. I have a plot where the Y-values range is very small but the X-values range is very large (several orders of magnitude difference), and by adjusting the "ticks" in plot editing, the plot still does not adjust the range, rather only adjusts the labeling of the axes.
Basically, I would like to "zoom-in" to the Y-values while not zooming into the X-values.
The Y values range by about 1.5, while the X values are from 0 to 10000.
Thank you in advance!!

回答 (1 件)

Sindar
Sindar 2020 年 4 月 14 日
% set limits of y-axis to range 0-1.5
ylim([0 1.5])

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by