# 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)
ncol=8, frameon=False) if ind < 5: axs[ind].set_xlabel('') if ind != 0: axs[ind].set_ylabel('') if ind >= 5: if ind != 5: axs[ind].set_ylabel('') axs[ind].set_title(str(key) + 'mA', fontsize=14) # legend = ax[1,4].legend() # ax[1,4].get_legend().remove() fig.suptitle('Resistance (T = ' + str(temp) + ' K)', fontsize=22) # plt.figlegend(frameon=True, # loc='upper right', # title='Temperature (K)' ) # ,labels=np.unique(df.current_sweep_ch2.values), frameon=True) plt.suptitle('Low Temperature Magnetoresistive Ratio for ' + sample, fontsize=22) fig.tight_layout(pad=4.0) plt.savefig( '/Volumes/GoogleDrive/Shared drives/Quantum Materials/Popiel/cool new graphs/mr_v_T_' + sample + '.png', dpi=300) # # for curr, inds in groupers.groups.items(): #