3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MATLAB -> イラストレータでアクションを使用してクリッピングマスクなどを一発で解除する

Last updated at Posted at 2017-04-14

MATLABで透明度などを保ったまま figure をイラストレータなどに貼りたい場合,下記のようにクリップボードに保存してそのままペーストする方法がある.

figure; hold on;
subplot(121); hold on
histogram(randn(128), -6:.05:6)
histogram(randn(128) + 2, -6:.05:6)
print('-clipboard','-dmeta', '-painters')

この場合,figure はグループになっているし,各axesでクリッピングマスクを形成しているので数があると大変面倒くさい.
イラストレータにはアクションというマクロ機能があるので大抵のことは自動化できる.ここではグループとクリッピングマスク解除のマクロを設定する

0.PNG

ただ貼り付けるとこのようになっているので下のようなマクロを登録する.アクションパネルの右から二番目のボタンを押すと新規アクションが設定できる
2.PNG

適当な名前とショートカットを設定する.図を選択したあと,上のメニューからグループ解除,クリッピングマスク解除を行い,アクションパネルの四角いボタンを押すと登録が完了し,いつでもショートカットで上記のアクションが呼び出せる.

3.PNG

この状態の方がつかいやすいよね?この状態でMATLABから貼り付けられる方法をしってたら教えて欲しい.

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?