Skip to content
Merged
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
487 changes: 0 additions & 487 deletions AnatomyOfMatplotlib-Part1-Figures_Subplots_and_layouts.ipynb

Large diffs are not rendered by default.

554 changes: 554 additions & 0 deletions AnatomyOfMatplotlib-Part2-Limits_Legends_and_Layouts.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
{
"metadata": {
"name": "",
"signature": "sha256:fd78007a40ee7741b1dcfaa7d2433f856d967b938376774e12322eeccaf2f9ec"
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
},
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
Expand All @@ -15,13 +31,15 @@
"# Let printing work the same in Python 2 and 3\n",
"from __future__ import print_function\n",
"# Turning on inline plots -- just for use in ipython notebooks.\n",
"%matplotlib inline\n",
"import matplotlib\n",
"matplotlib.use('nbagg')\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt"
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -69,19 +87,20 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Exercise 2.1\n",
"## Exercise 3.1\n",
"Try out some different string representations of colors (you can't do RGB[A] tuples here)."
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"%load exercises/2.1-colors.py"
"%load exercises/3.1-colors.py"
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -124,25 +143,27 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Exercise 2.2\n",
"## Exercise 3.2\n",
"Try out some different markers and colors"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"%load exercises/2.2-markers.py"
"%load exercises/3.2-markers.py"
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -174,7 +195,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand All @@ -193,7 +215,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand All @@ -214,7 +237,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -246,19 +270,20 @@
"|visible | [`True` `False`]\n",
"|zorder | any number\n",
"\n",
"## Exercise 2.3\n",
"## Exercise 3.3\n",
"Make a plot that has a dotted red line, with large yellow diamond markers that have a green edge"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"%load exercises/2.3-properties.py"
"%load exercises/3.3-properties.py"
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand All @@ -280,7 +305,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "code",
Expand Down Expand Up @@ -368,7 +394,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand All @@ -389,7 +416,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand All @@ -409,7 +437,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand All @@ -435,7 +464,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -492,25 +522,27 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Exercise 2.4\n",
"## Exercise 3.4\n",
"Point out a local minimum with a fancy red arrow."
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"%load exercises/2.4-arrows.py"
"%load exercises/3.4-arrows.py"
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -545,7 +577,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -580,7 +613,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -609,7 +643,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
{
"metadata": {
"name": "",
"signature": "sha256:0ed463ce3e3c15589941f95292232da728af5c8fd4698e2ece99a953d2619171"
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
},
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
Expand All @@ -15,13 +31,15 @@
"# Let printing work the same in Python 2 and 3\n",
"from __future__ import print_function\n",
"# Turning on inline plots -- just for use in ipython notebooks.\n",
"%matplotlib inline\n",
"import matplotlib\n",
"matplotlib.use('nbagg')\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt"
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -136,7 +154,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand All @@ -159,7 +178,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand All @@ -177,7 +197,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -205,7 +226,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "code",
Expand All @@ -225,7 +247,8 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -253,13 +276,14 @@
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Exercise 3.1\n",
"## Exercise 4.1\n",
"Give yourselves 4 gold stars!\n",
"\n",
"Hint: [StarPolygonCollection](http://matplotlib.org/api/collections_api.html#matplotlib.collections.StarPolygonCollection)"
Expand All @@ -269,11 +293,12 @@
"cell_type": "code",
"collapsed": false,
"input": [
"%load exercises/3.1-goldstar.py"
"%load exercises/4.1-goldstar.py"
],
"language": "python",
"metadata": {},
"outputs": []
"outputs": [],
"prompt_number": null
}
],
"metadata": {}
Expand Down
Loading