The following examples illustrate how you can use the ShowPlots() function to create subplots (show multiple plots together) in column and grid format.
The ShowPlots() function:
- Takes in the plots you want to display in a list
- Uses nrows for how many rows
- Uses ncols for how many columns
- Uses a grid parameter to specify plot positioning
Example 1: Three plots using column format
plot.ShowPlots([plot1, plot2, plot3], nrows=1, ncols=3)
Example 2: Three plots using grid format
plot.ShowPlots([plot1, plot2, plot3], grid = {(1, 1): (1, 1), (1, 2): (1, 1), (2, 1): (1, 2)})