{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\n# Vuye-200C\n\nData for Main / Si / Vuye-200c\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import os\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport refidx as ri\n\nplt.style.use(\"../../doc/refidx.mplstyle\")\ndb = ri.DataBase()\nmatid = ['main', 'Si', 'Vuye-200C']\nmat = db.get_item(matid)\nwr = mat.wavelength_range\nlamb = np.linspace(*wr, 1000)\nindex = mat.get_index(lamb)\nfig, ax = plt.subplots(2, 1, figsize=(3, 3))\nax[0].plot(lamb, index.real, \"-\", color=\"#aa0044\")\nax[1].plot(lamb, index.imag, \"-\", color=\"#6886b3\")\nax[0].set_xlabel(r\"Wavelength ($\\rm \u03bcm$)\")\nax[1].set_xlabel(r\"Wavelength ($\\rm \u03bcm$)\")\nax[0].set_ylabel(r\"$n^{\\prime}$\")\nax[1].set_ylabel(r\"$n^{\\prime\\prime}$\")\nplt.suptitle(mat)\nmat.print_info(\n html=True,\n tmp_dir=os.path.join(\"..\",\"..\", \"doc\", \"auto_gallery\",\"Si\"),\n filename=\"out_main_Si_Vuye_200C.html\",\n)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ ".. raw:: html\n :file: out_main_Si_Vuye_200C.html\n\n" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.4" } }, "nbformat": 4, "nbformat_minor": 0 }