|
239 | 239 | "plt.axis([32.0, 34.0, 11.0, 16.0]) \n",
|
240 | 240 | "plt.title(\"T-S Diagram\") # new code\n",
|
241 | 241 | "plt.xlabel(\"Salinity[PSU]\") # new code\n",
|
242 |
| - "plt.ylabel(\"Temperature[Celsius]\") # new code\n", |
| 242 | + "plt.ylabel(\"Temperature[\\u00B0C]\") # new code\n", |
243 | 243 | "plt.grid() # new code\n",
|
244 | 244 | "plt.show()"
|
245 | 245 | ]
|
246 | 246 | },
|
| 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 | + }, |
247 | 256 | {
|
248 | 257 | "cell_type": "markdown",
|
249 | 258 | "metadata": {},
|
|
259 | 268 | "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",
|
260 | 269 | "* `marker`: To set/unset the drawing of markers as well as the shape of the markers.\n",
|
261 | 270 | "* `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", |
263 | 280 | "\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": [ |
264 | 288 | "In the code below, we provide an example of how to use these parameters:"
|
265 | 289 | ]
|
266 | 290 | },
|
|
278 | 302 | "plt.axis([32.0, 34.0, 11.0, 16.0]) \n",
|
279 | 303 | "plt.title(\"T-S Diagram\") \n",
|
280 | 304 | "plt.xlabel(\"Salinity[PSU]\") \n",
|
281 |
| - "plt.ylabel(\"Temperature[Celsius]\")\n", |
| 305 | + "plt.ylabel(\"Temperature[\\u00B0C]\")\n", |
282 | 306 | "plt.grid()\n",
|
283 | 307 | "plt.show()"
|
284 | 308 | ]
|
|
536 | 560 | "cell_type": "markdown",
|
537 | 561 | "metadata": {},
|
538 | 562 | "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", |
539 | 564 | "* The Matplotlib Package:\n",
|
540 | 565 | " * [Website](https://matplotlib.org/)\n",
|
541 | 566 | " * [Documentation](https://matplotlib.org/users/index.html)\n",
|
542 | 567 | " * [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", |
543 | 569 | "* The Cartopy Package:\n",
|
544 | 570 | " * [Documentation](https://scitools.org.uk/cartopy/docs/latest/)\n",
|
545 | 571 | " * [Map Projections](https://scitools.org.uk/cartopy/docs/latest/crs/projections.html)\n",
|
|
0 commit comments