Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/dtcenter/METplotpy into …
Browse files Browse the repository at this point in the history
…bugfix_391_fixed_values
  • Loading branch information
bikegeek committed Oct 23, 2023
2 parents 71925ee + f635ce4 commit c2f6f39
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions metplotpy/plots/config/reliability_defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,5 @@ ytlab_horiz: 0.5
ytlab_orient: 1
ytlab_perp: 0.5
ytlab_size: 1
noskill_line_col: 'red'
reference_line_col: 'red'
4 changes: 2 additions & 2 deletions metplotpy/plots/reliability_diagram/reliability.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def _add_noskill_line(self, o_bar: Union[float, None]) -> None:
self.figure.add_trace(
go.Scatter(x=[0, 1],
y=[util.abline(0, intercept, 0.5), util.abline(1, intercept, 0.5)],
line={'color': 'red',
line={'color': self.config_obj.noskill_line_col,
'dash': 'dash',
'width': 1},
showlegend=False,
Expand Down Expand Up @@ -393,7 +393,7 @@ def _add_noresolution_line(self, o_bar: Union[float, None]) -> None:
self.figure.add_trace(
go.Scatter(x=[0, 1],
y=[util.abline(0, o_bar, 0), util.abline(1, o_bar, 0)],
line={'color': 'red',
line={'color': self.config_obj.reference_line_col,
'dash': 'dash',
'width': 1},
showlegend=False,
Expand Down
2 changes: 2 additions & 0 deletions metplotpy/plots/reliability_diagram/reliability_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def __init__(self, parameters: dict) -> None:
self.rely_event_hist = self._get_bool('rely_event_hist')
self.inset_hist = self._get_bool('inset_hist')
self.summary_curves = self.get_config_value('summary_curves')
self.noskill_line_col = self.get_config_value('noskill_line_col')
self.reference_line_col = self.get_config_value('reference_line_col')

##############################################
# caption parameters
Expand Down
2 changes: 2 additions & 0 deletions test/reliability_diagram/custom_reliability_points1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,6 @@ ytlab_perp: 0.5
ytlab_size: 1
plot_filename: ./intermed_files/reliability.png
stat_input: ./reliability.data
noskill_line_col: 'green'
reference_line_col: 'blue'

0 comments on commit c2f6f39

Please sign in to comment.