ploticus: proc settings

## proc settings | Welcome Gallery Handbook |
| Manual page for proc_settings(PL)

Allows the script programmer to make certain overall settings.`` Many scripts will not need to use this proc; it may be useful to set a default date or number display notation, to set overall date processing behavior attributes, or to set certain system resource attributes.`` proc settings may be used more than once per script if desired.`` The settings take effect immediately.`` Many (but not all) of these settings can be also made using a config file , and some can be made on the pl command line.`` Presidence (from highest to lowest) is: proc settings, command line, config file.``

Note: this proc was previously called proc datesettings.`` It has been renamed because its functionality has been expanded.`` For backward compatibility, the dateformat attribute may be addressed using its old name: format.``

## EXAMPLES

See the gallery example settingsdemo

## ATTRIBUTES

units: `in` | `cm`

  The measurement unit to be used for absolute units, either inches or centimeters.`` Default is `in`.`` If this is set in the config file, it will be in effect when command line arguments are evaluated. If set in proc settings, it will not have any effect on command line argument evaluation.``
  Example: `units: cm`

numbernotation: `standard` | `us` | `euro`

  Specifies how decimal point and thousands separators will be displayed. Default is `standard`.`` The following table illustrates:

       standard           us             euro
      ----------    ------------    -------------
           79              79               79
           79.5            79.5             79,5
         4321.79         4321.79          4321,79
        54321          54,321           54.321
       654321.07      654,321.07       654.321,07
      1987654321    1,987,654,321    1.987.654.321

numberspacerthreshold: n

  Specifies at what numeric magnitude thousands separators will begin to be inserted.`` Default is 4, and this is used in the above table. If it were set to `3`, the third entry in the above table would appear like this:

         4321.79         4,321.79          4.321,79

font fontname

  Make fontname the default font. For more information see fonts.``

## SVG / XML SETTINGS

xml_declaration `yes | no`

  By default the first line of the SVG result will be the XML declaration `<?xml .. >` .`` Use `no` to suppress the XML declaration line if the SVG result is to be embedded into a larger XML document.`` This may also be done using the `-omit_xml_declaration` command line argument.``

xml_encoding method

  This may be used to set the XML character encoding method. It has no effect when `xml_declaration` is `no`.`` The default is `iso-8859-1` which provides Latin and Western European character sets.`` For Unicode fonts this should be set to `utf-8` (for more discussion see the Unicode section in fonts ). Equivalent to the `-xml_encoding` command line argument.``

## SYSTEM ENVIRONMENT

cpulimit:

  Number of seconds of CPU time that will be allowed to the pl process or any spawned subprocesses. Default is 10 seconds.`` Any process exceeding this will abort.``

filesizelimit: [DISCONTINUED]

  This attribute no longer does anything. It turned out to be more of a problem than a benefit.``

## DATE-RELATED

dateformat: format

  Set the current date format.`` format must be a date format from the dates manual page that includes month, day, and year, for which arithmetic is supported.`` To use other arithmetic date formats (such as quarter notation) specify the format in the proc areadef xscaletype or yscaletype attribute.``
  Example: `dateformat: dd-mmm-yyyy`

omitweekends `omit` | `adjust` | `yes` | `no`

  Allows date plotting as if Saturdays and Sundays did not exist.`` Mondays will follow Fridays directly. Useful in certain business and work-related plots.``
  If `omit`, any Saturday or Sunday dates encountered will be considered invalid and omitted; however they will not be reported unless the -showbad command line option is used.``
  If `adjust` or `yes`, any Saturday or Sunday dates encountered will be silently adjusted to the nearest weekday.``

pivotyear: yy

  Set the two digit year that should be used to convert two-digit years to four-digit years. If two-digit years are used, year values that are less than the pivot year are assumed to be 21st century years. Default is 77.``
  Example: `pivotyear: 50`

months: list

  Specify the three-character month abbreviations to be used, all in lower case, beginning with the first month.`` Default is the English (`jan feb mar apr may jun jul aug sep oct nov dec`).``
  Example (Spanish) (must all be on one line):
  `months: ene feb mar abr pue jun jul ago sep oct nov dic`

months.abbrev: list

  short month names, capitalized for presentation, begining with the first month.`` Default is English (`Jan Feb Mar Apr May June July Aug Sept Oct Nov Dec`).``
  Example (Spanish) (must all be on one line):
  `months.abbrev: Ene Feb Mar Abr Pue Jun Jul Ago Sep Oct Nov Dic`

months.full: list

  full month names, capitalized for presentation.``
  Example (Spanish) (must all be on one line):
  `months.full: Enero Febrero Marcha Abril Pueda Junio Julio Agosto Septiembre Octubre Noviembre Diciembre`

weekdays: list

  three-character weekday abbreviations, capitalized for presentation, beginning with Sunday.``
  Example (French): `weekdays: Dim Lun Mar Mer Jeu Ven Sam`
  Example (Spanish): `weekdays: Dom Lun Mar Mie Jue Vie Sab`

lazydates `month`|`day`|`both`

  Allow handling of dates where the day component or the month component is not known. See dates for further discussion of lazy dates.``
  data display engine
  Copyright Steve Grubb
  data display engine
  Copyright Steve Grubb

Markup created by unroff 1.0, `` `` December 10, 2002.