Plotting a Scatter Plot With Logarithmic Axes

209 vues (au cours des 30 derniers jours)
Gabriel Bourget
Gabriel Bourget le 30 Mar 2014
Commenté : Umut Kamisli le 2 Avr 2018
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?

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 30 Mar 2014
scatter(1:10,1:10)
set(gca,'xscale','log')
  2 commentaires
Gabriel Bourget
Gabriel Bourget le 31 Mar 2014
Thanks! This was super helpful. My graphs look a lot better now.
Cheers, mate
Umut  Kamisli
Umut Kamisli le 2 Avr 2018
Great! Thanx a lot!!!

Connectez-vous pour commenter.

Plus de réponses (0)

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!

Translated by