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

Add protection from entering absurd values. #115

Closed alshan closed 4 years ago

alshan commented 4 years ago

For the instance, entering ggsize(1000000, 1000000) will freeze notebook (at least datalore nb).

IKupriyanov-HORIS commented 4 years ago

Default limit is set to 10_000 x 10_000. Limit can be changed via env vars LETS_PLOT_MAX_WIDTH and LETS_PLOT_MAX_HEIGHT or via function LetsPlot.set({'max_width': 100_000, 'max_height': 100_000})