Overriding Built-in Driver Defaults
- Last UpdatedFeb 08, 2023
- 1 minute read
The PLOTDRIVERS file can also provide a method for changing the default options of built-in drivers. This only applies when the driver is used directly. It does not affect its use when used from a soft driver.
To change the default options of a built-in driver the usual soft driver definition is used. However, both of the driver names are set to the built-in driver name.
For example syntax:
screen|screen|RGB 0 0 0.2 0.2
This definition changes the background colour when the screen driver is used with the plot command. Defaults defined in this way can be modified by command line options.
The SCREEN and PNG drivers now have PDMS colours set as default using this mechanism and the standard PLOTDRIVERS file. The previous colours can be restored by deleting or commenting-out the screen|screen|¼ and png|png|¼ definitions in that file.