JetBrains / lets-plot

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

Incorrect Y-axis layout with facets and panel_inset #1194

Open IKupriyanov-HORIS opened 1 month ago

IKupriyanov-HORIS commented 1 month ago
import string
from lets_plot import *

LetsPlot.setup_html()

d = {
    l: [i]*2 for i, l in enumerate(string.ascii_lowercase)

} | {'facet': [0, 1]}
ggplot(d, aes(x='a', y='b')) + geom_point(tooltips=layer_tooltips(list(string.ascii_lowercase)))  + theme(panel_inset=[400, 0, 0]) + ggsize(800, 1000) + facet_wrap("facet")

Actual result: image

Result without panel_inset: image