lets_plot.margin¶
- lets_plot.margin(t=None, r=None, b=None, l=None) dict ¶
Dimensions of each margin.
- Parameters
- tfloat
Top margin.
- rfloat
Right margin.
- bfloat
Bottom margin.
- lfloat
Left margin.
- Returns
- dict
Margins specification.
Examples
1import numpy as np 2from lets_plot import * 3LetsPlot.setup_html() 4np.random.seed(42) 5data = {'x': np.random.normal(size=1000)} 6ggplot(data, aes(x='x')) + geom_histogram() + \ 7 theme(axis_title=element_text(margin=margin(t=10,r=10,b=4,l=4)))