Beispiel #1
0
def decorate_undulation_plot(ax, art):
    """
	Uniform appearance for all undulation spectra.
	"""
    add_undulation_labels(ax, art=art)
    add_std_legend(ax, loc='upper right', art=art)
    add_axgrid(ax, art=art)
Beispiel #2
0
                axins.plot(10**diffs, '.-', lw=0.5, ms=1, color='k')
                axins.set_xscale('log')
                axins.set_yscale('log')
                axins.axhline(1.0, c='k', lw=0.5, alpha=0.5)
            else:
                axins.axhline(0.0, c='k', lw=0.5, alpha=0.5)
                axins.plot(diffs, '.-', lw=0.5, ms=1, color='k')
            axins.set_xticks([])
            axins.set_yticks([])
            axins.set_xticklabels([])
            axins.set_yticklabels([])
            axins.tick_params(axis='y',
                              which='both',
                              left='off',
                              right='off',
                              labelleft='on')
            axins.tick_params(axis='x',
                              which='both',
                              top='off',
                              bottom='off',
                              labelbottom='on')
        add_undulation_labels(ax, art=art)
        add_std_legend(ax, loc='upper right', art=art)
        add_axgrid(ax, art=art)

    picturesave('fig.undulation_survey',
                work.plotdir,
                backup=False,
                version=True,
                meta={})