dotted_chart_sink
Outputs the events as a dotted chart graph.
Parameters
- title:
strdefault:Dotted chart of events
The title of the dotted chart. - max_events:
intdefault:None
Max number of events to show. - time_window_seconds:
intdefault:None
Max time window of events to show. - point_size:
intdefault:100
The size of each event point. - show_legend:
booleandefault:False
Whether the legend should be shown. - gif_path:
strdefault:None
The path where the gif of the stream should be stored. IfNoneis specified, then the output is rendered on the notebook directly. - fps:
intdefault:5
The number of frame per seconds, in case the output is stored as a GIF.
Example
from pybeamline.sources import string_test_source
from pybeamline.sinks.dotted_chart_sink import dotted_chart_sink
log_original = ["ABCD"]*5 + ["ACBD"]*5
log_after_drift = ["AEFG"]*5 + ["AFEG"]*5
string_test_source(log_original + log_after_drift).pipe(
).sink(dotted_chart_sink(max_events=25, gif_path="test_dotted_chart_sink.gif"))
Output:
