def _plot_thermal_expansion(self, ax, xlabel='Temperature (K)', ylabel='Thermal expansion $(\\mathrm{K}^{-1})$'):
    from matplotlib.ticker import ScalarFormatter

    class FixedScaledFormatter(ScalarFormatter):

        def __init__(self):
            ScalarFormatter.__init__(self, useMathText=True)

        def _set_orderOfMagnitude(self, range):
            self.orderOfMagnitude = (- 6)
    ax.yaxis.set_major_formatter(FixedScaledFormatter())
    ax.ticklabel_format(style='sci', axis='y', scilimits=(0, 0))
    beta = np.array(self._thermal_expansions)
    ax.plot(self._temperatures[:self._len], beta[:self._len], 'r-')
    ax.set_xlim(self._temperatures[0], self._temperatures[(self._len - 1)])
    ax.set_xlabel(xlabel)
    ax.set_ylabel(ylabel)
def _plot_thermal_expansion(self, ax, xlabel='Temperature (K)', ylabel='Thermal expansion $(\\mathrm{K}^{-1})$'):
    from matplotlib.ticker import ScalarFormatter

    class FixedScaledFormatter(ScalarFormatter):

        def __init__(self):
            ScalarFormatter.__init__(self, useMathText=True)

        def _set_orderOfMagnitude(self, range):
            self.orderOfMagnitude = (- 6)
    ax.yaxis.set_major_formatter(FixedScaledFormatter())
    ax.ticklabel_format(style='sci', axis='y', scilimits=(0, 0))
    beta = np.array(self._thermal_expansions)
    ax.plot(self._temperatures[:self._len], beta[:self._len], 'r-')
    ax.set_xlim(self._temperatures[0], self._temperatures[(self._len - 1)])
    ax.set_xlabel(xlabel)
    ax.set_ylabel(ylabel)