daleroberts / itermplot

An awesome iTerm2 backend for Matplotlib, so you can plot directly in your terminal.
1.49k stars 51 forks source link

Please add instructions for Retina displays. #27

Open mcourteaux opened 7 years ago

mcourteaux commented 7 years ago

The image in the main README showcases a screenshot of a retina display with a figure displayed inline in iTerm2. How to do this? All my attempts result in pixelated images.

daleroberts commented 7 years ago

I'm not quite sure what you are asking, could you supply a screenshot of the problem?

mcourteaux commented 7 years ago
screen shot 2017-09-12 at 00 00 17

Go ahead and pixel peep at it at 1:1 scaling. Text is nice and smooth, using full retina abilities, whereas the image is pixelated, due to retina not being scaled. The exact same happens with itermplot figures: they are not retina. You somehow were able to make them retina, as is shown in the screenshot in the main README.

Look here: 21741494_1467469093335629_234047169_n And zoomed in: 21744935_1467468100002395_318850043_o

daleroberts commented 6 years ago

Currently, itermplot defaults to generating PDF images for transfer to iTerm2 and there seems to be a bug in iTerm2 around retina rendering that is now fixed in the beta and nightly builds. See here.

Alternatively, you can set export ITERMPLOT_PLOTFILE="plot.png" to use the PNG backend. This should help achieve what you want and then you can also tweak the DPI settings. See here.