A visulisation package for process mining activties
Project description
VISPM: Visualisations for Process Mining
A python library for creating visualisations related to process mining, all graphs are generated using matplotlib.
What is it?
This package provides an interface for making exciting visualisations about process mining. Process mining can be a purely technical endeavour at times, and having an easy way to visualise concepts is essential. To encourage others to overcome the technical components of process mining, sometimes having an engaging animation will do just that. A key difference between other data science domains and process mining, is that process mining outcomes often will have a visual interpretation that others don’t. We need more ways to emphasise this aspect, and this project is one such way.
The goal of vispm is to:
- Have fun and create some cool stuff.
- Make exciting process mining visualisation that would aspire others.
- Create a layered interface supporting three levels: quick-easy access, general templates for specific use cases, super customisation via class objects.
Main Features
Here is a list of supported process mining visualisations:
Dotted Charts
This chart is the only visualisation available within the project so far. In this visualisation, we plot events across a time axis, and we can change how events are coloured depending on the type analysis. We currently support colouring events via trace or event label but offer a template for customer colourers.
Static Presentors
This section is currently being worked on and is unstable.
Below is an example of generating a dotted chart from an event log. While we do not require that you use pm4py as the importer, we suggest you use the library to handle xes or xes.gz files. The StaticDottedChartPresentor has several optional parameters that allow users to change the type of colourer used (trace, event label or custom), figure parameters (dpi, size, markersize) and the colourmap used for colouring. See the doc string for more information.
from vispm import StaticDottedChartPresentor
from matplotlib import pyplot as plt
# not required but a very helpful and cool library
from pm4py import read_xes
from os.path import join
LOG_FILE = join(".","BPI_Challenge_2012.xes.gz")
def main():
log = read_xes(LOG_FILE)
presentor = StaticDottedChartPresentor(log)
presentor.plot()
plt.show()
if __name__ == "__main__":
main()
Below are some examples of using this class and playing around with custom colourers.
Running Presentors
More on these in upcoming updates.
Complex Template Presentors
More on these in upcoming updates.
Where to get it
The source code is currently available on GitHub: https://github.com/AdamBanham/vispm
Installers for the latest released versions are available at the Python Package Index (PyPI): https://pypi.org/project/vispm/
To install the package, use the following command.
pip install vispm
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.