Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,4 @@ __pycache__
*.js
*.png

.coverage.*
.coverage

CLAUDE.md
*.gz
*.whl
*.ipynb
13 changes: 13 additions & 0 deletions pyleoclim/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,19 @@ def plot(self, figsize=[10, 4],
fig, ax = ts.plot(color='k', savefig_settings={'path': 'ts_plot3.png'}); pyleo.closefig(fig)
pyleo.savefig(fig,path='ts_plot3.png')


Plot the CENOGRID d18O timeseries with added Geologic Time Scale annotation

.. jupyter-execute::

import pyleoclim as pyleo

ts_18 = pyleo.utils.load_dataset('cenogrid_d18O')
fig, ax = ts_18.plot(figsize=(10, 4),linewidth=0.5)
ax.invert_yaxis() # d18O is traditionally inverted

fig, ax = pyleo.add_GTS(fig, ax, ranks=['Period', 'Epoch'], location='above')

'''
# generate default axis labels
time_label, value_label = self.make_labels()
Expand Down
Loading
Loading