Effacer les filtres
Effacer les filtres

How to plot two 3-D figures with different axes in a single plot?

4 vues (au cours des 30 derniers jours)
Anshul Jain
Anshul Jain le 4 Déc 2021
Dear sir,
I have 2 sets of parameters (Ez, Bx, By) and (Ex, Ey, Bz) but both having different units.
(Ez, Bx, By) have units of mm.deg^2 [Ez has unit of mm, while Bx and By have units of deg.]
(Ex, Ey, Bz) have units of mm^2.deg [Ex and Ey are in mm while Bz is in deg.]
I want to show both 3-D plots (solid plots) in one figure only. Since, both set of parameters have different units, I am unable to show them in a single plot.
Excel sheet is attached with their respective values.
How to show both of them in one figure?
Kindly help.
Thnaks in advance

Réponses (1)

Walter Roberson
Walter Roberson le 4 Déc 2021
You can use subplot() or tiledlayout() to create two different visually distinct axes that are beside each other horizontally or vertically.
Or, you can create two axes that have the same Position. You would probably want to link the Position properties together for the two axes so that they stayed in the same position.

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by