You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/15-visualising-data.ipynb
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@
28
28
"For more detailed information, check these links\n",
29
29
"\n",
30
30
"- A very nice introduction in the object oriented Matplotlib interface, and summary of all important ways of changing style, figure size, linewidth, etc. This is a useful reference:\n",
"This chapter focusses on the Pylab interface, but also provides examples for the object-oriented `matplotlib.pyplot` interface.\n",
48
48
"\n",
49
-
"An excellent introduction and overview of the `matplotlib.pyplot` plotting interface is available in <https://nbviewer.ipython.org/github/jrjohansson/scientific-python-lectures/blob/master/Lecture-4-Matplotlib.ipynb>."
49
+
"An excellent introduction and overview of the `matplotlib.pyplot` plotting interface is available in <https://github.com/jrjohansson/scientific-python-lectures/blob/master/Lecture-4-Matplotlib.ipynb>."
50
50
]
51
51
},
52
52
{
@@ -1135,7 +1135,7 @@
1135
1135
"\n",
1136
1136
"I would speculate that increasingly we will be using high-level plotting tools (such as pandas, xarray, holoviews) to explore data interactively.\n",
1137
1137
"\n",
1138
-
"We can see a trend in data analysis libraries that data objects can be converted to such high-level annotated data objecs (such as European XFEL's [extra-data](https://extra-data.readthedocs.io) tools which can return a labelled xarray object). Other projects combine the metadata with the data in custom made objects to then provide convenience methods (such as [Ubermag](http://ubermag.github.io)'s [discretisedfield](https://ubermag.github.io/documentation/ipynb/discretisedfield/field-matplotlib-visualisation.html) object).\n",
1138
+
"We can see a trend in data analysis libraries that data objects can be converted to such high-level annotated data objecs (such as European XFEL's [extra-data](https://extra-data.readthedocs.io) tools which can return a labelled xarray object). Other projects combine the metadata with the data in custom made objects to then provide convenience methods (such as [Ubermag](http://ubermag.github.io)'s [discretisedfield](discretisedfield/field-matplotlib-visualisation.html) object).\n",
1139
1139
"\n",
1140
1140
"Will we still need to learn the basics, such as the `matplotlib.pyplot` interface? Probably yes: the very least to fine tune the plots provided by these high level libraries: \n",
"Commonly used plots are easily accessible via the `plot()` method of the Series object. We have seen a bar plot above already. The `Series.plot()` method accepts an argument `kind` such as `kind=\"bar\"`, but there is an equivalent method `Series.plot.bar()` avaialble.\n",
610
+
"Commonly used plots are easily accessible via the `plot()` method of the Series object. We have seen a bar plot above already. The `Series.plot()` method accepts an argument `kind` such as `kind=\"bar\"`, but there is an equivalent method `Series.plot.bar()` available.\n",
611
611
"\n",
612
612
"Further examples:"
613
613
]
@@ -656,7 +656,7 @@
656
656
"cell_type": "markdown",
657
657
"metadata": {},
658
658
"source": [
659
-
"We can also fetch the data from the series and drive the plotting \"manually\" ourselves:"
659
+
"We can also retrieve the data from the series and drive the plotting \"manually\" ourselves:"
660
660
]
661
661
},
662
662
{
@@ -667,8 +667,8 @@
667
667
"source": [
668
668
"import matplotlib.pyplot as plt\n",
669
669
"\n",
670
-
"names = list(stock.index)\n",
671
-
"values = list(stock.values)\n",
670
+
"names = list(stock.index) # conversion to list not necessary \n",
671
+
"values = list(stock.values) # conversion to list not necessary\n",
0 commit comments