Filter warnings in rcparams test.

These are warnings from matplotlib which should be there so we just filter them.