## Plot two graphs on same figure with two x-axes and one shared y-axis

### Plot two graphs on same figure with two x-axes and one shared y-axis

I just wanted to plot two different functions, for simplicity let's say: 1. price in USA; and 2. price in India, as a function of weight. Now, I want this weight to be represented in pounds (popular in USA) as well as kilograms (popular in India), as two different x-axes, one on top of the graph while another on bottom of the graph. However, I want only single y-axis to compare the graphs of 'price in USA' and 'price in India'.

Is that possible in Matlab? I tried plotyy but it creates two y-axes for a single x-axis.

Any help is greatly appreciated. Thanks.

Hi, I am trying to create a graph with a single X-axis and two Y-axes
corresponding to a width, height, and length of a rectangular box. I
am trying to plot various combinations of these such that they
correspond to the box volume of <40 cm3. In other words, I would like
to print a graph such that someone can measure the sides of the box and
look these up in the graph and know whether the volume is less than 40
cm3. I don't quite know how to implement this in Mathematica as I am
pretty new at this.