Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justinshenk/timeshade
https://github.com/justinshenk/timeshade
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/justinshenk/timeshade
- Owner: JustinShenk
- Created: 2021-02-07T23:45:35.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-21T18:35:59.000Z (almost 4 years ago)
- Last Synced: 2024-12-30T14:09:09.627Z (9 days ago)
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nightshade
### Shade nighttime dark on plots
### Install
`pip install timeshade`
### Usage
```python
import timeshade; import pandas as pd# create timeseries
idx = pd.date_range("2018-01-01", periods=100, freq="H")
ts = pd.Series(range(len(idx)), index=idx)# shade
import timeshade
timeshade.shade(ts)# plot
import matplotlib.pyplot as plt
plt.show()
```![timeshade](timeshade.png)