Skip to content

Commit

Permalink
Add back grid lines for DataArray plots
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Sep 13, 2024
1 parent 5b13415 commit b799785
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions damnit/gui/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ def __init__(self, parent, data, **kwargs):
self._nan_warning_label.show()

data.plot(ax=self._axis)
self._axis.grid()

Check warning on line 426 in damnit/gui/plot.py

View check run for this annotation

Codecov / codecov/patch

damnit/gui/plot.py#L426

Added line #L426 was not covered by tests
self._setup_scroll_zoom()
# The plot call above can add axis labels, so we need to do this again
self.figure.tight_layout()
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

Fixed:

- Added back grid lines for plots of `DataArray`'s (!334).

## [0.1.4]

2024-09-03
Expand Down

0 comments on commit b799785

Please sign in to comment.