lets-plot
lets-plot copied to clipboard
Tooltip position `top_right`/`top_left` does not consider `panel_inset` parameter
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()