Dots per inches (dpi) determines how many pixels the figure comprises. The default dpi in matplotlib is 100. A figure of figsize=(w,h) will ... ... <看更多>
dpi is needed if you plan to export the notebook (e.g., using nbconvert) with its plots. Now let's see the new plot with updated resolution: plt ... ... <看更多>
%matplotlib inline ensures that visuals will be provided in a notebook ... Matplotlib allows the aspect ratio, DPI and figure size to be specified when the ... ... <看更多>