|
From: Allin C. <cot...@wf...> - 2014-07-01 01:32:25
|
Is there any way you could provide a global switch to turn off the
"enhanced text" default in gnuplot 5.0? I'm afraid it's a pain to
have to guard against underscores coming out as subscript markers.
BTW, this isn't very nice:
myrtle:~$ /opt/gnuplot/bin/gnuplot
G N U P L O T
Version 5.0 patchlevel rc1 last modified 2014-06-24
Copyright (C) 1986-1993, 1998, 2004, 2007-2014
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
mailing list: gnu...@li...
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type set to 'wxt'
gnuplot> set term pngcairo noenhanced
Terminal type set to 'pngcairo'
Options are ' background "#ffffff" enhanced fontscale 1.0 size 640, 480 '
gnuplot> set termoption noenhanced
gnuplot> show term
terminal type is pngcairo background "#ffffff" enhanced
fontscale 1.0 size 640, 480
After the "set termoption" command, at least, it seems that
"enhanced" is in fact turned off, but that's not what's shown. The
guest that won't leave!
--
Allin Cottrell
Department of Economics
Wake Forest University
|
|
From: Daniel J S. <dan...@ie...> - 2014-07-01 01:45:25
|
On 06/30/2014 08:32 PM, Allin Cottrell wrote: > Is there any way you could provide a global switch to turn off the > "enhanced text" default in gnuplot 5.0? I'm afraid it's a pain to > have to guard against underscores coming out as subscript markers. Allin, You may set whatever parameters you like via the startup script. See "help startup". > BTW, this isn't very nice: > > myrtle:~$ /opt/gnuplot/bin/gnuplot > > G N U P L O T > Version 5.0 patchlevel rc1 last modified 2014-06-24 > > Copyright (C) 1986-1993, 1998, 2004, 2007-2014 > Thomas Williams, Colin Kelley and many others > > gnuplot home: http://www.gnuplot.info > mailing list: gnu...@li... > faq, bugs, etc: type "help FAQ" > immediate help: type "help" (plot window: hit 'h') > > Terminal type set to 'wxt' > gnuplot> set term pngcairo noenhanced > Terminal type set to 'pngcairo' > Options are ' background "#ffffff" enhanced fontscale 1.0 size 640, 480 ' > gnuplot> set termoption noenhanced > gnuplot> show term > > terminal type is pngcairo background "#ffffff" enhanced > fontscale 1.0 size 640, 480 > > After the "set termoption" command, at least, it seems that > "enhanced" is in fact turned off, but that's not what's shown. The > guest that won't leave! Looks like a bug in pngcairo terminal, shouldn't be too difficult to come up with a patch file. The "noenhanced" setting/display works here on x11 and on qt. I would say there is some inconsistency the way this info is displayed. For example, for x11 enhanced is "enhanced" and noenhanced is absence of "enhanced" while for qt enhanced is absence of "noenhanced" and noenhanced is "noenhanced". I.e.: gnuplot> set term x11 Terminal type set to 'x11' Options are ' nopersist enhanced' gnuplot> set term x11 noenhanced Terminal type set to 'x11' Options are ' nopersist' gnuplot> set term qt Terminal type set to 'qt' Options are '0 font "Sans,9"' gnuplot> set term qt noenhanced Terminal type set to 'qt' Options are '0 noenhanced font "Sans,9"' Not that important. Not that confusing. Just consistency. Dan |
|
From: Allin C. <cot...@wf...> - 2014-07-01 02:08:43
|
On Mon, 30 Jun 2014, Daniel J Sebald wrote: > On 06/30/2014 08:32 PM, Allin Cottrell wrote: >> Is there any way you could provide a global switch to turn off the >> "enhanced text" default in gnuplot 5.0? I'm afraid it's a pain to >> have to guard against underscores coming out as subscript markers. > > Allin, > > You may set whatever parameters you like via the startup script. See > "help startup". Thanks, that does indeed do the trick. Sorry I missed it. Allin Cottrell |
|
From: Daniel J S. <dan...@ie...> - 2014-07-01 02:07:34
|
On 06/30/2014 08:45 PM, Daniel J Sebald wrote: > On 06/30/2014 08:32 PM, Allin Cottrell wrote: >> Is there any way you could provide a global switch to turn off the >> "enhanced text" default in gnuplot 5.0? I'm afraid it's a pain to >> have to guard against underscores coming out as subscript markers. > > Allin, > > You may set whatever parameters you like via the startup script. See > "help startup". I guess I should give an example seeing as you used "set termoption" to change the value. Place the following in a startup script: set term pngcairo noenhanced set term qt noenhanced set term wxt noenhanced The terminal options are persistent across changes. I suppose if one expects to use a lot of terminals, then the list gets long, but there's no typing upon startup so not cumbersome. Maybe a global option somehow would be good, but if I recall correctly there never was any consistency of options across terminals. Each terminal can have it's unique options. Dan |
|
From: Allin C. <cot...@wf...> - 2014-07-01 02:37:32
|
On Mon, 30 Jun 2014, Daniel J Sebald wrote:
> On 06/30/2014 08:45 PM, Daniel J Sebald wrote:
>> On 06/30/2014 08:32 PM, Allin Cottrell wrote:
>>> Is there any way you could provide a global switch to turn off the
>>> "enhanced text" default in gnuplot 5.0? I'm afraid it's a pain to
>>> have to guard against underscores coming out as subscript markers.
>>
>> Allin,
>>
>> You may set whatever parameters you like via the startup script. See
>> "help startup".
>
> I guess I should give an example seeing as you used "set termoption" to
> change the value. Place the following in a startup script:
>
> set term pngcairo noenhanced
> set term qt noenhanced
> set term wxt noenhanced
Thanks. I tried just putting
set termoption noenhanced
into ~/.gnuplot. This works OK for wxt but not for pngcairo,
although oddly enough it suppresses the printing of "enhanced" in
"show term":
<gnuplot-startup>
Terminal type set to 'wxt'
gnuplot> show term
terminal type is wxt 0 noenhanced
gnuplot> set term pngcairo
Terminal type set to 'pngcairo'
Options are ' background "#ffffff" fontscale 1.0 size 640, 480 '
</gnuplot>
No "enhanced" shown for pngcairo (as in my previous post) but
underscores become subscripts all the same.
Actually, although the start-up file approach is certainly useful it
doesn't fully meet the case I'm thinking of. That way I can tweak
the appearance of gnuplot for myself, but not necessarily for other
users of "my" econometric software that uses gnuplot as plotting
engine: I wouldn't want to trample on a ~/.gnuplot file they might
already have, whereas I'd be fine with setting a per-session global
preference if it were available.
Allin Cottrell
|
|
From: Daniel J S. <dan...@ie...> - 2014-07-01 04:07:35
|
On 06/30/2014 09:30 PM, Allin Cottrell wrote:
> On Mon, 30 Jun 2014, Daniel J Sebald wrote:
>
>> On 06/30/2014 08:45 PM, Daniel J Sebald wrote:
>>> On 06/30/2014 08:32 PM, Allin Cottrell wrote:
>>>> Is there any way you could provide a global switch to turn off the
>>>> "enhanced text" default in gnuplot 5.0? I'm afraid it's a pain to
>>>> have to guard against underscores coming out as subscript markers.
>>>
>>> Allin,
>>>
>>> You may set whatever parameters you like via the startup script. See
>>> "help startup".
>>
>> I guess I should give an example seeing as you used "set termoption" to
>> change the value. Place the following in a startup script:
>>
>> set term pngcairo noenhanced
>> set term qt noenhanced
>> set term wxt noenhanced
>
> Thanks. I tried just putting
>
> set termoption noenhanced
>
> into ~/.gnuplot. This works OK for wxt but not for pngcairo,
Yes, "set termoption" only works for the current terminal. It is not a
global setting.
> although
> oddly enough it suppresses the printing of "enhanced" in "show term":
>
> <gnuplot-startup>
> Terminal type set to 'wxt'
> gnuplot> show term
>
> terminal type is wxt 0 noenhanced
>
> gnuplot> set term pngcairo
> Terminal type set to 'pngcairo'
> Options are ' background "#ffffff" fontscale 1.0 size 640, 480 '
> </gnuplot>
>
> No "enhanced" shown for pngcairo (as in my previous post) but
> underscores become subscripts all the same.
>
> Actually, although the start-up file approach is certainly useful it
> doesn't fully meet the case I'm thinking of. That way I can tweak the
> appearance of gnuplot for myself, but not necessarily for other users of
> "my" econometric software that uses gnuplot as plotting engine: I
> wouldn't want to trample on a ~/.gnuplot file they might already have,
> whereas I'd be fine with setting a per-session global preference if it
> were available.
I don't see what the problem is with asking the user to change their
settings to "noenhanced". (What if they want enhanced?) There might be
another approach. Try
gnuplot> set term push
pushed terminal qt 0 font "Sans,9"
gnuplot> set termoption noenhanced
gnuplot> show term
terminal type is qt 0 noenhanced font "Sans,9"
gnuplot> set term pop
restored terminal is qt 0 font "Sans,9"
Dan
|
|
From: Allin C. <cot...@wf...> - 2014-07-01 03:11:03
|
On Mon, 30 Jun 2014, Daniel J Sebald wrote: > On 06/30/2014 09:30 PM, Allin Cottrell wrote: >> On Mon, 30 Jun 2014, Daniel J Sebald wrote: >> >>> On 06/30/2014 08:45 PM, Daniel J Sebald wrote: >>>> On 06/30/2014 08:32 PM, Allin Cottrell wrote: >>>>> Is there any way you could provide a global switch to turn off the >>>>> "enhanced text" default in gnuplot 5.0? I'm afraid it's a pain to >>>>> have to guard against underscores coming out as subscript markers. >>>> >>>> Allin, >>>> >>>> You may set whatever parameters you like via the startup script. See >>>> "help startup". >>> >>> I guess I should give an example seeing as you used "set termoption" to >>> change the value. Place the following in a startup script: >>> >>> set term pngcairo noenhanced >>> set term qt noenhanced >>> set term wxt noenhanced >> >> Thanks. I tried just putting >> >> set termoption noenhanced >> >> into ~/.gnuplot. This works OK for wxt but not for pngcairo, > > Yes, "set termoption" only works for the current terminal. It is not a > global setting. OK, fair enough. Though it does seem to be having _some_ quasi-global effect, in that it influences what the cairo terminal prints in reponse to "show term"... >> although >> oddly enough it suppresses the printing of "enhanced" in "show term": >> >> <gnuplot-startup> >> Terminal type set to 'wxt' >> gnuplot> show term >> >> terminal type is wxt 0 noenhanced >> >> gnuplot> set term pngcairo >> Terminal type set to 'pngcairo' >> Options are ' background "#ffffff" fontscale 1.0 size 640, 480 ' >> </gnuplot> >> >> No "enhanced" shown for pngcairo (as in my previous post) but >> underscores become subscripts all the same. >> >> Actually, although the start-up file approach is certainly useful it >> doesn't fully meet the case I'm thinking of. That way I can tweak the >> appearance of gnuplot for myself, but not necessarily for other users of >> "my" econometric software that uses gnuplot as plotting engine: I >> wouldn't want to trample on a ~/.gnuplot file they might already have, >> whereas I'd be fine with setting a per-session global preference if it >> were available. > > I don't see what the problem is with asking the user to change their settings > to "noenhanced". (What if they want enhanced?) It's not really a matter of preference: I'm thinking of, for example, printing the name of a variable which includes one or more underscores in a key, title or label of some sort. It's just broken if that turns into a subscript. Allin Cottrell |
|
From: Daniel J S. <dan...@ie...> - 2014-07-01 03:36:45
|
On 06/30/2014 10:10 PM, Allin Cottrell wrote: > On Mon, 30 Jun 2014, Daniel J Sebald wrote: [snip] >> I don't see what the problem is with asking the user to change their >> settings to "noenhanced". (What if they want enhanced?) > > It's not really a matter of preference: I'm thinking of, for example, > printing the name of a variable which includes one or more underscores > in a key, title or label of some sort. It's just broken if that turns > into a subscript. gnuplot> help enhanced [snip] This mode is selected by default when you set the terminal, but may be toggled afterward using "set termoption [no]enhanced", or by marking individual strings as in "set label 'x_2' noenhanced". Something I didn't know about. It works here. Dan |