SVG

2016-04-14 3 views
8

としてjupyterノートインラインプロットに、例えば:あなたはSVGとしてmatplotlibのインラインプロットを表示するには、jupyterノートブックを設定するにはどうすればよいSVG

import matplotlib.pyplot as plt 
%matplotlib inline 
plt.plot() 

答えて

24

%config InlineBackend.figure_format = 'svg'トリックします。最小の例は:

import matplotlib.pyplot as plt 
%matplotlib inline 
%config InlineBackend.figure_format = 'svg' 
plt.plot() 
+2

%matplotlibノートブックを使用しているときに同様の修正があるかどうか知っていますか?私は数字の表示をsvgの品質として表示する方法を見つけることができないようです。 –

+0

申し訳ありませんが、私はそれを知らない。 –

+1

@markjayによるコメントについて質問されている[新しい質問](https://stackoverflow.com/questions/45466947/include-output-from-matplotlib-notebook-backend-as-svg-in-ipynb)うまくいけば誰かがすぐにそれに答えるだろう。 – ImportanceOfBeingErnest