[ncl-talk] NCL sub and superscript

Marston Johnston shejo284 at gmail.com
Tue May 16 02:38:38 MDT 2017


Hi Karin!

 

I never got Alan’s answer. 

It didn’t show up in my junk email box either. Strange.

Ok, I’ll give it a try see it works.

 

/M

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Marston S. Johnston, PhD

Department of Earth Sciences

University of Gothenburg, Sweden

Email: marston.johnston at gu.se

SkypeID: marston.johnston 

Phone: +46-31-7864901 

Only the fruitful thing is true!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

 

From: <ncl-talk-bounces at ucar.edu> on behalf of Karin Meier-Fleischer <meier-fleischer at dkrz.de>
Organization: DKRZ
Reply-To: <meier-fleischer at dkrz.de>
Date: Tuesday, 16 May 2017 at 10:36
To: <ncl-talk at ucar.edu>
Subject: Re: [ncl-talk] NCL sub and superscript

 

Hi Marston,

Alan already gave the correct answer:

https://www.ncl.ucar.edu/Document/Graphics/function_code.shtml#CoordDefinition

 

​~H-1Q~ will move the cursor backwards 1 space so "~F8~D~N~T~B~B~N~~S~~H-1Q~A~N~ [K]" will do what you want. 

 

You can combine the character codes but I'm not sure if that makes things clearer so won't bother here. 

 

Alan.

Bye,
Karin

 

Am 16.05.17 um 09:42 schrieb Marston Johnston:

Hi Beáta,

 

Thanks for the response but your solution makes “A” the superscript of B. 
I would like to have “B” the subscript to “T” and “A” the superscript to “T” and with A directly above B and not shifted. 

 

Best,

/M

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Marston S. Johnston, PhD

Department of Earth Sciences

University of Gothenburg, Sweden

Email: marston.johnston at gu.se

SkypeID: marston.johnston 

Phone: +46-31-7864901 

Only the fruitful thing is true!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

 

From: Beáta Szabó-Takács <szabo.b at czechglobe.cz>
Date: Tuesday, 16 May 2017 at 08:31
To: Marston Johnston <shejo284 at gmail.com>, NCL Talk <ncl-talk at ucar.edu>
Subject: RE: NCL sub and superscript

 

Hi Marston,

 

Try the following text: "~F8~D~N~T~B~B~S~A~N~~N~ (K)". In this text „A” will be the superscript of „B”.

I hope I could help.

Kind regards,

Beata

 

From: ncl-talk-bounces at ucar.edu [mailto:ncl-talk-bounces at ucar.edu] On Behalf Of Marston Johnston
Sent: Monday, May 15, 2017 9:20 PM
To: NCL Talk <ncl-talk at ucar.edu>
Subject: [ncl-talk] NCL sub and superscript

 

Hi,

 

I’m trying to get NCL to write a variable with both a sub and superscript of the form T_B^A, where the B is subscript and A is superscript to T.

I’ve gotten something workable with: "~F8~D~N~T~B~B~N~~S~A~N~ [K]" but in this example the A is shifted to the left by a noticeable amount.

Is there a way to have both the super and subscript to T exactly over each other?

 

Best,

/M

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Marston S. Johnston, PhD

Department of Earth Sciences

University of Gothenburg, Sweden

Email: marston.johnston at gu.se

SkypeID: marston.johnston 

Phone: +46-31-7864901 

Only the fruitful thing is true!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 




_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________ ncl-talk mailing list ncl-talk at ucar.edu List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talk 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170516/cc074673/attachment.html 


More information about the ncl-talk mailing list