JetBrains / lets-plot

Multiplatform plotting library based on the Grammar of Graphics
https://lets-plot.org
MIT License
1.55k stars 49 forks source link

Poor font rendering within SciView #364

Closed arthurire closed 3 years ago

arthurire commented 3 years ago

I'm using a remote python on my server (Ubuntu 20 LTS, Python 3.8), everything works fine in Jupyter Notebook in web browser.

However if I use Sentific Mode and SciView instead, fonts in SciView seems rendering poorly.

In Jupyter Notebook (Chrome 81) image

In PyCharm SciView (PyCharm 2021.1.1, Mac Mini M1) image

Here's the code to replicate this plot (copied from plugin homepage)

import numpy as np
from lets_plot import *
LetsPlot.setup_html()
np.random.seed(12)
data = dict(
    cond=np.repeat(['A','B'],200),
    rating=np.concatenate((np.random.normal(0,1,200),np.random.normal(1,1.5,200)))
)
p = ggplot(data,aes(x='rating',fill='cond')) + ggsize(500,250)\
    + geom_density(color='dark_green',alpha=.7)+ scale_fill_brewer(type='seq')\
    + theme(axis_line_y='blank') 
p.show()
arthurire commented 3 years ago

Rendering quality does not change with the size of the image or window.

alshan commented 3 years ago

You are right, the characters look terrible, I'll have to look at it. Saving png via the menu on the tab should give you better quality.

alshan commented 3 years ago

@arthurire could you check out the latest Lets-Plot-in SciView v1.1.0 ?

The font rendering quality should be a lot better now.

arthurire commented 3 years ago

@arthurire could you check out the latest Lets-Plot-in SciView v1.1.0 ?

The font rendering quality should be a lot better now.

Hi Alshan,

Sorry for the late reply. Font rendering quality is a lot better.

I'll close this issue. Thank you!