Closed kysolvik closed 4 years ago
ok i have thought about this a good bit. I think what we need to do here is to test this on some homework assignments. my guess is as we figure out how we need to iterate, we will create some helper wrapper functions to handle the iteration. but i think we need to implement it first manually a few times to understand the use cases better so that these wrappers can be generic enough to be broadly useful.
update: forgot about the notebook
module
ax1 = nb.convert_axes(plt)
<- i think this will grab ALL axes but needs more testing.
update: the way to handle subplots is to grab each ax object independently and then test against that. we should create a vignette that shows how to do this but i think we don't have to address any bugs in this case! i'll close this!
Currently matplotcheck can't easily handle figures with multiple plots (unless I'm missing something!). PlotTester accepts an axes object, so if you have multiple plots in same figure you would need to create multiple instances of PlotTester and test each.
For example, if we create a figure with two subplots and try to check the titles of both, the current set up just looks at the most recent axis. Could be set up to iterate over list of axes, or to run on a figure and its sub-axes.
Recreate issue: