I am very new to this package and plotting spatial plots using python.
I have observed one interesting issue while plotting rainfall for wrfout file. Even I tried that with the example script at wrf-python website and i found it remained as same.
I followed 2 steps to plot.
1. defined figure, their subplots. Axis and their properties and projection
2. plotted the data using contourf function
Noe I observed if all of the above 2 actions are written in single cell in jupyter then it is working fine like this
however if they both steps are in different cells with exact same script then prompting an error like below
ValueError: Axes should be an instance of GeoAxes, got <class 'matplotlib.axes._subplots.AxesSubplot'>
I also observed that if i remove transform argument from contourf function then its working good but not covering whole subplot area may be due
to the default projection in lcc

I just wonder why is it happening.
Can anybody just bear with this and clarify this to me??
Thank you