MATLAB Answers

How can I have two different scales within the same axis on a plot ?

10 views (last 30 days)
Tanguy Giroud
Tanguy Giroud on 19 Oct 2020
Commented: Tanguy Giroud on 31 Oct 2020 at 11:33
I have a figure that looks like this :
But I would like a linear scale on the x-axis from 0 to 2, and then a logarithmic scale from 2 to 8. In other words, I would like the interesting data (on the left from 0 to 2) to take more space on the figure but I still want to see the red line going to 0 for x=8. The ideal result would be similar to this :
The main challenge is that the shaded error bar function that I use in my figure is handmade and quite complex, so I would need a solution that I can apply after I plotted the figure you see. Can you help me with this ?
Thanks for your help

  0 Comments

Sign in to comment.

More Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!

Translated by