matplotlib / cmocean

Colormap setup for standardizing commonly-plotting oceanographic variables.
MIT License
230 stars 52 forks source link

Remove usage of Matplotlib deprecated function. #65

Closed Carreau closed 6 years ago

Carreau commented 6 years ago

Matplotlib's is_string_like has been deprecated as of the 2.1 release (October 2017), and triggers deprecation warnings messages at import time.

This replaces the use of this matplotlib function with a functional equivalent


I don't know how long matplotlib is going to keep this function around, but that will at least make cmocean future proof and remove the deprecation warning.

kthyng commented 6 years ago

Thanks!