comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Putting an overbar on text in a plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Putting an overbar on text in a plot [message #82707] Mon, 14 January 2013 11:23 Go to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Monday, January 14, 2013 11:29:28 AM UTC-7, Craig Markwardt wrote:
> On Monday, January 14, 2013 4:58:52 AM UTC-5, lj...@fsmail.net wrote:
>
>> Hi all.
>
>>
>
>>
>
>>
>
>> Does anyone know of a good way to write text with an overbar covering more than one letter? For example, for an overbar over one letter 'A' I have been using the command !sA!r!a-!n. What should I do for a single overbar over two letters 'AB'?
>
>>
>
>>
>
>>
>
>> I have tried !sAB!r!a-!n and !sAB!r!a--!n, but none give me what I want. Does anyone have any ideas???
>
>
>
> Instead of shifting the bar "up" with !A, shift the text down with !B. Then you can use the underscore character to make a smooth line.
>
>
>
> Like this: '!S!BAB!R!A__!N'
>
>
>
>
>
> Craig

The !9 math font also has an "overbar" character:

p = plot(/test, TITLE='My Data !9`!S``!R!XAB')

That overbar character (the "`" character) is shifted a bit to the right, which is why you need to put one down first, then save the position, then put down a few more to cover your characters.

Cheers,
Chris
ExelisVIS
Re: Putting an overbar on text in a plot [message #82710 is a reply to message #82707] Mon, 14 January 2013 10:29 Go to previous messageGo to next message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Monday, January 14, 2013 4:58:52 AM UTC-5, lj...@fsmail.net wrote:
> Hi all.
>
>
>
> Does anyone know of a good way to write text with an overbar covering more than one letter? For example, for an overbar over one letter 'A' I have been using the command !sA!r!a-!n. What should I do for a single overbar over two letters 'AB'?
>
>
>
> I have tried !sAB!r!a-!n and !sAB!r!a--!n, but none give me what I want. Does anyone have any ideas???

Instead of shifting the bar "up" with !A, shift the text down with !B. Then you can use the underscore character to make a smooth line.

Like this: '!S!BAB!R!A__!N'


Craig
Re: Putting an overbar on text in a plot [message #82829 is a reply to message #82707] Tue, 15 January 2013 12:59 Go to previous message
Sir Loin Steak is currently offline  Sir Loin Steak
Messages: 42
Registered: January 2012
Member
On Monday, January 14, 2013 7:23:05 PM UTC, Chris Torrence wrote:
> On Monday, January 14, 2013 11:29:28 AM UTC-7, Craig Markwardt wrote:
>
>> On Monday, January 14, 2013 4:58:52 AM UTC-5, lj...@fsmail.net wrote:
>
>>
>
>>> Hi all.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Does anyone know of a good way to write text with an overbar covering more than one letter? For example, for an overbar over one letter 'A' I have been using the command !sA!r!a-!n. What should I do for a single overbar over two letters 'AB'?
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> I have tried !sAB!r!a-!n and !sAB!r!a--!n, but none give me what I want. Does anyone have any ideas???
>
>>
>
>>
>
>>
>
>> Instead of shifting the bar "up" with !A, shift the text down with !B. Then you can use the underscore character to make a smooth line.
>
>>
>
>>
>
>>
>
>> Like this: '!S!BAB!R!A__!N'
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> Craig
>
>
>
> The !9 math font also has an "overbar" character:
>
>
>
> p = plot(/test, TITLE='My Data !9`!S``!R!XAB')
>
>
>
> That overbar character (the "`" character) is shifted a bit to the right, which is why you need to put one down first, then save the position, then put down a few more to cover your characters.
>
>
>
> Cheers,
>
> Chris
>
> ExelisVIS

Thanks for the help everyone. I've tried using the !9 math font, but it doesn't seem to work - all it does is produce the '' symbols! And after checking the mathfont symbols (as shown at http://www.idlcoyote.com/graphics_tips/lesign.php) I can't see this overbar character listed anywhere???

Cheers,

Liam
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Missing fill colours in contour plot
Next Topic: Re: IDL command line access from inside a widget?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:05:50 PDT 2025

Total time taken to generate the page: 0.00570 seconds