First of all, the shape of the subplots will be (n,1), so additional subplots should be "appended" at the bottom of the figure as needed.
I would like to do a large number of loops over my raw data, and inside each loop I would like to:
- generate a dataframe in each loop,
- check each dataframe for whether it needs to be plotted
- if the dataframe is to be plotted, add a subplot to the figure.
I don't know how to add subplots to a figure incrementally as needed.
It is certainly possible for me to get all the data first and determine the number of subplots needed and set the figsize first before plotting everything at once. But this is not ideal for me.