Skip to content

Commit

Permalink
updating nb3
Browse files Browse the repository at this point in the history
  • Loading branch information
pdudenas committed Jan 13, 2025
1 parent 03f1d0c commit dcd3b13
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/NRSS_tutorials/MWCNTs/nb3_nrss.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2227,6 +2227,32 @@
"plot_results(scattering_chi_all, radius_sigma, hollow_fraction, show=True)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "60d5d0bf-d41d-4534-bb9e-01e9e7af1ec0",
"metadata": {},
"outputs": [],
"source": [
"plot_kwargs = {'norm':LogNorm(1e1,1e6), 'cmap':'terrain', 'add_colorbar':False}\n",
"fig, ax = plt.subplots(2,2, dpi=240, figsize=(5,4), constrained_layout=True)\n",
"ax = ax.flatten()\n",
"scattering_chi_all.sel(energy=270).plot(**plot_kwargs, ax=ax[0])\n",
"scattering_chi_all.sel(energy=285).plot(**plot_kwargs, ax=ax[1])\n",
"\n",
"pol90_waxs.sel(energy=270).plot(**plot_kwargs, ax=ax[2])\n",
"pol90_waxs.sel(energy=285).plot(**plot_kwargs, ax=ax[3])\n",
"\n",
"[{axes.set_title(''), axes.set_xlabel(''), axes.set_ylabel('')} for axes in ax]\n",
"ax[0].set_title('270 eV', fontsize=10)\n",
"ax[1].set_title('285 eV', fontsize=10)\n",
"ax[0].set_ylabel('Pol = 0',fontsize=10)\n",
"ax[2].set_ylabel('Pol = 90',fontsize=10)\n",
"\n",
"# plt.savefig('Figures/experiment2D.png', dpi=300, format='png', bbox_inches='tight')\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"id": "65e3e021-5a81-4bf2-8662-c0d4831999dd",
Expand Down

0 comments on commit dcd3b13

Please sign in to comment.