Interactive Plots
Bokeh
The pandas-bokeh library offers convenient functions for producing interactive Bokeh plots with few lines of code.
Bokeh figures will preserve their default aspect ratio by default - though this behaviour can be configured through the Bokeh figure object in some cases. Composite objects, such as the line chart with range slider, may need to be created using the Bokeh core API in order to configure them correctly.
Line Plot with Range Slider
Scatter Plot
Plotly
With the Plotly backend for Pandas we can access the Plotly Express API directly from the '.plot()' method of any DataFrame or Series.
Plotly figures will expand to fill their container space by default. All esparto figure classes can be manually adjusted through their width and height attributes.