jupyter notebook inline plots as svg

前端 未结 2 1343
醉话见心
醉话见心 2020-12-13 02:56

By default jupyter notebook inline plots are displayed as png, e.g.:

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

How can

2条回答
  •  我在风中等你
    2020-12-13 02:58

    %config InlineBackend.figure_formats = ['svg'] does the trick. A minimal example is:

    %config InlineBackend.figure_formats = ['svg']
    
    import matplotlib.pyplot as plt
    %matplotlib inline
    plt.plot()
    

提交回复
热议问题