# 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.86, 0.1, 0.022, 0.8]) cbar_tick_locs = np.arange(10)/10 temps = [1.75,2.00, 2.25, 2.50, 2.75, 3.00, 3.25, 3.50, 3.75, 4.00] sm = plt.cm.ScalarMappable(cmap='jet') cbar = fig.colorbar(sm, ticks=cbar_tick_locs, cax=cbar_ax,pad=0.04, aspect = 30) cbar.ax.set_yticklabels(temps) cbar.ax.set_title(r'Temperature (K)',fontname='arial', fontsize=20,pad=10.0) cbar.ax.tick_params(labelsize=18) fig.text(0.3,0.03, 'Magnetic Field (T)',fontname='arial',fontsize=28) fig.text(0.03,0.4, r'Conductance $(\frac{2e^2}{h})$',fontname='arial',fontsize=28,rotation=90) #sns.lineplot(x=r'Magnetic Field $(T)$', y=r'Resistance $(\Omega)$', data = df, hue=r'Temperature') #plt.suptitle('Magnetoresistance of VT64', fontsize=18, fontname='arial') #ax.legend(title='Temperature',loc='right', fontsize=12)#,bbox_to_anchor=(1, 1), borderaxespad=0.) #plt.tight_layout() plt.savefig('/Volumes/GoogleDrive/My Drive/Thesis Figures/Transport/step-small-conductance-viva.pdf',dpi=400) #plt.show() #plt.close()
# 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)
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)