Issue
By default jupyter notebook inline plots are displayed as png, e.g.:
import matplotlib.pyplot as plt
%matplotlib inline
plt.plot()
How can you configure jupyter notebooks to display matplotlib inline plots as svg?
Solution
%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()
Answered By - Fabian Rost
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.