フィルターのクリア

Image sizing issue: Report generator (or centerfigure function) in 2022b

2 ビュー (過去 30 日間)
John Pitman
John Pitman 2022 年 11 月 30 日
コメント済み: Sakshay 2022 年 12 月 8 日
Hi,
I recently got a new machine and installed 2022b whereas previously I was in 2020a.
I am having trouble getting my images to scale properly in reports. I use the centerfigure local function as in the help example
'Center Figure Snapshot on a Page'.
I went back and checked the behaviour of the original tutorial and get the same behaviour:
The other examples seem to work fine, e.g:
Is this a 2022b issue or am I missing something?
  1 件のコメント
John Pitman
John Pitman 2022 年 11 月 30 日
Further, I've tested in 2020a and behaviour is the same.
Doing some more testing to isolate, it seems to be coming from the centerfigure fn.

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

採用された回答

Sakshay
Sakshay 2022 年 12 月 2 日
Hello John,
Thanks for pointing that out. This seems like a bug in R2022b. Our team will be working on it.
  2 件のコメント
John Pitman
John Pitman 2022 年 12 月 8 日
Hi Sakshay. Thanks see my comment above however - I still get the issue in 2020a whereas in a previous installation this was not the case.
I have a work-around by just doing the images as in the other examples but it's a bit less elegant.
Thanks
Sakshay
Sakshay 2022 年 12 月 8 日
Hello John,
One another workaround you can try, is to set the snapshot format of the figure to be PNG.
In the "centerFigure()" function, use the Figure reporter as:
fig = Figure(figure);
fig.SnapshotFormat = "png";

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by