Skip to content
This repository has been archived by the owner on Jun 14, 2019. It is now read-only.

Commit

Permalink
BUG: include last year in date range
Browse files Browse the repository at this point in the history
  • Loading branch information
ceholden committed Nov 11, 2015
1 parent 1256648 commit 67e6960
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes will appear in this log that begins with the release of

For information on the style of this change log, see [keepachangelog.com](http://keepachangelog.com/).

## [UNRELEASED](https://github.com/ceholden/TSTools/compare/v1.0.0...HEAD)

### Fixed
- Plots should include data from maximum year in date range slider (6b07fff)
- Fix for `matplotlib>=1.5.0`

## v1.0.0 - 2015-11-09

First official release of TSTools. Also first entry in `CHANGELOG.md`.
2 changes: 1 addition & 1 deletion tstools/src/plots/plot_doy.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _plot_series(self, idx, series, band):

# Check for year range
year_in = np.where((year >= settings.plot['x_min']) &
(year < settings.plot['x_max']))[0]
(year <= settings.plot['x_max']))[0]

# Plot
self.axis_1.scatter(doy[year_in], y[year_in],
Expand Down
4 changes: 2 additions & 2 deletions tstools/src/plots/plot_residuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def plot(self):
self.axis_1.set_xlabel('Date')
self.axis_1.set_ylabel(r'Residuals ($y - \hat{y}$)')

self.axis_1.set_xlim(dt.date(settings.plot['x_min'], 01, 01),
dt.date(settings.plot['x_max'], 01, 01))
self.axis_1.set_xlim(dt.date(settings.plot['x_min'], 1, 1),
dt.date(settings.plot['x_max'], 12, 31))

# Add 0 line
self.axis_1.axhline(y=0, xmin=0, xmax=1, c='k')
Expand Down
2 changes: 1 addition & 1 deletion tstools/src/plots/plot_ts.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def plot(self):
self.axis_1.set_ylabel('Value') # TODO

self.axis_1.set_xlim(dt.date(settings.plot['x_min'], 1, 1),
dt.date(settings.plot['x_max'], 1, 1))
dt.date(settings.plot['x_max'], 12, 31))

self.axis_1.set_ylim(settings.plot['y_min'][0],
settings.plot['y_max'][0])
Expand Down

0 comments on commit 67e6960

Please sign in to comment.