diff options
author | Tibor Frank <tifrank@cisco.com> | 2018-03-28 15:57:13 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2018-03-28 15:57:13 +0200 |
commit | fe3b245f128cb3204cbf57e2e474f006f7ceacd5 (patch) | |
tree | 0442f4a23f887df7a52f76e763883369abf6ebdb /resources/tools/presentation/generator_CPTA.py | |
parent | ec28a657ac37342aa4f87c505de9de24e7d82d1b (diff) |
PAL Trending: Static content
Change-Id: I4c46a0b06c5d726f7bfb5705d153f101eb46796f
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_CPTA.py')
-rw-r--r-- | resources/tools/presentation/generator_CPTA.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py index 0c317c05ce..3b8c9fd3ab 100644 --- a/resources/tools/presentation/generator_CPTA.py +++ b/resources/tools/presentation/generator_CPTA.py @@ -291,19 +291,21 @@ def _generate_trending_traces(in_data, period, moving_win_size=10, "color": anomalies_res, "colorscale": color_scale, "showscale": True, - + "line": { + "width": 2 + }, "colorbar": { "y": 0.5, "len": 0.8, - "title": "Results Clasification", + "title": "Circles Marking Data Classification", "titleside": 'right', "titlefont": { "size": 14 }, "tickmode": 'array', "tickvals": [0.125, 0.375, 0.625, 0.875], - "ticktext": ["Outlier", "Regress", "Normal", "Progress"], - "ticks": 'outside', + "ticktext": ["Outlier", "Regression", "Normal", "Progression"], + "ticks": "", "ticklen": 0, "tickangle": -90, "thickness": 10 @@ -313,9 +315,8 @@ def _generate_trending_traces(in_data, period, moving_win_size=10, traces.append(trace_anomalies) if show_moving_median: - min_periods = moving_win_size / 2 + 1 data_mean_y = pd.Series(data_y).rolling( - window=moving_win_size, min_periods=min_periods).median() + window=moving_win_size, min_periods=2).median() trace_median = plgo.Scatter( x=data_x, y=data_mean_y, |