lets-plot icon indicating copy to clipboard operation
lets-plot copied to clipboard

Tooltip position `top_right`/`top_left` does not consider `panel_inset` parameter

Open INekrasova-HORIS opened this issue 1 year ago • 0 comments

Tooltip position top_right/top_left does not consider panel_inset parameter. Example:

data = {
    'subj': ['progr', 'math', 'physic', 'chemistry', 'biology'],
    'subj_id': [1, 2, 3, 4, 5],
    'student': ['John'] * 5,
    'score': [19, 15, 18, 12, 9]
}

p = ggplot(data) \
    + geom_path(aes(x='subj', y='score', color='student'), flat=True) \
    + geom_point(aes(x='subj', y='score', color='student'), tooltips=layer_tooltips().line('^x').anchor('top_right') )

p + coord_polar() + theme(panel_inset=[40,40]) + flavor_solarized_light()

top_right_position

INekrasova-HORIS avatar Mar 12 '24 16:03 INekrasova-HORIS