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?

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 30 Mär. 2014

14 Stimmen

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

2 Kommentare

Thanks! This was super helpful. My graphs look a lot better now.
Cheers, mate
Great! Thanx a lot!!!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Discrete Data Plots finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by