How to create a second x-axis on top of 2d plot, where I'm plotting units in nm on the x-axis. I want to calculate the corresponding electron-volt value, and display this value on the x-axis on top of the plot. How can I do this?
553 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dears,
I have a question regarding plotting command, could you please help me with that. I want to generate graph same as the graph below;
Thank you very much.
Kind regards, Mohammed A. Jameel
2 comentarios
Tasos Giannoulis
el 9 de Oct. de 2022
Since R2019b, this is possible with tiledlayout:
https://www.mathworks.com/help/matlab/ref/tiledlayout.html
Akash Chennuri
el 23 de Feb. de 2023
With this method, is there a way to ensure that when zooming in on a specific portion of the graph that it zooms both axes? When I apply the tiled layout with multiple x and y-axes, it only zooms on the graph represented by the top and right axes as opposed to both graphs. Any help here would be appreciated.
Respuestas (1)
KSSV
el 9 de Ag. de 2016
You may refer the below link, it might be helpful: http://in.mathworks.com/help/matlab/creating_plots/graph-with-multiple-x-axes-and-y-axes.html
1 comentario
Akash Chennuri
el 23 de Feb. de 2023
With this method, is there a way to ensure that when zooming in on a specific portion of the graph that it zooms both axes? When I apply the tiled layout with multiple x and y-axes, it only zooms on the graph represented by the top and right axes as opposed to both graphs. Any help here would be appreciated.
Ver también
Categorías
Más información sobre Data Exploration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!