How to use colors, hatching and fill patterns in PAW ?


The SET command allows to modify hatching and colors.

For low level drawing commands such as PLINE, PMARKER, ITX, FAREA, the colors are set via commands like

    PAW > SET PLCI 2     for PLINE
    PAW > SET PMCI 8     for PMARKER
    PAW > SET TXCI 3     for ITX and TEXT
    PAW > SET FACI 4     for FAREA
 

When a command like HISTO/PLOT is performed, the hatching and color attributes can be preset with the SET command. It allows to change the color (COL) and the hatches type (TYP) of 4 main graphics object in the PAW plots:

 Bxxx : Box around each histogram/function plot (zone).
 Pxxx : Page. It may contain several zones.
 Hxxx : Histogram
 Fxxx : Function
 

xxx can be TYP or COL

Example:

    PAW > SET HCOL 2
 
Changes the histogram color to 2 (red).

The values given to the parameters PTYP, BTYP and HTYP are fill area interior style. The two following figures show the available fill area interior styles:

The parameters PCOL, BCOL, HCOL are equivalent to PTYP, BTYP, HTYP, respectively , but instead of changing the hatch style, they change the color of the same areas.

If PCOL, BCOL, HCOL are between 1 and 99, then only the contour of the corresponding area is changed. If they are between 1001 and 1099, then the surface is filled with the corresponding fill area color index.

It is possible to specify with one SET command both the border and the inside color for the Histogram, Box Page, and Function ( HCOL, BCOL, PCOL, FCOL).
Example:

                    +---- 1 The Histogram is filled
                    |     0 Only the border is drawn
                    |+--- Border color (here 2) if the histogram is filled
                    ||++- Inside color (here 3) if the histogram is filled
                    ||||  Border color if the histogram is not filled
                    ||||
                    VVVV
           SET HCOL 1203.
       
The same mechanism is also available for FCOL, BCOL and PCOL.

In addition, BCOL has two digits after the dot. The first one specifies the color of the zone box shadowing and the second the color of the statistic box shadowing.

See also the FAQ: How to define the color map for the option COLZ of HISTO/PLOT ?


Release NotesKnown bugsFAQsContributionsTutorialReference manualDown loadMiscellaneous

Paw.Support@cern.ch