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

8 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 19 de Oct. de 2020

Más respuestas (0)

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by