Skip to content

Commit

Permalink
update labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbusk committed Oct 12, 2022
1 parent da920e1 commit 36c7018
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions sa_p2d_sei_interactive.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,28 +91,28 @@
"source": [
"features = [\n",
" \"i_app (A)\",\n",
" \"rp_neg (m)\",\n",
" \"rp_pos (m)\",\n",
" \"Eeq_side (V)\",\n",
" \"kappa_film (S/m)\",\n",
" \"epsl_neg\",\n",
" \"epsl_pos\",\n",
" \"Dl_elect (m^2/s)\",\n",
" \"Ds_neg (m^2/s)\",\n",
" \"i0ref_neg (A/m^2)\",\n",
" \"Ds_pos (m^2/s)\",\n",
" \"i0ref_pos (A/m^2)\",\n",
" \"E_min (V)\",\n",
" \"i0_SEI (A/m^2)\",\n",
" \"csmax_neg (mol/m^3)\",\n",
" \"csmax_pos (mol/m^3)\",\n",
" \"cl_0 (mol/m^3)\",\n",
" \"t_plus\",\n",
" \"i0ref_metal (A/m^2)\",\n",
" \"sigma_neg\"\n",
" \"sigma_pos\"\n",
"]\n",
"\n",
"SEI = \"SEI thickness (m)\"\n",
"ICL = \"Irreversible charge loss (%)\"\n",
"\n",
"# Select the target\n",
"# target = SEI\n",
"target = ICL"
"target = SEI\n",
"# target = ICL"
]
},
{
Expand Down Expand Up @@ -267,19 +267,15 @@
" if normalise:\n",
" plt.ylim((0,1.0))\n",
" plt.xticks(range(len(features)), [\"$x_{\" + str(i+1) + \"}$: \" + f\"{f}\" for i,f in enumerate(features)], rotation=90)\n",
" #plt.xlabel(\"Input feature\"); \n",
" plt.ylabel(\"$s_*(\\mu)$\")\n",
" #plt.legend()\n",
" plt.grid(axis='y')\n",
" # plot sensitivity of var prediction\n",
" plt.subplot(122)\n",
" plt.bar(range(len(features)), s_var, color=\"C1\", label=\"s_var\")\n",
" if normalise:\n",
" plt.ylim((0,1.0))\n",
" plt.xticks(range(len(features)), [\"$x_{\" + str(i+1) + \"}$: \" + f\"{f}\" for i,f in enumerate(features)], rotation=90)\n",
" #plt.xlabel(\"Input feature\"); \n",
" plt.ylabel(\"$s_*(\\sigma^2)$\")\n",
" #plt.legend()\n",
" plt.grid(axis='y')\n",
" plt.tight_layout()\n",
" plt.show()\n",
Expand Down Expand Up @@ -682,7 +678,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.4"
"version": "3.9.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 36c7018

Please sign in to comment.