Accept any version of matplotlib