altmany / altmany/export_fig

Images drawn by imagesc with background transparency lose bg transparency on export

オープン
#123 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
MATLAB
スター
1.4k
フォーク
366
PR マージ指標
30日以内にマージされた PR はありません

説明

A sort of minimum working example,

``` Matlab
I = imread('file.jpg');
alpha = I(:,:,1) > 235 & I(:,:,2) > 235 & I(:,:,3) > 235; %white->transparent
pic = imagesc(I);
pic.AlphaData = ~alpha;
export_fig(fig,output,'-nocrop','-transparent')
```

The result will have the original white background, rather than the transparent background hacked by setting the alphadata property.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。