Different scaling on the same axis

Dear all, I have a difficulty plotting data that ranges over 11 orders of magnitude and also contains some zero values.
In order to display this large range of data including the zero values, I would have to combine linear scaling (around zero) and logarithmic scaling (elsewhere) on each axis.
I could do this by breaking each axis at a given position and setting the scaling before the break to linear and the scaling after the break to logarithmic.
Does anyone know the trick how to do this? Cheers, Igor

Antworten (2)

Walter Roberson
Walter Roberson am 17 Jan. 2012

0 Stimmen

Perhaps the MATLAB File Contribution plt().
If not then there is a contribution named something like "breakaxis"
Igor Vilfan
Igor Vilfan am 17 Jan. 2012

0 Stimmen

Thanks, Walter, for your prompt response! :)
I have found breakXaxis earlier today at:
but it is unclear to me how to define separate types of scaling for axis section before the break and after the break. Any ideas? Thanks, Igor

Kategorien

Gefragt:

am 17 Jan. 2012

Community Treasure Hunt

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

Start Hunting!

Translated by