Skip to content

Commit 47ccf31

Browse files
author
giumas
committed
updates for Data Visualization module
1 parent 8f91e1c commit 47ccf31

9 files changed

+46
-14
lines changed

COMP_000_Intro_to_NumPy.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,7 @@
935935
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
936936
" * [Tuple](https://docs.python.org/3.6/library/stdtypes.html?#tuples)\n",
937937
"* [Programming Basics with Python](https://github.com/hydroffice/python_basics)\n",
938+
"* [Introduction to Ocean Data Science - Scientific Computing slides](https://bitbucket.org/hydroffice/hyo_epom/downloads/ePOM.Intro_to_Ocean_Data_Science.Scientific_Computing.pdf)\n",
938939
"* The NumPy Package:\n",
939940
" * [Website](https://www.numpy.org/)\n",
940941
" * [`zeros()`](https://www.numpy.org/devdocs/reference/generated/numpy.zeros.html?#numpy.zeros)\n",

COMP_001_Adopting_NumPy_in_Class_Methods.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
"source": [
112112
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
113113
"* [Programming Basics with Python](https://github.com/hydroffice/python_basics)\n",
114+
"* [Introduction to Ocean Data Science - Scientific Computing slides](https://bitbucket.org/hydroffice/hyo_epom/downloads/ePOM.Intro_to_Ocean_Data_Science.Scientific_Computing.pdf)\n",
114115
"* The NumPy Package:\n",
115116
" * [Website](https://www.numpy.org/)"
116117
]

COMP_002_Array_Operations.ipynb

+2-1
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,7 @@
12181218
"source": [
12191219
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
12201220
"* [Programming Basics with Python](https://github.com/hydroffice/python_basics)\n",
1221+
"* [Introduction to Ocean Data Science - Scientific Computing slides](https://bitbucket.org/hydroffice/hyo_epom/downloads/ePOM.Intro_to_Ocean_Data_Science.Scientific_Computing.pdf)\n",
12211222
"* The NumPy Package:\n",
12221223
" * [Website](https://www.numpy.org/)\n",
12231224
" * [`random.random()`](https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.random.html)\n",
@@ -1244,7 +1245,7 @@
12441245
"metadata": {},
12451246
"source": [
12461247
"<!--NAVIGATION-->\n",
1247-
"[Adopting NumPy in Class Methods >](COMP_001_Adopting_NumPy_in_Class_Methods.ipynb) | [Contents](index.ipynb) | "
1248+
"[< Adopting NumPy in Class Methods](COMP_001_Adopting_NumPy_in_Class_Methods.ipynb) | [Contents](index.ipynb) | "
12481249
]
12491250
}
12501251
],

IO_000_Intro_to_GDAL.ipynb

+2-1
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@
596596
"source": [
597597
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
598598
"* [Programming Basics with Python](https://github.com/hydroffice/python_basics)\n",
599+
"* [Introduction to Ocean Data Science - Raster and Vector Data Formats slides](https://bitbucket.org/hydroffice/hyo_epom/downloads/ePOM.Intro_to_Ocean_Data_Science.Raster_and_Vector_Data_Formats.pdf)\n",
599600
"* The GDAL Package:\n",
600601
" * [Website](https://gdal.org)\n",
601602
" * [Data Model page](https://www.gdal.org/gdal_datamodel.html)\n",
@@ -623,7 +624,7 @@
623624
"metadata": {},
624625
"source": [
625626
"<!--NAVIGATION-->\n",
626-
"| [Contents](index.ipynb) | [Adopting NumPy in Class Methods >](COMP_001_Adopting_NumPy_in_Class_Methods.ipynb)"
627+
"| [Contents](index.ipynb) |"
627628
]
628629
}
629630
],

