Declaration
NUM_BIN_4 |
NbSeries |
/* Number of series on the histogram |
NUM_BIN_4 |
NbPoints |
/* 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 NbPoints = 0 * Browse all lines in the list read_lst GRAPH_LST:LIST NbPoints = NbPoints + 1 * Label drawing for each point ArrLabels(NbPoints) = ZZ_COL_NAME end_read_lst NbSeries = 1 call_method HST_01 define_graphic NbSeries NbPoints ArrLabels ArrLegends ******************************************** * Draw graph for series (1) – Display values * SeriesId = 1 NbPoints = 0 * Browsing list read_lst GRAPH_LST:LIST NbPoints = NbPoints + 1 * Draw the bars ArrPoints(NbPoints) = ZZ_COL_NBR * Display values ArrPtLabelVal(NbPoints) = ZZ_COL_NBR end_read_lst * call_method HST_01 define_data SeriesId ArrPoints ArrPtLabelVal ArrErrors |