|
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
|