Scaling to X axis

4 ビュー (過去 30 日間)
Catherine Mageeney
Catherine Mageeney 2018 年 1 月 13 日
回答済み: Image Analyst 2018 年 1 月 13 日
I have created a scatter plot. The x-axis is scaled so all points are equally represented. There is data from -30 to 30 but 90% of the data has an x value between 5 and -5. How can I scale the X-axis so you can see more area between -5 and 5 but still have all the x-axis values.

回答 (1 件)

Image Analyst
Image Analyst 2018 年 1 月 13 日
You can't. The axes are linear.
If you want, you can have x be the log(x) instead of x by doing
scatter(log(x), y);

カテゴリ

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