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
Supports both 1D and 2D DataArrays as input.
Change variable names to make code clearer:
1. set xplt, yplt to be values that are passed to ax.plot()
2. xlabel, ylabel are axes labels
3. xdim, ydim are dimension names
Copy file name to clipboardExpand all lines: doc/plotting.rst
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -197,6 +197,16 @@ It is required to explicitly specify either
197
197
Thus, we could have made the previous plot by specifying ``hue='lat'`` instead of ``x='time'``.
198
198
If required, the automatic legend can be turned off using ``add_legend=False``.
199
199
200
+
Data along x-axis
201
+
~~~~~~~~~~~~~~~~~
202
+
203
+
It is also possible to make line plots such that the data are on the x-axis and a co-ordinate is on the y-axis. This can be done by specifying the ``x`` and ``y`` keyword arguments.
0 commit comments