Commit ca966e7f authored by Peter Jansweijer's avatar Peter Jansweijer

new color mapping

parent b5d83a3c
......@@ -462,12 +462,15 @@ if __name__ == "__main__":
ax.set_xlabel('Wavelenth [nm]')
ax.text(0.01, 0.85, "1st order linear tangent: " + str(tangent) + " [ps/nm]", transform=ax.transAxes)
ax.plot(x, y, color='red', label='original data') # Original datapoints
ax.plot(x, ly, ".", color='red', label='best fit 5-term Sellmeier') # 5-term Sellmeier best fit
ax.plot(x, ly + tol, ".", color='gray', label='tolerances') # 5-term Sellmeier best fit with + tolerances
ax.plot(x, ly - tol, ".", color='gray') # 5-term Sellmeier best fit with - tolerances
ax.plot(x_clean, y_clean, color='blue', label='data, outliers removed') # cleaned array in [nm]
ax.plot(x_clean, ly_clean, color='green', label='5-term Sellmeier fit') # final clean 5th order sellmeier fit in [nm]
with_tolerances = True
ax.plot(x, y, color = 'blue', label='data') # Original datapoints
if with_tolerances:
ax.plot(x, ly, ".", color='gray', label='best fit 5-term Sellmeier') # 5-term Sellmeier best fit
ax.plot(x, ly + tol, ".", color='#c0c0c0', label='tolerances') # 5-term Sellmeier best fit with + tolerances
ax.plot(x, ly - tol, ".", color='#c0c0c0') # 5-term Sellmeier best fit with - tolerances
ax.plot(x_clean, y_clean, color = 'red', label='data, outliers removed') # cleaned array in [nm]
ax.plot(x_clean, ly_clean, color = 'green', label='5-term Sellmeier fit') # final clean 5th order sellmeier fit in [nm]
ax.legend(loc='lower right', fontsize='medium')
fig.savefig(insitu_file+".png")
......@@ -486,8 +489,8 @@ if __name__ == "__main__":
ax.text(0.01, 0.90, 'linear and 5-term Sellmeier fit', transform=ax.transAxes)
ax.axhline(0, color='gray')
ax.axvline(fixed_lambda*1e9, color='red')
ax.plot(x_clean, alpha_clean, color='blue', label='5-term Sellmeier')
ax.plot(x_clean, alpha_lin_clean, color='green' , label='linear')
ax.plot(x_clean, alpha_clean, color='green', label='5-term Sellmeier')
ax.plot(x_clean, alpha_lin_clean, color='blue' , label='linear')
ax.legend(loc='lower right', fontsize='medium')
alpha_file = open(name+".out","w")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment