>
> From: Ethan A Merritt <merritt@...>
> Date: 2005/10/09 Sun PM 04:09:21 EDT
> To: gnuplot-beta@...
> CC: Petr Mikulik <mikulik@...>
> Subject: Re: set term x11 -1
>
> On Sunday 09 October 2005 02:48 am, Petr Mikulik wrote:
> > "help x11" says:
> >
> > Multiple plot windows are supported: `set terminal x11 <n>` directs
> > the output to plot window number n. If n>0, the terminal number will be
> > appended to the window title (unless a title has been supplied manually)
> > and the icon will be labeled `Gnuplot <n>`.
> >
> > However, "set term x11 -1" titles the window "Gnuplot -1". Is this bug
> > in gnuplot_x11, or in the docs?
>
> Is there any reason to allow negative terminal numbers in the first place?
>
> Neither x11.trm nor gplt_x11.c appears to use the number for anything
> other than an arbitrary ID tag.
It is an arbitrary tag. I know I specifically thought at one point "oh, leave the negative value possible" for some reason. Can't remember why now, naturally. I was probably asking at the time "should there be a window #0 or should it start at #1". I didn't want to put more thought into that because people hadn't seen the new number scheme yet, so why get into a hypothetical discussion back then?
Restricting the sign shouldn't pose any problems and might be less confusing. Or change the docs to be "n not equal 0". It's up to list consensus.
Dan
|