element_geom#
- element_geom(pen=None, brush=None, paper=None) dict #
Specify new values for the named colors.
- Parameters:
- penstr
Color to use by name “pen”.
- brushstr
Color to use by name “brush”.
- paperstr
Color to use by name “paper”.
- Returns:
- dict
Theme element 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(color='pen', fill='paper') + \ 7 theme(geom=element_geom(pen='dark_blue', paper='light_blue'))