Esempio n. 1
0
        ax.locator_params(axis='y', nbins=2)

        if ind <= 3:
            ax.set_xticklabels([])


plt.subplots_adjust(left=0.09, right=0.9, bottom=0.1,  top=0.9, wspace=0.2, hspace=0.4)

# handles, labels = ax.get_legend_handles_labels()
# legend = fig.legend(handles, labels, framealpha=0, ncol=1,bbox_to_anchor=(1,1),  # len(dset)//12+
#                        title='Current (mA)', prop={"size": 18})
# plt.setp(legend.get_title(), fontsize=20, fontname='arial')

cbar_ax = fig.add_axes([0.91, 0.09, 0.02, 0.84])

cbar_tick_locs = np.arange(len(possible_currents1))/len(possible_currents1)

sm = plt.cm.ScalarMappable(cmap='viridis')
cbar = fig.colorbar(sm, ticks=cbar_tick_locs, cax=cbar_ax,pad=0.04, aspect = 30)
cbar.ax.set_yticklabels(possible_currents1)
cbar.ax.set_title(r'Current $(\mu \mathrm{A})$',fontname='arial', fontsize=36,pad=10.0)
cbar.ax.tick_params(labelsize=28)

fig.text(0.4,0.03, 'Magnetic Field (T)',fontname='arial',fontsize=58)
fig.text(0.03,0.4, r'Resistance $(\Omega)$',fontname='arial',fontsize=58,rotation=90)
fig.suptitle('25 Kelvin',fontname='arial',fontsize=69)
#plt.tight_layout()
#plt.show()
fig.savefig(save_path+'raw_VT26-current-25K-draft1.png',dpi=400)

Esempio n. 2
0
# handles, labels = ax.get_legend_handles_labels()
# legend = fig.legend(handles, labels, framealpha=0, ncol=1,bbox_to_anchor=(1,1),  # len(dset)//12+
#                        title='Current (mA)', prop={"size": 18})
# plt.setp(legend.get_title(), fontsize=20, fontname='arial')

cbar_ax = fig.add_axes([0.91, 0.09, 0.02, 0.84])

cbar_tick_locs = np.arange(len(possible_currents1)) / len(possible_currents1)

sm = plt.cm.ScalarMappable(cmap='viridis')
cbar = fig.colorbar(sm, ticks=cbar_tick_locs, cax=cbar_ax, pad=0.04, aspect=30)
cbar.ax.set_yticklabels(possible_currents1)
cbar.ax.set_title(r'Current $(\mu \mathrm{A})$',
                  fontname='arial',
                  fontsize=36,
                  pad=10.0)
cbar.ax.tick_params(labelsize=28)

fig.text(0.4, 0.03, 'Magnetic Field (T)', fontname='arial', fontsize=58)
fig.text(0.03,
         0.4,
         r'Resistance $(\Omega)$',
         fontname='arial',
         fontsize=58,
         rotation=90)
fig.suptitle('10 Kelvin', fontname='arial', fontsize=69)
#plt.tight_layout()
#plt.show()
fig.savefig(save_path + 'raw_VT1-current-10K-draft1.png', dpi=400)
Esempio n. 3
0
                    hspace=0.4)

# handles, labels = ax.get_legend_handles_labels()
# legend = fig.legend(handles, labels, framealpha=0, ncol=1,bbox_to_anchor=(1,1),  # len(dset)//12+
#                        title='Current (mA)', prop={"size": 18})
# plt.setp(legend.get_title(), fontsize=20, fontname='arial')

cbar_ax = fig.add_axes([0.91, 0.09, 0.02, 0.84])

cbar_tick_locs = np.arange(len(possible_currents1)) / len(possible_currents1)

sm = plt.cm.ScalarMappable(cmap='viridis')
cbar = fig.colorbar(sm, ticks=cbar_tick_locs, cax=cbar_ax, pad=0.04, aspect=30)
cbar.ax.set_yticklabels(possible_currents1)
cbar.ax.set_title(r'Current $(\mu \mathrm{A})$',
                  fontname='arial',
                  fontsize=36,
                  pad=10.0)
cbar.ax.tick_params(labelsize=28)

fig.text(0.4, 0.04, 'Magnetic Field (T)', fontname='arial', fontsize=58)
fig.text(0.04,
         0.4,
         r'Resistance $(\Omega)$',
         fontname='arial',
         fontsize=58,
         rotation=90)
#plt.tight_layout()
#plt.show()
fig.savefig(save_path + 'raw_VT1-draft1.png', bbox_inches='tight', dpi=400)
Esempio n. 4
0
#ax.locator_params(axis='y', nbins=2)

legend = ax.legend(
    framealpha=0,
    ncol=1,
    bbox_to_anchor=(1, 1),  # len(dset)//12+
    title='Sample',
    prop={"size": 32})
#plt.subplots_adjust(left=0.09, right=0.9, bottom=0.1, top=0.9, wspace=0.2, hspace=0.4)

handles, labels = ax.get_legend_handles_labels()

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

# cbar_ax = fig.add_axes([0.91, 0.09, 0.02, 0.84])
#
# cbar_tick_locs = np.arange(len(possible_currents1)) / len(possible_currents1)
#
# sm = plt.cm.ScalarMappable(cmap='viridis')
# cbar = fig.colorbar(sm, ticks=cbar_tick_locs, cax=cbar_ax, pad=0.04, aspect=30)
# cbar.ax.set_yticklabels(possible_currents1)
# cbar.ax.set_title(r'Current $(\mu \mathrm{A})$', fontname='arial', fontsize=36, pad=10.0)
# cbar.ax.tick_params(labelsize=28)