OOP_000_First_Steps_of_a_Class.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -489,12 +489,12 @@
489489
"cell_type": "markdown",
490490
"metadata": {},
491491
"source": [
492+
"* [Introduction to Ocean Data Science - Object-Oriented Programming slides](https://bitbucket.org/hydroffice/hyo_epom/downloads/ePOM.Intro_to_Ocean_Data_Science.Object_Oriented_Programming.pdf)\n",
492493
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
493494
" * [Classes](https://docs.python.org/3.6/tutorial/classes.html)\n",
494495
" * [String Representation Method](https://docs.python.org/3.6/reference/datamodel.html?highlight=repr#object.__str__)\n",
495496
"* [Memory address](https://en.wikipedia.org/wiki/Memory_address)\n",
496-
"* [Programming Basics with Python](https://github.com/hydroffice/python_basics)\n",
497-
"* [Introduction to Ocean Data Science - Object-Oriented Programming slides](https://bitbucket.org/hydroffice/hyo_epom/downloads/ePOM.Intro_to_Ocean_Data_Science.Object_Oriented_Programming.pdf)"
497+
"* [Programming Basics with Python](https://github.com/hydroffice/python_basics)"
498498
]
499499
},
500500
{

OOP_001_More_About_Classes.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,13 @@
289289
"cell_type": "markdown",
290290
"metadata": {},
291291
"source": [
292+
"* [Introduction to Ocean Data Science - Object-Oriented Programming slides](https://bitbucket.org/hydroffice/hyo_epom/downloads/ePOM.Intro_to_Ocean_Data_Science.Object_Oriented_Programming.pdf)\n",
292293
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
293294
" * [Classes](https://docs.python.org/3.6/tutorial/classes.html)\n",
294295
"* [Object-oriented Programming](https://en.wikipedia.org/wiki/Object-oriented_programming)\n",
295296
"* [POSIX time](https://en.wikipedia.org/wiki/Unix_time)\n",
296297
"* [Time zone](https://en.wikipedia.org/wiki/Time_zone)\n",
297-
"* [Programming Basics with Python](https://github.com/hydroffice/python_basics)\n",
298-
"* [Introduction to Ocean Data Science - Object-Oriented Programming slides](https://bitbucket.org/hydroffice/hyo_epom/downloads/ePOM.Intro_to_Ocean_Data_Science.Object_Oriented_Programming.pdf)"
298+
"* [Programming Basics with Python](https://github.com/hydroffice/python_basics)"
299299
]
300300
},
301301
{

VIS_000_Intro_to_Matplotlib.ipynb

+29-3
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,20 @@
239239
"plt.axis([32.0, 34.0, 11.0, 16.0]) \n",
240240
"plt.title(\"T-S Diagram\") # new code\n",
241241
"plt.xlabel(\"Salinity[PSU]\") # new code\n",
242-
"plt.ylabel(\"Temperature[Celsius]\") # new code\n",
242+
"plt.ylabel(\"Temperature[\\u00B0C]\") # new code\n",
243243
"plt.grid() # new code\n",
244244
"plt.show()"
245245
]
246246
},
247+
{
248+
"cell_type": "markdown",
249+
"metadata": {},
250+
"source": [
251+
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/info.png\">\n",
252+
"\n",
253+
"What is `\"\\u00B0\"` for? Follow [this url](https://en.wikipedia.org/wiki/List_of_Unicode_characters#Latin-1_Supplement)."
254+
]
255+
},
247256
{
248257
"cell_type": "markdown",
249258
"metadata": {},
@@ -259,8 +268,23 @@
259268
"It is possible to show a marker at each point in the input lists, and this marker can also be customized with the following parameters: \n",
260269
"* `marker`: To set/unset the drawing of markers as well as the shape of the markers.\n",
261270
"* `markersize`: To define the number of points used to draw the marker.\n",
262-
"* `markerfacecolor`/`markeredgecolor`: To modify the color of the marker face/edge.\n",
271+
"* `markerfacecolor`/`markeredgecolor`: To modify the color of the marker face/edge."
272+
]
273+
},
274+
{
275+
"attachments": {},
276+
"cell_type": "markdown",
277+
"metadata": {},
278+
"source": [
279+
"<img align=\"left\" width=\"6%\" style=\"padding-right:10px;\" src=\"images/info.png\">\n",
263280
"\n",
281+
"[Here](https://raw.githubusercontent.com/rougier/matplotlib-cheatsheet/master/matplotlib-cheatsheet.png) you can find a helpful Matplotlib cheatsheet to customize your plots."
282+
]
283+
},
284+
{
285+
"cell_type": "markdown",
286+
"metadata": {},
287+
"source": [
264288
"In the code below, we provide an example of how to use these parameters:"
265289
]
266290
},
@@ -278,7 +302,7 @@
278302
"plt.axis([32.0, 34.0, 11.0, 16.0]) \n",
279303
"plt.title(\"T-S Diagram\") \n",
280304
"plt.xlabel(\"Salinity[PSU]\") \n",
281-
"plt.ylabel(\"Temperature[Celsius]\")\n",
305+
"plt.ylabel(\"Temperature[\\u00B0C]\")\n",
282306
"plt.grid()\n",
283307
"plt.show()"
284308
]
@@ -536,10 +560,12 @@
536560
"cell_type": "markdown",
537561
"metadata": {},
538562
"source": [
563+
"* [Introduction to Ocean Data Science - Data Visualization slides](https://bitbucket.org/hydroffice/hyo_epom/downloads/ePOM.Intro_to_Ocean_Data_Science.Data_Visualization.pdf)\n",
539564
"* The Matplotlib Package:\n",
540565
" * [Website](https://matplotlib.org/)\n",
541566
" * [Documentation](https://matplotlib.org/users/index.html)\n",
542567
" * [plot()](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.plot.html#matplotlib-pyplot-plot)\n",
568+
"* [Matplotlib 3.1 cheatsheet](https://raw.githubusercontent.com/rougier/matplotlib-cheatsheet/master/matplotlib-cheatsheet.png)\n",
543569
"* The Cartopy Package:\n",
544570
" * [Documentation](https://scitools.org.uk/cartopy/docs/latest/)\n",
545571
" * [Map Projections](https://scitools.org.uk/cartopy/docs/latest/crs/projections.html)\n",

VIS_001_Adding_a_Plotting_Method.ipynb

+5-3
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
{
126126
"cell_type": "markdown",
127127
"metadata": {
128-
"solution2": "hidden",
128+
"solution2": "shown",
129129
"solution2_first": true
130130
},
131131
"source": [
@@ -140,7 +140,7 @@
140140
"cell_type": "code",
141141
"execution_count": null,
142142
"metadata": {
143-
"solution2": "hidden"
143+
"solution2": "shown"
144144
},
145145
"outputs": [],
146146
"source": [
@@ -190,10 +190,12 @@
190190
"source": [
191191
"* [The official Python 3.6 documentation](https://docs.python.org/3.6/index.html)\n",
192192
"* [Programming Basics with Python](https://github.com/hydroffice/python_basics)\n",
193+
"* [Introduction to Ocean Data Science - Data Visualization slides](https://bitbucket.org/hydroffice/hyo_epom/downloads/ePOM.Intro_to_Ocean_Data_Science.Data_Visualization.pdf)\n",
193194
"* The Matplotlib Package:\n",
194195
" * [Website](https://matplotlib.org/)\n",
195196
" * [Documentation](https://matplotlib.org/users/index.html)\n",
196-
" * [plot()](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.plot.html#matplotlib-pyplot-plot)"
197+
" * [plot()](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.plot.html#matplotlib-pyplot-plot)\n",
198+
"* [Matplotlib 3.1 cheatsheet](https://raw.githubusercontent.com/rougier/matplotlib-cheatsheet/master/matplotlib-cheatsheet.png)"
197199
]
198200
},
199201
{

index.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"cell_type": "markdown",
106106
"metadata": {},
107107
"source": [
108-
"## Raster and Vector Data Input/Output"
108+
"## Raster and Vector Data Formats"
109109
]
110110
},
111111
{
@@ -169,7 +169,7 @@
169169
"cell_type": "markdown",
170170
"metadata": {},
171171
"source": [
172-
"Version: 1.0.3"
172+
"Version: 1.0.4"
173173
]
174174
},
175175
{

0 commit comments

Comments
 (0)