Saving orientation of a plot in the script

Hello everyone,
is it possible to save a generic orietation of a plot and then recover it every time I run a script? For example I did a 3d plot, I changed manually the orientation of the figure and now I'd like to "save in the script" this orientation; in this way, next time I'll have the previous orientation when I'll run the script.
Thank you so much.

 採用された回答

madhan ravi
madhan ravi 2018 年 11 月 2 日

1 投票

6 件のコメント

Gennaro Arguzzi
Gennaro Arguzzi 2018 年 11 月 2 日
Hello @madhanravi, your solution is very useful.
madhan ravi
madhan ravi 2018 年 11 月 2 日
Happy to help :)
Gennaro Arguzzi
Gennaro Arguzzi 2018 年 11 月 2 日
I have a problem when I use subplot. In this case how can I save simultaneously the orientations of the several plots in subplot?
madhan ravi
madhan ravi 2018 年 11 月 2 日
use view command under each subplot
Gennaro Arguzzi
Gennaro Arguzzi 2018 年 11 月 2 日
編集済み: Gennaro Arguzzi 2018 年 11 月 2 日
view gives me the azimut and elevation of my manual orientation when I run it in command window (e.g. [az,el]=view). If I run it in script, it gives me the az and el of the plot automatically generated by matlab. I can uncomment only a plot and take its az and el by running [az,el]=view in command window, but if I have several plots, this procedure takes a lot of time.
Gennaro Arguzzi
Gennaro Arguzzi 2018 年 11 月 2 日
Also when I have only two plots, it's difficult to compare the relative orientations.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by