pm4py.vis.save_vis_dotted_chart#
- pm4py.vis.save_vis_dotted_chart(log: EventLog | DataFrame, file_path: str, attributes=None, bgcolor: str = 'white', show_legend: bool = True, graph_title: str | None = None, **kwargs)[source]#
Saves the visualization of the dotted chart.
Each event in the log is represented as a point. Dimensions are: - X-axis: The value of the first selected attribute. - Y-axis: The value of the second selected attribute. - Color: The value of the third selected attribute.
If attributes are not provided, a default dotted chart is used: X-axis: time Y-axis: case index (in order of occurrence) Color: activity
- Parameters:
log – Event log
file_path (
str) – Destination pathattributes – Attributes for the dotted chart. For example, [“time:timestamp”, “concept:name”, “org:resource”].
bgcolor (
str) – Background color of the chart (default: white)show_legend (
bool) – Boolean (enables/disables the legend)graph_title – Sets the title of the visualization (if provided)
import pm4py pm4py.save_vis_dotted_chart(dataframe, 'dotted.png', attributes=['time:timestamp', 'concept:name', 'org:resource'])