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

geom_text(): Labels do not fit plot boundaries

Open ASmirnov-HORIS opened this issue 5 years ago • 1 comments

from lets_plot import *
LetsPlot.setup_html()

data = {'x': [0, 1], 'y': [0, 1], \
        'text': ['Lorem ipsum #1', 'Lorem ipsum #2']}

ggplot(data, aes('x', 'y')) + geom_text(aes(label='text'))

ASmirnov-HORIS avatar Mar 01 '21 10:03 ASmirnov-HORIS

According to ggplot2 docs

axis limits are not automatically expanded to include all text.

Therefore we might have the correct behavior here.

alshan avatar Sep 13 '22 18:09 alshan