with plt.style.context(pubStyle): fig, ax = plt.subplots(1,1,figsize=(10,7)) fig.subplots_adjust(hspace=0) ax.scatter(color, mag, s=1, c=HUGSPhotometry['density'], cmap=DGcmap) ax.set_xlim(1.5, 5) ax.set_ylim(15.5, 22) ax.invert_yaxis() ax.set_xlabel("F275W - F814W", fontsize=23) ax.set_ylabel("F814W", fontsize=23) ax.plot(fiducial['Acolor'], fiducial['mag'], linewidth = 5, color=colorscheme.BonfireRed, label="E") ax.plot(fiducial['Bcolor'], fiducial['mag'], linewidth = 5, color=colorscheme.Violet, label="A", linestyle='dashed') ax.legend(fontsize=23, frameon=False) fig.savefig("Figures/NGC2808Fid.png", dpi=300) # fig.savefig("../static/imgs/NGC2808Fid.png", dpi=200)