/

Formatting Charts produced by the Nematrian website

[this page | pdf | back links]

In many situations presentation of results is important. A common way of presenting mathematical or numerical work is to plot the results in chart form.

 

The Nematrian charting algorithms allow the user to adjust some of the presentational characteristics of the chart using a ChartFormat parameter. The ChartFormat parameter is a string of the form “xxx=aaa yyy=bbb …” etc., where e.g. xxx is the sub-parameter being set and aaa is the value to be assigned to it. Where the value is in the form of a string variable then it needs to be enclosed in quotes (i.e. as e.g. xxx=“aaa”). A quote sign within such a string should be referred to by two consecutive quote signs. This is particularly important if the string contains a space as otherwise the space will be interpreted by the website as delimiting different sub-parameters.

 

Valid sub-parameters currently include the following:

 

Sub-Parameter

What it relates to

LegendDocking

Indicates where relative to the plot area the legend appears (default is to the right)

Width

Width (in pixels) of overall chart (default width is 600)

Height

Height (in pixels) of overall chart

SeriesType0, SeriesType1, …

Chart type used for series 0, series 1 etc. Series 0 is the first series plotted, series 1 is the second etc. (default is usually a line chart)

SeriesName0, SeriesName1, …

Name ascribed to the series when it is plotted (default is usually the expression being plotted)

SeriesColor0, SeriesColor1, …

Colour of line ascribed to the series when it is plotted (default uses blue for first series, brown for next series etc.)

SeriesLineStyle0, SeriesLineStyle1, …

Style of line ascribed to the series when it is plotted (the default is a solid line)

xMajorGrid

Indicates if major grid lines for x-axis are to be included (default is false)

yMajorGrid

Indicates if major grid lines for y-axis are to be included (default is true)

xMinimum

Minimum x value (overriding the default selected by website)

xMaximum

Maximum x value (overriding the default selected by website)

yMinimum

Minimum y value (overriding the default selected by website)

yMaximum

Maximum y value (overriding the default selected by website)

xLabel

Label to describe x axis (default is usually “x”

yLabel

Label to describe y axis (various defaults depending on function)

 

Sub-parameter names are not case sensitive.

 

Examples

 

The following four charts illustrate the use of the LegendDocking sub-parameter. Recognised values are returned by MnRecognisedChartLegendDockings. They include Right, Top, Left and Bottom and are not case sensitive.

 

[SmartChart][SmartChart]

[SmartChart][SmartChart]

 

The following two charts illustrate the use of the Height and Width sub-parameters.

 

[SmartChart]  [SmartChart]

 

The following two charts illustrate the use of SeriesType. Recognised values are returned by MnRecognisedChartSeriesTypes. They include “Line” and “Point” and are not case sensitive. Only some values returned by MnRecognisedChartSeriesTypes will be meaningful for a specific type of chart, such the xy plots used in the charts below.


[SmartChart][SmartChart]

The following chart illustrates the use of SeriesColor and SeriesLineStyle. Recognised values are returned by MnRecognisedChartSeriesColors and MnRecognisedChartSeriesLineStyles. They include e.g. Black, Blue, Green, Pink, Purple, Red, Yellow (Color) and Solid, Dash, Dot (LineStyle), and are not case sensitive.

 

[SmartChart]

 

All charts produced by the Nematrian website are technically also old-style SmartCharts. Sub-parameters relevant to this aspect of the chart are:

 

Sub-Parameter

What it relates to

SmartText

Text characterising the appearance of the SmartChart

Creator

The creator of the SmartChart

Comment

A comment added by the creator in relation to the chart

Referencewebsite

A website that is associated with the SmartChart

LimitOtherUsers

Flag indicating if SmartChart is only viewable by certain users

OtherAllowedUsers

A SmartUList indicating which Users can view the SmartChart, if LimitOtherUsers is set to true

 

The default for each of these sub-parameters is blank, except for LimitOtherUsers which is false.

 


NAVIGATION LINKS
Contents | Prev | Next


Desktop view | Switch to Mobile