lets_plot.sampling_pick¶
- lets_plot.sampling_pick(n)¶
‘Pick’ sampling.
- Parameters
- nint
Number of items to return.
- Returns
- FeatureSpec
Sample specification.
Examples
1import numpy as np 2from lets_plot import * 3LetsPlot.setup_html() 4x = np.linspace(-2, 2, 30) 5y = x ** 2 6ggplot({'x': x, 'y': y}, aes(x='x', y='y')) + \ 7 geom_line(sampling=sampling_pick(20))