Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add instructions for Retina displays. #27

Open
mcourteaux opened this issue Sep 12, 2017 · 3 comments
Open

Please add instructions for Retina displays. #27

mcourteaux opened this issue Sep 12, 2017 · 3 comments

Comments

@mcourteaux
Copy link

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
Copy link
Owner

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

@mcourteaux
Copy link
Author

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants