smart_arrays_plot_polyline library
Classes
-
Axis
-
The purpose of this class is to draw the axes supplementing the graphical
representation of 1D or 2D array data. A graphical representation of a 1D
array is provided by the class Polyline of this package.
For 1D arrays, a horizontal coordinate axis and a vertical intensity axis
is provided (constructors Axis.coord and Axis.intens. For 2D arrays,
a horizontal coordinate axis and a vertical second coordinate axis is
provided (both constructed with Axis.coord.
The user can control many axis attributes.
Note: Drawing is performed using Svg, Scalable Vector Graphics.
Usage: [...]
-
JsonUtils
-
JSON utils: json.decode(..) returns "dynamic".
These utility functions convert "dynamic" to a wanted type.
-
Legend
-
This class represents a legend consisting of [...]
-
MarkerLines
-
This class provides methods to draw vertical lines above a Polyline,
optionally along with a text. This can be used to mark desired points
of a Polyline and provide information about this point, e.g. its
index, its physical x value, its y value or more.
-
PhysUnits
-
Helper class to convert array indices to "physical" units,
and to scale ("normalize") the values of the array.
Its is used to label x and y axes when the array is displayed as a graph,
e.g. using Polyline.
-
PlotLayoutSVG
-
Computes a plot layout for drawing with SVG, but also for 2D html:
Sets up the graphics containers and their relative coordinates and sizes.
-
Polyline
-
The purpose of this class is to draw (plot) the values of a 1D array as a curve.
Drawing is performed using SVG, Scalable Vector Graphics. The drawn curve
is a SVG "polyline".
The user can control many polyline attributes.
Usage: [...]
-
SimpleContourRenderer
-
The purpose of this class is to provide a simple renderer capable of
drawing the contours of a function z=f(x,y).
-
SimplePlot
-
This class allows you to display one or several arrays as
polylines (curves) inside the browser, along with coordinate axes and a
a coordinate grid, an some title text.
It is recommended to use this class if a plot needs to be generated with a few
lines of code, rather than exploitimg the full capabilities of the classes
Polyline, Axis, Legend for more complex layouts.
-
SVG
-
Utilities for Svg, Scalable Vector Graphics.
-
Utils
-
Some utilities used in this package
-
XYGrid
-
Draws a grid in form of horizontal or vertical lines, or both.
The grid is particularly useful when employed in conjunction with the
Axis class to form a coordinate grid positioned at the tick marks of an axis.
Usage: [...]
-
YZoomRegion
-
An intensity (y) region defined by a selection rectangle
Enums
-
AxA
-
Axis attribute names definitions. See also
AXIS_DEFAULT_ATTRIBUTES
.
The attribute values are Strings (possibly a String resulting from json
encoded Map or List).
You may pass any of these attributes to an axis constructor. The respective
defaults attributes will be overridden.
POSITION A String with possibly several characters. [...]
-
CtourA
-
-
LegA
-
Legend attribute names definitions. See also
LEGEND_DEFAULT_ATTRIBUTES
.
The attribute values are Strings.
You may pass any of these attributes to a legend constructor. The respective
defaults attributes will be overridden.
-
MarA
-
Legend attribute names definitions. See also
LEGEND_DEFAULT_ATTRIBUTES
.
The attribute values are Strings.
You may pass any of these attributes to a legend constructor. The respective
defaults attributes will be overridden.
-
PyA
-
Polyline attribute names definitions. See also POLYLINE_DEFAULT_ATTRIBUTES.
The attribute values are Strings (possibly a String resulting from json
encoded Map or List).
You may pass any of these attributes to a Polyline constructor. The respective
defaults attributes will be overridden.
Typedefs
-
PhysicalToScreen(double physicalCoordinate)
→ double
-
Converts a "physical" axis coordinate to a screen coordinate
-
TouchCallback(UIEvent e)
→ dynamic
-
Called for touch events on an axis elements