Interactive Plots
Bokeh
The pandas-bokeh library offers convenient functions for producing interactive Bokeh plots with few lines of code.
Bokeh figures have a fixed width and height by default - we can override this behaviour for basic plots by setting the sizing mode, width, and height properties as shown in the notebook. For composite objects, such as the line chart with range widget, the Bokeh documentation should be consulted for advise on achieving the desired format.
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.