Closed ssomnath closed 2 years ago
dataset.plot() leaves a handle to figure and axis in dataset.view at this point. datset.view has attributes :
This should be made more clear in the documentation
It is fine that these things are saved in the dataset's properties. However, we should return these handles for the plot() function as well. This way, there isn't anything to go looking for.
Dataset.plot() should return at least the figure handle, and if possible the axes within this figure. This will serve two purposes:
Currently, the workaround is to use
plt.gcf()
andplt.gca()
which is not ideal.