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

Post by Prashant A » Thu, 18 Jun 2009 11:47:03


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.
 
 
 

1. how can i plot two different y-axis graph with same x-axis

2. Plotting a graph with one X-axis and two Y-axes

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.

Thank you in advance for your help.

Sincerely,
Igor

3. How do I produce a graph with 2 x-axes and 1 common y-axis?

4. Two graphs, primary/secondary y-axis with log x-axis

5. How to plot two set of data with same y-axis but different x-axis

6. two tendencies plot for the left Y axis and one bar plot for the right axis ?

7. How to combine two functions in one plot using a left and a right y-axis

8. how to combine two functions in one plot using a left and right y-axis?

9. plotting 2 x-axes and 2 y-axes on the same plot?

10. how to add a second x axis with same Y axis value in one plot

11. One Column on 1st y-axis and 3 lines on 2nd y-axis

12. Plotting on two x axes and one y axis

13. multiple colormaps in one figure that has two axes and two colorbars.

14. Plotting two y axis in one graph with different scales

15. Two Different Colormap in two axes in one figure...