1try: 2 import matplotlib 3 from matplotlib import pyplot as plt # noqa 4except ImportError: 5 MPL_VERSION = '' 6 ROOT = '' 7 IMAGE_REFERENCE_DIR = '' 8else: 9 MPL_VERSION = matplotlib.__version__ 10 11 # The developer versions of the form 3.2.x+... contain changes that will only 12 # be included in the 3.3.x release, so we update this here. 13 if MPL_VERSION[:3] == '3.2' and '+' in MPL_VERSION: 14 MPL_VERSION = '3.3' 15 16 ROOT = "http://{server}/testing/astropy/2021-08-25T18:18:36.000000/{mpl_version}/" 17 IMAGE_REFERENCE_DIR = ( 18 ROOT.format(server='data.astropy.org', mpl_version=MPL_VERSION[:3] + '.x') + ',' + 19 ROOT.format(server='www.astropy.org/astropy-data', mpl_version=MPL_VERSION[:3] + '.x')) 20