How can I have two different scales within the same axis on a plot ?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Tanguy Giroud
el 19 de Oct. de 2020
Comentada: Tanguy Giroud
el 31 de Oct. de 2020
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 comentarios
Respuesta aceptada
Ameer Hamza
el 19 de Oct. de 2020
Refer to my answer here: https://www.mathworks.com/matlabcentral/answers/601147-extending-specific-y-axis-values.
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!