Open adybbroe opened 4 years ago
The reason I asked about the return value of the quicklook code was I was wondering if it could return the newly created ax
object. It depends if this is a utility function (it probably should be) that a user incorporates in to there overall plotting code or whether this is an all-in-one function that the user calls once and sees an image. The former is more flexible and would work really well in an xarray accessor for pyresample 2.0 by doing my_data_arr.pyresample.plot_quicklook(...)
.
@djhoese I agree with you. But the code was originally and still is "an all-in-one function that the user calls once and sees an image". I just preserved that behaviour and changed a bit to make it easier to make unittests
Ok, I'm fine with that. Then this test that calls the quicklook function 3 times should be split in to 3 separate tests to avoid this warning.
Code Sample, a minimal, complete, and verifiable piece of code
Problem description
As discussed with @djhoese
This ax could let users add multiple quicklooks to one figure which would be nice
Currently the user function
show_quicklook
doesn't return anything.Expected Output
The unittests should not shout out about any warnings.
Actual Result, Traceback if applicable
Versions of Python, package at hand and relevant dependencies
Matplotlib 3.1.1 Cartopy 0.17.0 Python 3.7.3 Latest Pyresample master branch:
pyresample-1.12.3+214.g19ff793.tar.gz