print with specified stylesheet and format in R2019b

조회 수: 2 (최근 30일)
Gaetano Pavone
Gaetano Pavone 2019년 12월 11일
댓글: Sahithi Kanumarlapudi 2019년 12월 17일
I have a function createfigure.m which creates a figure. I would like to add the possibility of automatically save or print the figure with specific stylesheet named style1 in jpeg format. How can I do this?
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 12월 17일
As far as I know, the only possibility for printing with a style sheet is using the Report Generator.
However, if you use uifigure() then my understanding is that the underlying technology could potentially use a style sheet. I have not researched to find out if there is a way to attach your own style sheet.
"traditional" figures do not support style sheets except as possible with Report Generator.

댓글을 달려면 로그인하십시오.

답변 (1개)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi 2019년 12월 17일
‘print(filename,formattype)’ could be used to save or print a figure in the required format. So to automatically print the figure you can add this function to your ‘createfigure function. For more information on this function refer to the following link
  댓글 수: 2
Walter Roberson
Walter Roberson 2019년 12월 17일
print() has no possibility of using a style sheet.
Sahithi Kanumarlapudi
Sahithi Kanumarlapudi 2019년 12월 17일
I have missed the stylesheet requirement. Yes Report Generator would be the best option

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by