Info

This question is closed. Reopen it to edit or answer.

How can I use plotyy to add two new plots of the same scale to an existing figure with histograms?

1 view (last 30 days)
Hi!
I have a figure with two histograms on it, created with hist function. Now I want to add two plots in the same figure (bell distribution actually), but they have different scale. I thought I could use plotyy, but I already have my first plot-scale on the figure. How can I add the second plot-scale?

Answers (1)

Star Strider
Star Strider on 13 Sep 2014
You don’t provide enough information to Answer you Question in detail.
I do not understand your not being able to create a second y-axis for your second histogram and probability distribution function. See: Create Graph with Two y-Axes for details on doing this.
If that does not work, we need to know in detail what the problem is. (It may be appropriate to supply relevant parts of your code and data if an effective and appropriate Answer requires it. We are good at MATLAB here, but are abject failures at mind-reading.)

Products

Community Treasure Hunt

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

Start Hunting!