Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is matplotlib's retina display mode? [closed]

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?

like image 653
InAFlash Avatar asked Jan 22 '19 16:01

InAFlash


People also ask

Why is %Matplotlib inline?

%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.

How do you define PLT in Python?

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.

Which line of code will import Matplotlib?

Step 1 — Importing matplotlib In the command line, check for matplotlib by running the following command: python -c "import matplotlib"


1 Answers

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.

like image 72
Helmer Avatar answered Sep 19 '22 22:09

Helmer