This is a request for more information - the warning mentioned below is not otherwise affecting my code. I would just like some advice on how to suppress warnings!
When running a script that plots a .fits file in Spyder, I receive the following warning:
C:\Users\an16975\AppData\Local\Continuum\Anaconda3\lib\site-packages\matplotlib\__init__.py:878:
UserWarning: axes.color_cycle is deprecated and replaced with axes.prop_cycle;
please use the latter.
warnings.warn(self.msg_depr % (key, alt_key))
From the most similar post on StackOverflow, a solution was:
import warnings
warnings.filterwarnings("ignore")
However, this does not work to suppress the warning.
Is there another way to suppress warnings? Would an earlier, more stable of matplotlib avoid this problem, and if so how would I install it?
Cheers, Ailsa