Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 48 additions & 16 deletions Matplotlib/Part1-Figures_Subplots_and_layouts.ipynb

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Matplotlib/Part2-Plotting_Methods_Overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -264,7 +264,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -329,16 +329,16 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/scratch/local/u1154915/734320/ipykernel_1900281/968936615.py:18: RuntimeWarning: Second argument 'y2' is ambiguous: could be a format string but is in 'data'; using as data. If it was intended as data, set the format string to an empty string to suppress this warning. If it was intended as a format string, explicitly pass the x-values as well. Alternatively, rename the entry in 'data'.\n",
"/scratch/local/u0972368/865437/ipykernel_830403/968936615.py:18: RuntimeWarning: Second argument 'y2' is ambiguous: could be a format string but is in 'data'; using as data. If it was intended as data, set the format string to an empty string to suppress this warning. If it was intended as a format string, explicitly pass the x-values as well. Alternatively, rename the entry in 'data'.\n",
" ax.plot('x','y2',# X, y data,\n",
"/scratch/local/u1154915/734320/ipykernel_1900281/968936615.py:26: RuntimeWarning: Second argument 'y1' is ambiguous: could be a format string but is in 'data'; using as data. If it was intended as data, set the format string to an empty string to suppress this warning. If it was intended as a format string, explicitly pass the x-values as well. Alternatively, rename the entry in 'data'.\n",
"/scratch/local/u0972368/865437/ipykernel_830403/968936615.py:26: RuntimeWarning: Second argument 'y1' is ambiguous: could be a format string but is in 'data'; using as data. If it was intended as data, set the format string to an empty string to suppress this warning. If it was intended as a format string, explicitly pass the x-values as well. Alternatively, rename the entry in 'data'.\n",
" ax.plot('x', 'y1', # X, y data\n"
]
},
Expand Down Expand Up @@ -449,7 +449,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "p310env",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand Down
26 changes: 13 additions & 13 deletions Matplotlib/Part3-Plotting-2D-Arrays-Images.ipynb

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions Matplotlib/Part4-HowToSpeakMPL.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand All @@ -121,7 +121,7 @@
"fig, ax = plt.subplots()\n",
"\n",
"#add a plot of one of the above functions and specify a color \n",
"ax.plot(t, t, color='green') # plot t vs t in green color\n",
"ax.plot(t, t, c='g') # plot t vs t in green color\n",
"ax.plot(t, t**2, color='blue') # plot t vs t^2 in blue color\n",
"ax.plot(t, t**3, color='red') # plot t vs t^3 in red color\n",
"ax.set_xlabel('x-axis') # label for x-axis\n",
Expand Down Expand Up @@ -207,7 +207,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -235,7 +235,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1059,7 +1059,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "p310env",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand Down
2 changes: 1 addition & 1 deletion Matplotlib/Part5-Limits_Legends_and_Layouts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 52,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand Down