Custom plot in MATLAB?

1 vue (au cours des 30 derniers jours)
Manuel Montesinos del Puerto
Commenté : Fangjun Jiang le 19 Mar 2020
Good afternoon,
I have the MATLAB R2016b release and I need to have a plot with the following scheme but I do not know how to do it:
  • Two line plots with different axis in the left side of the plot and one area plot with the right axis.
I prove with yyaxis left and right, ploty, addaxis but I have not managed to get it out.
Can anyone help me please?
Thanks in advance.
Manuel

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 18 Mar 2020
https://www.mathworks.com/help/releases/R2019b/matlab/creating_plots/plotting-with-two-y-axes.html
  4 commentaires
Manuel Montesinos del Puerto
Sorry, maybe I explain badly the result I want to get out.
The following image describes better which is the result wanted:
  • The green one (LINE PLOT 1 - left Y) and the black (AREA PLOT - right Y) have been created using yyaxis right and left function. Perhaps there is a better way to do it.
  • Then the only thing I do not know how to do is adding the red axis (LINE PLOT 2 - left Y).
Thanks in advance!
Fangjun Jiang
Fangjun Jiang le 19 Mar 2020
Sorry, as far as I know, you can only have two y-axis (left and right). No third y-axis.

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by