Exemple #1
0
        fig, ax = MakePlot().create()

        # g = sns.FacetGrid(df, col="time", row="sex")
        # g.map(sns.scatterplot, "total_bill", "tip")

        sns.scatterplot(x='Current (mA)',
                        y=r'$\mu_o H_{Peak} (T)$',
                        data=df[df['Temperature (K)'] == key],
                        palette="bright"
                        )  #style='Temperature (K)', column='Temperature (K)'

        plt.suptitle('Low Temperature Peak Field for ' + sample + '(T = ' +
                     str(key) + ' K)',
                     fontsize=22)
        fig.tight_layout(pad=4.0)
        plt.show()

    #
    # for curr, inds in groupers.groups.items():
    #
    #     df_curr = df[df['Current (mA)'] == curr]
    #
    #     fig, ax = MakePlot().create()
    #     sns.scatterplot(x='Magnetic Field (T)', y='Magnetoresistive Ratio', hue='Temperature (K)', data=df_curr, palette="bright", legend=True) #style='Temperature (K)',
    #     plt.title('Low Temperature Magnetoresistive Ratio ('+str(curr)+'(mA) ) for '+ sample, fontsize=22)
    #     ax.set_xlabel('Magnetic Field (T)', fontsize=16)
    #     ax.set_ylabel('Magnetoresistive Ratio', fontsize=16)
    #     plt.tight_layout()
    #     plt.show()
    #
Exemple #2
0
                       prop={
                           'size': 18,
                           'family': 'arial'
                       },
                       handlelength=0,
                       title=r'Angle c to a ($^\circ$)')

plt.setp(legend.get_title(), fontsize=18, fontname='arial')

for line, text in zip(legend.get_lines(), legend.get_texts()):
    text.set_color(line.get_color())

legend = axs[1].legend(framealpha=0,
                       ncol=len(filenames_2ndsweep) // 2,
                       loc='lower left',
                       prop={
                           'size': 18,
                           'family': 'arial'
                       },
                       handlelength=0,
                       title=r'Angle c to a ($^\circ$)')

plt.setp(legend.get_title(), fontsize=18, fontname='arial')

for line, text in zip(legend.get_lines(), legend.get_texts()):
    text.set_color(line.get_color())

fig.tight_layout(pad=3)

plt.show()
Exemple #3
0
            if ind2 == 12:
                sns.scatterplot(x='Temperature (K)',
                                y='Magnetoresistive Ratio',
                                data=df2,
                                palette="bright",
                                legend=True,
                                ax=axs[ind2])
                axs[ind2].legend(loc='center',
                                 bbox_to_anchor=(0.5, -0.15),
                                 shadow=False,
                                 ncol=15,
                                 frameon=False)

            if not (ind2 == 0 or ind2 == 5 or ind2 == 10):
                axs[ind2].set_ylabel('')

            if ind2 < 10:
                axs[ind2].set_xlabel('')

            axs[ind2].set_title(str(key2) + 'T', fontsize=14)

        plt.suptitle('Low Temperature Magnetoresistive Ratio for ' + sample +
                     'Current (' + str(key) + ' mA)',
                     fontsize=22)
        fig.tight_layout(pad=2.0)
        #plt.show()
        plt.savefig(
            '/Volumes/GoogleDrive/Shared drives/Quantum Materials/Popiel/MR_by_Field/'
            + sample + 'mr_field_curr_' + str(key) + '.png',
            dpi=300)
        plt.close()