Setting the display dpi (default is 80) has no effect in the notebook.

In [7]:
fig, ax = plt.subplots(dpi=120)
ax.plot(np.random.rand(10))
Out[7]:
[<matplotlib.lines.Line2D at 0x4645370>]

Setting the savefig dpi has effect, but changes it globally so it effects all further plots.

In [8]:
mpl.rcParams['savefig.dpi'] = 120

fig, ax = plt.subplots()
ax.plot(np.random.rand(10))
Out[8]:
[<matplotlib.lines.Line2D at 0x45013b0>]
In []:
 
Back to top