plsetopt.3plplot man page

plsetopt — Set any command-line option


int plsetopt(opt, optarg)


Set any command-line option internally from a program before it invokes plinit(3plplot). opt is the name of the command-line option and optarg is the corresponding command-line option argument.

This function returns 0 on success.

Redacted form: plsetopt(opt, optarg)

This function is used in example 14.


opt (const char *, input)

Pointer to string containing the command-line option.

optarg (const char *, input)

Pointer to string containing the argument of the command-line option.


Many developers (who are credited at have contributed to PLplot over its long history.

See Also

PLplot documentation at


August, 2015 PLplot API