spedas / pyspedas

Python-based Space Physics Environment Data Analysis Software
https://pyspedas.readthedocs.io/
MIT License
149 stars 58 forks source link

warning from SECS makeplots.py #884

Closed jameswilburlewis closed 3 months ago

jameswilburlewis commented 3 months ago

We're seeing a few of these:

12-Jun-24 00:26:04: /home/runner/work/pyspedas/pyspedas/pyspedas/secs/makeplots.py:351: UserWarning: The following kwargs were not used by contour: 'tri'
  ctrf = m.contourf(lon, lat, Jy, contour_density, latlon=True, tri=True, cmap='jet_r', norm=norm_cb)

contourf() is a basemap call. It does take a "tri" argument (and dispatches to a matplotlib plotting routine if specified).

This may be completely innocuous, but would be nice to know one way or the other.

jameswilburlewis commented 3 months ago

Doesn't seem to. be a problem -- the matplotlib contour/tricontour routines don't take a "tri" argument, so this is just a consequence of using args/kwargs to pass mixed basemap and matplotlib parameters.