Skip to content

Commit

Permalink
nb: ref matplotlib import
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkShnack committed Mar 6, 2022
1 parent 732684a commit 04d2678
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 19 deletions.
21 changes: 8 additions & 13 deletions code_tutorials/polarisation_vectors_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,19 @@
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING:hyperspy.api:The ipywidgets GUI elements are not available, probably because the hyperspy_gui_ipywidgets package is not installed.\n",
"WARNING:hyperspy.api:The traitsui GUI elements are not available, probably because the hyperspy_gui_traitsui package is not installed.\n"
]
"execution_count": null,
"metadata": {
"pycharm": {
"is_executing": true
}
],
},
"outputs": [],
"source": [
"# choose your matplotlib backend. qt will plot in a separate window.\n",
"# %matplotlib notebook\n",
"\n",
"import matplotlib\n",
"matplotlib.pyplot.style.use(\"grayscale\")\n",
"import matplotlib.pyplot as plt\n",
"plt.style.use(\"grayscale\")\n",
"\n",
"from matplotlib.colors import from_levels_and_colors\n",
"import temul.api as tml\n",
Expand Down
4 changes: 2 additions & 2 deletions code_tutorials/workflows/Boracite-type_workflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"# choose your matplotlib backend. qt will plot in a separate window.\n",
"# %matplotlib notebook\n",
"\n",
"import matplotlib\n",
"matplotlib.pyplot.style.use(\"grayscale\")"
"import matplotlib.pyplot as plt\n",
"plt.style.use(\"grayscale\")"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions code_tutorials/workflows/LNO-type_workflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"# choose your matplotlib backend. qt will plot in a separate window.\n",
"# %matplotlib notebook\n",
"\n",
"import matplotlib\n",
"matplotlib.pyplot.style.use(\"grayscale\")"
"import matplotlib.pyplot as plt\n",
"plt.style.use(\"grayscale\")"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions code_tutorials/workflows/PTO-type_workflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"# choose your matplotlib backend. qt will plot in a separate window.\n",
"# %matplotlib notebook\n",
"\n",
"import matplotlib\n",
"matplotlib.pyplot.style.use(\"grayscale\")"
"import matplotlib.pyplot as plt\n",
"plt.style.use(\"grayscale\")"
]
},
{
Expand Down

0 comments on commit 04d2678

Please sign in to comment.