Skip to content

Commit

Permalink
new release build
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamBanham committed Jul 10, 2022
1 parent c73cba0 commit 70722d4
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
Binary file added dist/vispm-0.0.6-py3-none-any.whl
Binary file not shown.
Binary file added dist/vispm-0.0.6.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = vispm
version = 0.0.5
version = 0.0.6
author = Adam
author_email = [email protected]
description = A visulisation package for process mining activties
Expand Down
46 changes: 45 additions & 1 deletion src/vispm.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: vispm
Version: 0.0.5
Version: 0.0.6
Summary: A visulisation package for process mining activties
Home-page: https://github.com/AdamBanham/vispm
Author: Adam
Expand Down Expand Up @@ -170,6 +170,50 @@ presentor.plot()
<img src="https://vispm.s3.ap-southeast-2.amazonaws.com/Dotted_ext_evhist.png" alt="Dotted Chart with Event Histogram" style="transform: scale(0.5);width: 48%">
</div>

#### DescriptionHistogramExtension

This extension describes an aspect of the event log. For example, a breakdown of trace duration, or trace length (by the number of activities), or event label, or when events occur (weekday or monthday).

The following example shows how to use this extension to understand the properties of event log, alongside a dotted chart.
```python
cmap = get_cmap(HIGH_CONTRAST_COOL, 26)
presentor = StaticDottedChartPresentor(log,dpi=100,
event_colour_scheme=StaticDottedChartPresentor.EventColourScheme.EventLabel,
colormap=cmap
)

ext = DescriptionHistogramExtension(
)
presentor.add_extension(ext)

ext = DescriptionHistogramExtension(
direction=DescriptionHistogramExtension.Direction.EAST,
describe=DescriptionHistogramExtension.Describe.TraceLength,
density=DescriptionHistogramExtension.Density.Event
)
presentor.add_extension(ext)

ext = DescriptionHistogramExtension(
direction=DescriptionHistogramExtension.Direction.SOUTH,
describe=DescriptionHistogramExtension.Describe.TraceDuration,
density=DescriptionHistogramExtension.Density.Trace
)
presentor.add_extension(ext)

ext = DescriptionHistogramExtension(
direction=DescriptionHistogramExtension.Direction.WEST,
describe=DescriptionHistogramExtension.Describe.Monthday,
density=DescriptionHistogramExtension.Density.Event
)
presentor.add_extension(ext)

presentor.plot()
```

<div style="width:100%;display:inline-block">
<img src="https://vispm.s3.ap-southeast-2.amazonaws.com/Dotted_ext_deschist.png" alt="Dotted Chart with Description Histogram" style="transform: scale(0.5);width: 48%">
</div>

#### Running Presentors

More on these in upcoming updates.
Expand Down
1 change: 1 addition & 0 deletions src/vispm.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ src/vispm/extensions/__init__.py
src/vispm/extensions/_base.py
src/vispm/extensions/dotted/__init__.py
src/vispm/extensions/dotted/colour_histogram.py
src/vispm/extensions/dotted/description_histogram.py
src/vispm/extensions/dotted/event_histogram.py
src/vispm/helpers/__init__.py
src/vispm/helpers/colours/__init__.py
Expand Down

0 comments on commit 70722d4

Please sign in to comment.