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?

130 views (last 30 days)
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 Comments
Akash Chennuri
Akash Chennuri on 23 Feb 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.

Sign in to comment.

Answers (1)

KSSV
KSSV on 9 Aug 2016
  1 Comment
Akash Chennuri
Akash Chennuri on 23 Feb 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.

Sign in to comment.

Categories

Find more on Graphics Object Properties in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!