![]() ![]() ![]() Linetype 6, linecolor rgb "#0072b2" linewidth 1.000 dashtype solid pointtype 6 pointsize default Linetype 5, linecolor rgb "#f0e442" linewidth 1.000 dashtype solid pointtype 5 pointsize default Linetype 4, linecolor rgb "#e69f00" linewidth 1.000 dashtype solid pointtype 4 pointsize default Linetype 3, linecolor rgb "#56b4e9" linewidth 1.000 dashtype solid pointtype 3 pointsize default Linetype 2, linecolor rgb "#009e73" linewidth 1.000 dashtype solid pointtype 2 pointsize default linetype 1, linecolor rgb "red" linewidth 1.000 dashtype solid pointtype 1 pointsize default (4) Run command show linetype to find out the default settings of the linetype. The save command does not write out the configuration of the linetype, it needs to be examined separately. Set fit brief errorvariables nocovariancevariables errorscaling prescale nowrap v5 Here is the case in my environment (it may be different in yours). (3) Extract the necessary settings from the contents of "t". (2) Run command save "t" to save the current settings to "t". Reset session deletes any user-defined variables and functions, restoresĭefault settings, and then re-executes the system-wide gnuplotrc initializationįile and any private $HOME/.gnuplot or $XDG_CONFIG_HOME/gnuplot/gnuplotrcĪccording to this behavior, I recommend that you write the default settings you need in the initialization file "$HOME/.gnuplot" that will be called when you do reset session. Set term set output set loadpath set linetype set fit set encoding set decimalsign set locale set psdir set overflow set multiplotĪnd, help reset session mentions also like this, I don't think the hard reset you mention is provided by gnuplot.Īs your example shows, it seems to be difficult to do an exact reset with the reset session.Īs a workaround, you might try the following method using an initialization script. I want some way of restoring gnuplot to exactly the state it starts in. Note that the terminal type is just one example of a number of things that linger after the reset commands. Here by 'default' I mean whatever terminal loads up when it starts, in my case qt. The following minimal script illustrates an example of the problem: After running both the reset and reset session commands the terminal is not reset to whatever the default is. ![]() My current solution is to manually restart gnuplot, which is a bit annoying. ![]() If I run one of the more "specific" scripts before I run one of the "default" scripts many of the "specific" settings are applied to the "default" plot, even when each script begins with a reset session command. For some of those plots I want to simply use default options, while for others I prefer to be more specific. Note that the solution to how to completely reset gnuplot? is not sufficient for my purposes.įor context, the problem I am having is that I often use the same terminal session to execute many different gnuplot scripts to make many different plots. The commands reset or reset session ( ) are not sufficient, since some options that were set before linger after either command (e.g., set term, set output. I would like a way to completely reset a gnuplot session from within gnuplot exactly equivalent to exiting and restarting. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |