lets_plot.ggsize

lets_plot.ggsize(width, height)

Specify overall size of plot.

Parameters
  • width (int) – Width of plot in px.

  • height (int) – Height of plot in px.

Returns

Plot size specification.

Return type

FeatureSpec

Examples

1import numpy as np
2from lets_plot import *
3LetsPlot.setup_html()
4np.random.seed(42)
5x = np.arange(50)
6y = np.random.normal(size=50)
7data = {'x': x, 'y': y}
8ggplot(data) + geom_line(aes('x', 'y')) + ggsize(400, 150)