try: import matplotlib matplotlib.rcParams['backend'] = 'GTK3Cairo' from matplotlib import dates from matplotlib import patches from matplotlib import pyplot from matplotlib import ticker from matplotlib import lines from matplotlib.backends.backend_gtk3cairo import FigureCanvasGTK3Cairo as FigureCanvas from matplotlib.backends.backend_gtk3cairo import FigureManagerGTK3Cairo as FigureManager from matplotlib.backends.backend_gtk3 import NavigationToolbar2GTK3 as NavigationToolbar except ImportError: has_matplotlib = False """Whether the :py:mod:`matplotlib` module is available.""" else: if not its.frozen and check_requirements(['matplotlib>=1.5.1']): has_matplotlib = False else: has_matplotlib = True try: import mpl_toolkits.basemap except ImportError: has_matplotlib_basemap = False """Whether the :py:mod:`mpl_toolkits.basemap` module is available.""" else: if not its.frozen and check_requirements(['basemap>=1.0.7']): has_matplotlib_basemap = False else: has_matplotlib_basemap = True
try: import matplotlib matplotlib.rcParams['backend'] = 'GTK3Cairo' from matplotlib import dates from matplotlib import patches from matplotlib import pyplot from matplotlib import ticker from matplotlib import lines from matplotlib.backends.backend_gtk3cairo import FigureCanvasGTK3Cairo as FigureCanvas from matplotlib.backends.backend_gtk3cairo import FigureManagerGTK3Cairo as FigureManager from matplotlib.backends.backend_gtk3 import NavigationToolbar2GTK3 as NavigationToolbar except ImportError: has_matplotlib = False """Whether the :py:mod:`matplotlib` module is available.""" else: if not its.frozen and check_requirements(['matplotlib>=1.5.1']): has_matplotlib = False else: has_matplotlib = True try: import mpl_toolkits.basemap except ImportError: has_matplotlib_basemap = False """Whether the :py:mod:`mpl_toolkits.basemap` module is available.""" else: if not its.frozen and check_requirements(['basemap>=1.0.7']): has_matplotlib_basemap = False else: has_matplotlib_basemap = True
from matplotlib.backends.backend_gtk3cairo import FigureCanvasGTK3Cairo as FigureCanvas from matplotlib.backends.backend_gtk3cairo import FigureManagerGTK3Cairo as FigureManager from matplotlib.backends.backend_gtk3 import NavigationToolbar2GTK3 as NavigationToolbar except ImportError: has_matplotlib = False """Whether the :py:mod:`matplotlib` module is available.""" else: has_matplotlib = True try: import mpl_toolkits.basemap except ImportError: has_matplotlib_basemap = False """Whether the :py:mod:`mpl_toolkits.basemap` module is available.""" else: if not its.frozen and check_requirements(['basemap>=1.0.7']): has_matplotlib_basemap = False else: has_matplotlib_basemap = True EXPORTED_GRAPHS = {} MPL_COLOR_NULL = 'darkcyan' PERCENT_FORMAT = '.3g' __all__ = ('export_graph_provider', 'get_graph', 'get_graphs', 'CampaignGraph') def _matrices_add(mat1, mat2): if not len(mat1) == len(mat2): raise RuntimeError('len(mat1) != len(mat2)') return [mat1[i] + mat2[i] for i in range(len(mat1))]
from smoke_zephyr.requirements import check_requirements try: import matplotlib matplotlib.rcParams['backend'] = 'GTK3Cairo' from matplotlib import dates from matplotlib import patches from matplotlib import pyplot from matplotlib.backends.backend_gtk3cairo import FigureCanvasGTK3Cairo as FigureCanvas from matplotlib.backends.backend_gtk3cairo import FigureManagerGTK3Cairo as FigureManager from matplotlib.backends.backend_gtk3 import NavigationToolbar2GTK3 as NavigationToolbar except ImportError: has_matplotlib = False """Whether the :py:mod:`matplotlib` module is available.""" else: if not getattr(sys, 'frozen', False) and check_requirements(['matplotlib>=1.4.1']): has_matplotlib = False else: has_matplotlib = True try: import mpl_toolkits.basemap except ImportError: has_matplotlib_basemap = False """Whether the :py:mod:`mpl_toolkits.basemap` module is available.""" else: if not getattr(sys, 'frozen', False) and check_requirements(['basemap>=1.0.7']): has_matplotlib_basemap = False else: has_matplotlib_basemap = True
from smoke_zephyr.requirements import check_requirements try: import matplotlib matplotlib.rcParams['backend'] = 'GTK3Cairo' from matplotlib import dates from matplotlib import patches from matplotlib import pyplot from matplotlib.backends.backend_gtk3cairo import FigureCanvasGTK3Cairo as FigureCanvas from matplotlib.backends.backend_gtk3cairo import FigureManagerGTK3Cairo as FigureManager from matplotlib.backends.backend_gtk3 import NavigationToolbar2GTK3 as NavigationToolbar except ImportError: has_matplotlib = False """Whether the :py:mod:`matplotlib` module is available.""" else: if not getattr(sys, 'frozen', False) and check_requirements( ['matplotlib>=1.4.1']): has_matplotlib = False else: has_matplotlib = True try: import mpl_toolkits.basemap except ImportError: has_matplotlib_basemap = False """Whether the :py:mod:`mpl_toolkits.basemap` module is available.""" else: if not getattr(sys, 'frozen', False) and check_requirements( ['basemap>=1.0.7']): has_matplotlib_basemap = False else: has_matplotlib_basemap = True