Unanswered
Hello!
How Can I Use "Report_Scatter2D" In Order To Report Timestamp In The X-Axis?
When I have:n = 20 duration = 1000 now = time.mktime(time.localtime()) timestamps = np.linspace(now, now + duration, n) dates = [dt.datetime.fromtimestamp(ts) for ts in timestamps] values = np.sin((timestamps - now) / duration * 2 * np.pi) fig = go.Figure(data=go.Scatter(x=dates, y=values, mode='markers')) task.get_logger().report_plotly( title="plotly", series="b", iteration=0, figure=fig)
Everything looks okay
150 Views
0
Answers
3 years ago
one year ago