Menu

#461 unset an option with or without additional parameters

open
nobody
None
5
2017-05-10
2017-05-10
No

While preparing and debugging a plot file for gnuplot, it is often convenient to “unset” some options which may contain additional parameters. However, adding the “un” prefix to the “set” command returns an error, due to the presence of these additional parameters. This forces the user to insert, for example, a comment sign “#” to avoid the error.

For example, if a gnuplot file has the following line:

set border 15 linetype -1 linewidth 0.5

and, at a certain moment, the user wants to unset the borders, it would be much simpler to modify that line to

unset border 15 linetype -1 linewidth 0.5

instead to write

unset border # 15 linetype -1 linewidth 0.5

To sum up, the “unset” command should unset the option, irrespective of any other parameters that could follow that option.

Best regards.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.