# legend = fig.legend(handles, labels, title='Temperature', loc='upper right',# mode='expand', # Position of legend # framealpha=0,prop={"size": 16}) # # plt.setp(legend.get_title(), fontsize=20, fontname='arial') #bbox_to_anchor=(0.5, 0),bbox_transform = plt.gcf().transFigure ) plt.subplots_adjust(left=0.125, right=0.83, bottom=0.1, top=0.9, wspace=0.2, hspace=0.3) # 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)
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,
length=4, width=1.5, 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) ax.set_xticklabels([]) if i < 1: cbar_ax = fig.add_axes([0.91, 0.565, 0.02, 0.335]) 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=15, aspect=30) cbar.ax.set_yticklabels(possible_currents1) cbar.ax.set_title(r'Current $(\mu \mathrm{A})$', fontname='arial', fontsize=36, pad=10.0)