# fig.text(0.4, 0.03, 'Magnetic Field (T)', fontname='arial', fontsize=58)
# fig.text(0.03, 0.4, r'Resistance $(\Omega)$', fontname='arial', fontsize=58, rotation=90)
# fig.suptitle('3 Kelvin', fontname='arial', fontsize=69)
# plt.tight_layout()
#plt.show()
fig.savefig(save_path + 'RvT-w-gap_draft1.png', dpi=400)
Esempio n. 5
0
                    hspace=0.4)

# handles, labels = ax.get_legend_handles_labels()
# legend = fig.legend(handles, labels, framealpha=0, ncol=1,bbox_to_anchor=(1,1),  # len(dset)//12+
#                        title='Current (mA)', prop={"size": 18})
# plt.setp(legend.get_title(), fontsize=20, fontname='arial')

# cbar_ax = fig.add_axes([0.91, 0.09, 0.02, 0.84])
#
# cbar_tick_locs = np.arange(len(possible_currents1))/len(possible_currents1)
#
# sm = plt.cm.ScalarMappable(cmap='viridis')
# cbar = fig.colorbar(sm, ticks=cbar_tick_locs, cax=cbar_ax,pad=0.04, aspect = 30)
# cbar.ax.set_yticklabels(possible_currents1)
# cbar.ax.set_title(r'Current $(\mu \mathrm{A})$',fontname='arial', fontsize=36,pad=10.0)
# cbar.ax.tick_params(labelsize=28)

fig.text(0.4, 0.02, 'Magnetic Field (T)', fontname='arial', fontsize=58)
fig.text(0.04,
         0.5,
         'Magnetoresistance\n Ratio',
         fontname='arial',
         ha='center',
         va='center',
         fontsize=58,
         rotation=90)
#fig.suptitle('10 Kelvin',fontname='arial',fontsize=69)
#plt.tight_layout()
#plt.show()
fig.savefig('/Users/npopiel/Desktop/VT1-2.pdf', dpi=400)
Esempio n. 6
0
ax.set_xlabel(r'$\frac{1}{T}$' + r' $(\mathrm{K}^{-1})$', fontsize=58, fontname='arial')
ax.set_ylabel(r'$\ln(R)$', fontsize=58, fontname='arial')

ax.tick_params('both', which='major', direction='in', length=12, width=4,
               bottom=True, top=True, left=True, right=True)

ax.tick_params('both', which='minor', direction='in', length=8, width=3,
               bottom=True, top=True, left=True, right=True)
ax.yaxis.offsetText.set_fontsize(27)



plt.setp(ax.get_xticklabels(), fontsize=36, fontname='arial')
plt.setp(ax.get_yticklabels(), fontsize=36, fontname='arial')

#ax.locator_params(axis='y', nbins=2)


legend = ax.legend(framealpha=0, ncol=1,bbox_to_anchor=(1,1),  # len(dset)//12+
                       title='Sample and Gap', prop={"size": 32})
#plt.subplots_adjust(left=0.09, right=0.9, bottom=0.1, top=0.9, wspace=0.2, hspace=0.4)

handles, labels = ax.get_legend_handles_labels()

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

# plt.tight_layout()
#plt.show()
fig.savefig(save_path + 'RvT-two_panel-draft2.pdf', bbox_extra_artists=(legend,), bbox_inches='tight',dpi=400)

Esempio n. 7
0
               top=True,
               left=True,
               right=True)
ax.yaxis.offsetText.set_fontsize(18)
# plt.legend(title=r'Temperature $(K)$', loc='best',frameon=False, fancybox=False, framealpha=0, borderpad=1)
# ax.set_title('Magnetization in Positive Field Region',fontsize=title_size,fontname='arial', pad=30)
#
# ax.annotate(r'FeSb$_2$',xy=(4,3.2e-2),fontname='arial',fontsize=24,va='center',ha='center')
# ax.annotate(r'VT66',xy=(4,2.9e-2),fontname='arial',fontsize=24,va='center',ha='center')
# ax.annotate(r'$ \vec H \parallel c $',xy=(4,2.6e-2), fontname='arial',fontsize=24,va='center',ha='center')

plt.setp(ax.get_xticklabels(), fontsize=28, fontname='arial')
plt.setp(ax.get_yticklabels(), fontsize=28, fontname='arial')

# handles, labels = ax.get_legend_handles_labels()
# legend = fig.legend(handles, labels, framealpha=0, ncol=1,bbox_to_anchor=(1,1),  # len(dset)//12+
#                        title='Current (mA)', prop={"size": 18})
# plt.setp(legend.get_title(), fontsize=20, fontname='arial')

fig.text(0.4, 0.03, 'Magnetic Field (T)', fontname='arial', fontsize=32)
fig.text(0.03,
         0.4,
         r'Resistance $(\Omega)$',
         fontname='arial',
         fontsize=32,
         rotation=90)

# plt.tight_layout()
#plt.show()
fig.savefig(save_path + 'raw_VT26-alexE-NJM.pdf', dpi=400)