lets_plot.plot.core.PlotSpec¶
- class lets_plot.plot.core.PlotSpec(data, mapping, scales, layers, is_livemap=False, **kwargs)¶
A class of the initial plot object.
Do not use this class explicitly.
Instead you should construct its objects with functions ggplot(), corr_plot(…).points().build() etc.
- __init__(data, mapping, scales, layers, is_livemap=False, **kwargs)¶
Initialize self.
Extracts the data shared by all layers.
- Returns
- dict or DataFrame
Object data.
Examples
1from lets_plot import * 2LetsPlot.setup_html() 3p = ggplot({'x': [0], 'y': [0]}, aes('x', 'y')) 4p += geom_point(data={'x': [1], 'y': [1]}) 5p.get_plot_shared_data()