Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sci_python
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SCW2017
sci_python
Commits
52328bd7
Commit
52328bd7
authored
Oct 05, 2017
by
Inigo Aldazabal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ease last plotting execise
parent
8c19e710
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
12 deletions
+26
-12
matplotlib-tutorial-clean.ipynb
matplotlib-tutorial-clean.ipynb
+3
-3
matplotlib-tutorial.ipynb
matplotlib-tutorial.ipynb
+23
-9
No files found.
matplotlib-tutorial-clean.ipynb
View file @
52328bd7
...
...
@@ -169,13 +169,13 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"
P
lot the function \n",
"
Adapt the previous example to p
lot the function \n",
"\n",
"$$y = \\frac{\\sin(x)}{x}, \\; x\\in[0.1, 6\\pi]$$\n",
"\n",
"and try to \n",
"\n",
"* set the figure *legend*\n",
"* set the figure *legend*
(hint: `<TAB>` completion is your friend)
\n",
"* change the *line style*\n",
"\n",
"hint: checkout the [matplotlib examples](http://matplotlib.org/examples/index.html)"
...
...
@@ -210,7 +210,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.
1
"
"version": "3.6.
2
"
}
},
"nbformat": 4,
...
...
matplotlib-tutorial.ipynb
View file @
52328bd7
...
...
@@ -76,7 +76,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"x = np.linspace(0, 4.*np.pi, 100)\n",
...
...
@@ -87,7 +89,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"plt.plot(x, y, 'o') # dot plot"
...
...
@@ -96,7 +100,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"plt.plot(x, y)\n",
...
...
@@ -113,7 +119,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"image = np.random.rand(30, 30)\n",
...
...
@@ -155,7 +163,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"x = np.linspace( 0., 4.*np.pi, num=200 )\n",
...
...
@@ -186,7 +196,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"r = np.arange(0, 2., 0.01)\n",
...
...
@@ -209,13 +221,13 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"
P
lot the function \n",
"
Adapt the previous example to p
lot the function \n",
"\n",
"$$y = \\frac{\\sin(x)}{x}, \\; x\\in[0.1, 6\\pi]$$\n",
"\n",
"and try to \n",
"\n",
"* set the figure *legend*\n",
"* set the figure *legend*
(hint: `<TAB>` completion is your friend)
\n",
"* change the *line style*\n",
"\n",
"hint: checkout the [matplotlib examples](http://matplotlib.org/examples/index.html)"
...
...
@@ -224,7 +236,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# %load files/sol_sinc.py"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment