Define the entire plot package

1 回表示 (過去 30 日間)
alpedhuez
alpedhuez 2020 年 5 月 30 日
コメント済み: alpedhuez 2020 年 5 月 30 日
When I write a plot, it has
  • plot of x y variables
  • legend of variables
  • specification of x plot
  • specification of y plot
  • specification of the title
Is there any way to define an object for all these definitions?
For example, suppose I develop a plot of
  • day from January 1 to December 31
  • temperature
with all these specifications. Then I want to save all these speifications. Then I want to draw a second plot for January 1 to June 30 by just using xlin.

採用された回答

Image Analyst
Image Analyst 2020 年 5 月 30 日
Did you specify those by code? If so, then you can just encapsulate all those things into a function.
Or did you manually change things with the plot figure's Property Inspector? If you manually changed things, you can do File->Generate Code from the pulldown menu of the figure to make code for all the things you manually did.
  3 件のコメント
Image Analyst
Image Analyst 2020 年 5 月 30 日
Then you can just encapsulate all those things into a function. If you don't know how, then show me all the things you did to set up the plot, like calling xlabel(), ylabel(), title(), xticks(), yticks(), xlim(), etc.
alpedhuez
alpedhuez 2020 年 5 月 30 日
Thank you. Let me work on it.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Objects についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by