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