Skip to content

Commit

Permalink
add note to docstring and specify class
Browse files Browse the repository at this point in the history
  • Loading branch information
jukent committed Mar 23, 2024
1 parent 6bcf8a8 commit 73ecd64
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/geocat/viz/taylor.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,11 +436,12 @@ def add_xgrid(self,
**kwargs):
"""Add gridlines to the correlation axis specified by array *arr*.
This function will be deprecated in favor of `add_corr_grid()`
This function will be deprecated in favor of
`TaylorDiagram.add_corr_grid()`
"""

warnings.warn(
'This function is deprecated. Call `add_corr_grid` instead.',
'`TaylorDiagram.add_xgrid` will be deprecated in the future. Please use `TaylorDiagram.add_corr_grid` instead.',
PendingDeprecationWarning)

return self.add_corr_grid(arr, color, linestyle, linewidth, **kwargs)
Expand Down Expand Up @@ -505,11 +506,11 @@ def add_ygrid(self,
*arr*.
This function will be deprecated in favor of `add_std_grid()`
This function will be deprecated in favor of `TaylorDiagram.add_std_grid()`
"""

warnings.warn(
'This function is deprecated. Call `add_std_grid` instead.',
'`TaylorDiagram.add_ygrid` will be deprecated in the future. Please use `TaylorDiagram.add_std_grid` instead.',
PendingDeprecationWarning)

return self.add_std_grid(arr, color, linestyle, linewidth, **kwargs)
Expand Down

0 comments on commit 73ecd64

Please sign in to comment.