フィルターのクリア

Preserve nonwhite background when using copy figure on macOS

7 ビュー (過去 30 日間)
Christian
Christian 2019 年 3 月 14 日
コメント済み: Mike 2021 年 9 月 14 日
I am trying to use a figure with a dark background in a presentation on Mac. I usually do this by using Edit -> Copy Figure and paste it into Preview or Keynote. However, this turns the black background into white. I know of the
InvertHardcopy = 'off'
requirement. It have set this option to off, it makes no difference.
How can I copy the figure just as it is, no fitting to an obscure page size, no changing colors, but preferably vectorized (screenshot being the last resort, obviously)
  1 件のコメント
Mike
Mike 2021 年 9 月 14 日
You can try:
copygraphics(gcf,'BackgroundColor','current')

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

回答 (1 件)

Jan
Jan 2019 年 3 月 14 日
  1 件のコメント
Christian
Christian 2019 年 3 月 14 日
This is for Windows systems only. The 'programmatic alternative' is the InvertHardcopy, 'off' solution, which has no visible effects.
Thanks anyways

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

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by