Creates scatter, line or bar plots where Y and X coordinates come from JSON files. Coordinates for the Y axis must always be provided; values for the X axis are optional. If X coordinates are missing, integers 1 to N are used.
Each column may be plot to the same image or to different images. Creates also a pairs plot, which is each Y column ploted against all other Y columns. The X columns are discarded when using the pairs plot.
Plotting configuration help: http://humblesoftware.com/flotr2/documentation
Use the provided templates to modify the output.
Version | 0.1 |
---|---|
Bundle | tools |
Categories | HTML Plot |
Authors | Ville Rantanen (ville.rantanen@helsinki.fi) |
Issue tracker | View/Report issues |
Requires | Python |
Source files | component.xml foot_bar.htmls foot_line.htmls foot_scatter.htmls foot_matrixdiagrams.htmls PlotHTML.py |
Usage | Example with default values |
Name | Type | Mandatory | Description |
---|---|---|---|
data | CSV | Mandatory | Data for plotting |
template | TextFile | Optional | Template for data handling |
Name | Type | Description |
---|---|---|
plot | HTMLFile | The plot. |
Name | Type | Default | Description |
---|---|---|---|
colors | string | "["red","blue","green"]" | Custom function for colors. Example ["red", "blue", "green"]. |
drawX | boolean | true | If false, do not print X axis ticks and numbers. |
height | string | "600px" | Height of each plot in px. |
legendPosition | string | "off" | Legend position 'bottomleft' or 'topright' etc (Can not be used with the pairs plot) |
nInf | float | -2e100 | Substitution value for infinitely small values |
pInf | float | 2e100 | Substitution value for infinitely great values |
plotType | string | "p" | Plot type p=points, l=lines, h=bars. m=matrixdiagram If input template is used, it overrides this selection. |
pngImage | boolean | true | Include download link for PNG image |
title | string | "Plot" | Image title. The caption may contain one or two %s placeholders, which are replaced with the current column names in "y" and "x" (if defined). Column names are not used when multiple plots are created to the same image (imageType = 'single'). |
width | string | "800px" | Width of each plot in px. |
xHigh | string | "null" | High bound of the X axis. |
xLabel | string | "x" | X axis label. The label may contain one placeholder, which is replaced with the current column name in "x", or if not defined, in "y". |
xLow | string | "null" | Low bound of the X axis. |
yHigh | string | "null" | High bound of the Y axis. |
yLabel | string | "y" | X axis label. The label may contain one placeholder, which is replaced with the current column name in "y". |
yLow | string | "null" | Low bound of the Y axis. |
Test case | Parameters▼ | IN data |
IN template |
OUT plot |
||
---|---|---|---|---|---|---|
barplot | properties | data | (missing) | plot | ||
plotType=h, |
||||||
clickable_points | properties | data | template | plot | ||
plotType=p, |
||||||
matrixdiagram | properties | data | (missing) | plot | ||
plotType=m, |
||||||
scattercluster | (missing) | data | template | plot | ||
scatterplot | (missing) | data | (missing) | plot |