Skip to content

Commit

Permalink
DOC: small improvements to Array.plot doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
gdementen committed Oct 23, 2023
1 parent cb35dfe commit 3e4271c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions larray/core/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -7196,7 +7196,7 @@ def plot(self) -> PlotObject:
Line plot with grid and a title
>>> arr.plot(grid=True, title='line plot')
>>> arr.plot(grid=True, title='line plot')
>>> # save figure in a file (see matplotlib.pyplot.savefig documentation for more details)
>>> plt.savefig('my_file.png')
Expand All @@ -7217,8 +7217,8 @@ def plot(self) -> PlotObject:
>>> arr.plot.bar(ax=ax[0, 1], stacked=True, title='stacked bar plot') # doctest: +SKIP
>>> # area plot in the bottom left corner (1, 0)
>>> arr.plot.area(ax=ax[1, 0], title='area plot') # doctest: +SKIP
>>> # scatter plot in the bottom right corner (1, 1)
>>> arr.plot.scatter(ax=ax[1, 1], x='M', y='F', title='scatter plot') # doctest: +SKIP
>>> # scatter plot in the bottom right corner (1, 1), using the year as color
>>> # index and a specific colormap
>>> arr.plot.scatter(ax=ax[1, 1], x='M', y='F', c=arr.year, colormap='viridis',
... title='scatter plot') # doctest: +SKIP
>>> plt.show() # doctest: +SKIP
Expand Down

0 comments on commit 3e4271c

Please sign in to comment.