Commit c9a53927 authored by Andrea Lorenzon's avatar Andrea Lorenzon 💬
Browse files

added title to series plot

parent 8d3744fd
Pipeline #1573 failed with stages
in 1 minute and 12 seconds
......@@ -108,6 +108,7 @@ def plot_2d_series(x: numpy.ndarray, y: numpy.ndarray, ds_name='') -> dict:
:param y: values of the series
:param x: x axis of the serie (time?)
:param ds_name: title of the plot
:return: a bokeh figure
"""
......@@ -117,7 +118,7 @@ def plot_2d_series(x: numpy.ndarray, y: numpy.ndarray, ds_name='') -> dict:
import numpy as np
arr = np.stack((x, y), axis=0).T
points = hv.Points(arr)
points = hv.Points(arr, title=ds_name)
points = points.hist(num_bins=51, dimension=['x', 'y'])
points.main.opts(width=500, height=500, size=0.8)
return {"plot": hv.render(points, backend='bokeh')}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment