diff --git a/dist/vispm-0.0.4-py3-none-any.whl b/dist/vispm-0.0.4-py3-none-any.whl deleted file mode 100644 index 3d0d545..0000000 Binary files a/dist/vispm-0.0.4-py3-none-any.whl and /dev/null differ diff --git a/dist/vispm-0.0.4.tar.gz b/dist/vispm-0.0.4.tar.gz deleted file mode 100644 index ad32518..0000000 Binary files a/dist/vispm-0.0.4.tar.gz and /dev/null differ diff --git a/dist/vispm-0.0.5-py3-none-any.whl b/dist/vispm-0.0.5-py3-none-any.whl new file mode 100644 index 0000000..3048756 Binary files /dev/null and b/dist/vispm-0.0.5-py3-none-any.whl differ diff --git a/dist/vispm-0.0.5.tar.gz b/dist/vispm-0.0.5.tar.gz new file mode 100644 index 0000000..00b87c4 Binary files /dev/null and b/dist/vispm-0.0.5.tar.gz differ diff --git a/setup.cfg b/setup.cfg index 918d062..9f0412b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = vispm -version = 0.0.4 +version = 0.0.5 author = Adam author_email = adam_banham@hotmail.com description = A visulisation package for process mining activties diff --git a/src/vispm.egg-info/PKG-INFO b/src/vispm.egg-info/PKG-INFO index 7613c03..a6ca585 100644 --- a/src/vispm.egg-info/PKG-INFO +++ b/src/vispm.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: vispm -Version: 0.0.4 +Version: 0.0.5 Summary: A visulisation package for process mining activties Home-page: https://github.com/AdamBanham/vispm Author: Adam @@ -70,8 +70,6 @@ Below are some examples of using this class and playing around with custom colou
Dotted Chart for BPIC 2012 Dotted Chart for BPIC 2017 - Dotted Chart for BPIC 2018 - Dotted Chart for BPIC 2019
##### Extensions @@ -87,26 +85,90 @@ from vispm import StaticDottedChartPresentor,DottedColourHistogramExtension presentor = StaticDottedChartPresentor(log,dpi=100, event_colour_scheme=StaticDottedChartPresentor.EventColourScheme.EventLabel, - colormap=HIGH_CONTRAST_WARM + colormap=HIGH_CONTRAST_COOL ) ext = DottedColourHistogramExtension(direction=DottedColourHistogramExtension.Direction.NORTH) presentor.add_extension(ext) ext = DottedColourHistogramExtension(direction=DottedColourHistogramExtension.Direction.SOUTH, - plot_axes=DottedColourHistogramExtension.PlotAxes.X) + bin_axes=DottedColourHistogramExtension.PlotAxes.X) presentor.add_extension(ext) ext = DottedColourHistogramExtension(direction=DottedColourHistogramExtension.Direction.WEST) presentor.add_extension(ext) ext = DottedColourHistogramExtension(direction=DottedColourHistogramExtension.Direction.EAST, - plot_axes=DottedColourHistogramExtension.PlotAxes.X) + bin_axes=DottedColourHistogramExtension.PlotAxes.X) presentor.add_extension(ext) presentor.plot() - ```
- Dotted Chart with Colour Histogram + Dotted Chart with Colour Histogram + Dotted Chart with Colour Histogram
+###### DottedEventHistogramExtension + +This extension plots a histogram based on the events within a dotted chart. Events will be broken down by the label for each event in each bin. This extension uses a colour imputer that is independent of the graph, meaning different colour schemes can be used for each extension. + +1. setup up colour schemes to use +```python +from vispm.helpers.colours.colourmaps import HIGH_CONTRAST_COOL,HIGH_CONTRAST_WARM +from vispm.helpers.colours.colourmaps import EARTH,COOL_WINTER, + +import numpy as np +from matplotlib.colors import ListedColormap +from matplotlib.cm import get_cmap + +colourmaps = [COOL_WINTER,EARTH,HIGH_CONTRAST_COOL,HIGH_CONTRAST_WARM] +seq_colourmap = np.vstack( + ( + colourmaps[0](np.linspace(0.20,1,8)), + colourmaps[1](np.linspace(0.20,1,8)), + colourmaps[2](np.linspace(0.20,1,8)), + colourmaps[3](np.linspace(0.20,1,8)) + ) +) +seq_colourmap = ListedColormap(seq_colourmap, name='VARIANCE') +cmap = get_cmap(HIGH_CONTRAST_COOL, 26) +``` + +2. create a presentor and add extensions +```python +presentor = StaticDottedChartPresentor(log,dpi=100, + event_colour_scheme=StaticDottedChartPresentor.EventColourScheme.EventLabel, + colormap=cmap +) + +ext = DottedEventHistogramExtension( + direction=DottedEventHistogramExtension.Direction.SOUTH, + bin_axes=DottedEventHistogramExtension.PlotAxes.X, + colourmap=seq_colourmap +) +presentor.add_extension(ext) +ext = DottedEventHistogramExtension( + direction=DottedEventHistogramExtension.Direction.NORTH, + bin_axes=DottedEventHistogramExtension.PlotAxes.Y, + colourmap=seq_colourmap +) +presentor.add_extension(ext) +ext = DottedEventHistogramExtension( + direction=DottedEventHistogramExtension.Direction.WEST, + bin_axes=DottedEventHistogramExtension.PlotAxes.Y, + colourmap=cmap +) +presentor.add_extension(ext) +ext = DottedEventHistogramExtension( + direction=DottedEventHistogramExtension.Direction.EAST, + bin_axes=DottedEventHistogramExtension.PlotAxes.X, + colourmap=cmap +) +presentor.add_extension(ext) + +presentor.plot() +``` + +
+ Dotted Chart with Event Histogram +
#### Running Presentors diff --git a/src/vispm.egg-info/SOURCES.txt b/src/vispm.egg-info/SOURCES.txt index aba4e00..4832c82 100644 --- a/src/vispm.egg-info/SOURCES.txt +++ b/src/vispm.egg-info/SOURCES.txt @@ -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/event_histogram.py src/vispm/helpers/__init__.py src/vispm/helpers/colours/__init__.py src/vispm/helpers/colours/colourmaps.py