microsoft / microsoft-r-open

Microsoft R Open Source
212 stars 69 forks source link

Jagged plots when using MRO-3.5.1 with Jupyterlab #79

Closed raivivek closed 5 years ago

raivivek commented 5 years ago

For some reason, it appears that when using a MRO-3.5.1 Kernel with Jupyterlab produces PNG plots that have jagged output (likely no anti-aliasing). When I switch to base R-3.3.3 version, everything looks great!

I have cairo functionality and everything else I could find on internet appears to be as expected, so I'm not sure what the problem is. I installed MRO through Anaconda.

>sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 9 (stretch)

Matrix products: default
BLAS: /home/vivekrai/.anaconda3/envs/mro_env/lib/R/lib/libRblas.so
LAPACK: /home/vivekrai/.anaconda3/envs/mro_env/lib/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RevoUtils_11.0.1     RevoUtilsMath_11.0.0

loaded via a namespace (and not attached):
[1] compiler_3.5.1

> capabilities()
       jpeg         png        tiff       tcltk         X11        aqua 
       TRUE        TRUE        TRUE        TRUE        TRUE       FALSE 
   http/ftp     sockets      libxml        fifo      cledit       iconv 
       TRUE        TRUE        TRUE        TRUE        TRUE        TRUE 
        NLS     profmem       cairo         ICU long.double     libcurl 
       TRUE        TRUE        TRUE        TRUE        TRUE        TRUE 

For base R:

> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 9 (stretch)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base 

Example outputs:

image image

raivivek commented 5 years ago

I also tested with R-3.5.1 and the plots look good. So it appears to be a problem with MRO build itself (see also: https://github.com/ContinuumIO/anaconda-issues/issues/10280)

jeroenterheerdt commented 5 years ago

I just tried to MRO 3.5.1 and the plots look good to me. Am I missing something? image

raivivek commented 5 years ago

I figure that there are so many elements involved in this setup that it's too time consuming to tell where the problem actually is. Most likely it's some Anaconda related mess. Thanks for responding nonetheless.