Plotting a Scatter Plot With Logarithmic Axes

I'm currently doing some simulation work for a physics honours project and I have data generated into vectors that I'd like to plot. I've read up on the scatter() function, but haven't seen how to plot any of those axes in a logarithmic fashion. I was wondering if anyone knew if the scatter() function had this functionality or not?

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 3 月 30 日

14 投票

scatter(1:10,1:10)
set(gca,'xscale','log')

2 件のコメント

Gabriel Bourget
Gabriel Bourget 2014 年 3 月 31 日
Thanks! This was super helpful. My graphs look a lot better now.
Cheers, mate
Umut  Kamisli
Umut Kamisli 2018 年 4 月 2 日
Great! Thanx a lot!!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by