Declaration
NUM_BIN_4 |
SeriesNb |
/* Number of series on the histogram |
NUM_BIN_4 |
PointsNb |
/* Number of points on the histogram |
ALPHA(250) |
ArrLabel(10) |
/* Label array by values |
NUM_BIN_4 |
SeriesId |
/* Id of the series to display |
NUM_E(15,4) |
ArrPoints(10) |
/* Array of point values |
ALPHA(250) |
PtLabelValArr(10) |
/* Label value array for each point |
NUM_E(15,4) |
ArrErrors(10) |
/* Error array |
*** |
Program
******************************************* * Histogram graphical object HST_01 * A graphical list GRAPH_LST * with 2 columns : * - Name (Legends) * - Number (Labels) ******************************************* * Setting up titles in the top part of the histogram * HST_01:MAIN_TITLE = 'HARDIS' ******************************************* * Define current series (1) – Histogram drawing and preparation * Axis, legends, titles... * Number of points, legends, labels * * Initialization of legend array ArrLegends = *blank PointsNb = 0 * Browse all lines in the list read_lst GRAPH_LST:LIST PointsNb = PointsNb + 1 * Label drawing for each point ArrLabels(PointsNn) = ZZ_COL_NAME end_read_lst SeriesNb = 1 call_method HST_01 define_graphic SeriesNb PointsNB ArrLabels ArrLegends ******************************************** * Draw graph for series (1) – Display values * SeriesId = 1 PointsNb = 0 * Browsing list read_lst GRAPH_LST:LIST PointsNb = PointsNb + 1 * Draw the bars ArrPoints(PointsNb) = ZZ_COL_NBR * Display values ArrPtLabelVal(PointsNb) = ZZ_COL_NBR end_read_lst * call_method HST_01 define_data SeriesId ArrPoints ArrPtLabelVal ArrErrors |