What is retina display mode in matplotlib? I searched a lot and only thing I get is how to use it in jupyter notebook. How is it different? Does it have something to do with apple's retina display?
EDIT:
In jupyter notebook, this is how the code is written:
import matplotlib.pyplot as plt
%matplotlib inline
%config InlineBackend.figure_format='retina'
My doubt is what does this retina mode does? How is it different from other modes?
%matplotlib inline turns on “inline plotting”, where plot graphics will appear in your notebook. This has important implications for interactivity: for inline plotting, commands in cells below the cell that outputs a plot will not affect the plot.
Basically, the plt is a common alias of matplotlib. pyplot used by most people. When we plot something using plt such as plt. line(...) , we implicitly created a Figure instance and an Axes inside the Figure object.
Step 1 — Importing matplotlib In the command line, check for matplotlib by running the following command: python -c "import matplotlib"
It's just that the definition of the displayed plot is a bit better: retina quality. Any display with retina resolution will make the figures look better - if your monitor's resolution is sub-retina than the improvement will be less noticeable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With