Skip to content

Commit 0569769

Browse files
authored
Merge pull request #507 from DHI/plot_attr
Add .plot attributes with links to docs
2 parents b3a27ca + 2dc4231 commit 0569769

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

docs/_quarto.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ quartodoc:
188188
members: []
189189
- name: Comparer
190190
members:
191+
- plot
191192
- skill
192193
- gridded_skill
193194
- score
@@ -202,6 +203,7 @@ quartodoc:
202203

203204
- name: ComparerCollection
204205
members:
206+
- plot
205207
- skill
206208
- mean_skill
207209
- gridded_skill

modelskill/comparison/_collection.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,7 @@ def __init__(self, comparers: Iterable[Comparer]) -> None:
101101
self._comparers[cmp.name] = cmp
102102

103103
self.plot = ComparerCollection.plotter(self)
104-
"""Plot using the ComparerCollectionPlotter
105-
106-
Examples
107-
--------
108-
>>> cc.plot.scatter()
109-
>>> cc.plot.kde()
110-
>>> cc.plot.taylor()
111-
>>> cc.plot.hist()
112-
"""
104+
"""Plot using the [](`~modelskill.comparison.ComparerCollectionPlotter`)"""
113105

114106
@property
115107
def _name(self) -> str:

modelskill/comparison/_comparison.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -490,19 +490,7 @@ def __init__(
490490
), f"raw_mod_data[{k}] must be a TimeSeries object"
491491

492492
self.plot = Comparer.plotter(self)
493-
"""Plot using the ComparerPlotter
494-
495-
Examples
496-
--------
497-
>>> cmp.plot.timeseries()
498-
>>> cmp.plot.scatter()
499-
>>> cmp.plot.qq()
500-
>>> cmp.plot.hist()
501-
>>> cmp.plot.kde()
502-
>>> cmp.plot.box()
503-
>>> cmp.plot.residual_hist()
504-
>>> cmp.plot.taylor()
505-
"""
493+
"""Plot using the [](`~modelskill.comparison.ComparerPlotter`)"""
506494

507495
@staticmethod
508496
def from_matched_data(

0 commit comments

Comments
 (0)