altmany / altmany/export_fig

Plot with left and right Y-axes in a mlx fails to export to eps in Live script

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

説明

Hello, I'm running version 3.44 and I stumbled upon a problem when trying to export a figure with a plot using left & right yyaxis. While trying to come up with a minimal working (failing) example, I have discovered that this problem only seems to happen in Live scripts (`.mlx`). The exported figure is empty and the following warning is emitted:

> Warning: Some uifigure controls cannot be exported by export_fig and will not appear in the generated output .

Same code in `.m` file produces figure normally.
```Matlab
t = linspace(0,10);
x = sin(t);
y = cos(t);

f = figure;

yyaxis left
pleft = plot(t, x, '-');

yyaxis right
pright = plot(t, y, '-');

export_fig(f, 'tryout', '-eps');
```

I'm not very well versed in Matlab, so if you need some more info to replicate this, I'll gladly try to provide.

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

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

評価

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

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

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