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

Home » Public Forums » archive » Add a Dot on top of a letter
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
Add a Dot on top of a letter [message #50856] Fri, 20 October 2006 08:32 Go to next message
Cancer is currently offline  Cancer
Messages: 4
Registered: October 2006
Junior Member
How to add a dot on top of a letter, such as "M", which means dM/dt.
Re: Add a Dot on top of a letter [message #50899 is a reply to message #50856] Wed, 25 October 2006 06:13 Go to previous messageGo to next message
jgc is currently offline  jgc
Messages: 10
Registered: July 2006
Junior Member
> sym = '!6!sM!r!u!9 %!6!n'
> XYOUTS, 0.5, 0.5, /Normal, CharSize=2.0, 'Symbol: ' + sym
>

This looks a bit more "mathematical"

IDL> xx=0.5 & yy=0.5
IDL> XYOUTS, xx,yy, /norm, 'M'
IDL> XYOUTS, xx+.005,yy+.02, /norm, '!M.!X'

then you can work out an automatic calculation of the displacement of
the dot (+.005, +.02) as a function of the character size.

hope it helps,

Javier
Re: Add a Dot on top of a letter [message #50918 is a reply to message #50856] Mon, 23 October 2006 08:08 Go to previous messageGo to next message
Cancer is currently offline  Cancer
Messages: 4
Registered: October 2006
Junior Member
Sorry about the confusion. It is on a plot. I want to display the dM /
dt as a dot on top of the letter "M"
as the X-axis title.

Braedley wrote:
> Cancer wrote:
>> How to add a dot on top of a letter, such as "M", which means dM/dt.
>
> You need to give us more information if you want help. It's difficult
> to solve a problem if you don't know the context. Is this in a plot?
> A variable?
Re: Add a Dot on top of a letter [message #50921 is a reply to message #50856] Mon, 23 October 2006 07:36 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I'm not so sure even with additional information we
> are going to be able to be that helpful. My own
> experiments have failed miserably. :-(

Unless, of course, you can live with this:

sym = '!6!sM!r!u!9 %!6!n'
XYOUTS, 0.5, 0.5, /Normal, CharSize=2.0, 'Symbol: ' + sym

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Add a Dot on top of a letter [message #50922 is a reply to message #50856] Mon, 23 October 2006 07:28 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Braedley writes:

> You need to give us more information if you want help. It's difficult
> to solve a problem if you don't know the context. Is this in a plot?
> A variable?

I'm not so sure even with additional information we
are going to be able to be that helpful. My own
experiments have failed miserably. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Add a Dot on top of a letter [message #50923 is a reply to message #50856] Mon, 23 October 2006 07:25 Go to previous messageGo to next message
Braedley is currently offline  Braedley
Messages: 57
Registered: September 2006
Member
Cancer wrote:
> How to add a dot on top of a letter, such as "M", which means dM/dt.

You need to give us more information if you want help. It's difficult
to solve a problem if you don't know the context. Is this in a plot?
A variable?
Re: Add a Dot on top of a letter [message #50965 is a reply to message #50899] Thu, 26 October 2006 07:26 Go to previous message
Cancer is currently offline  Cancer
Messages: 4
Registered: October 2006
Junior Member
I prefer David's but thank you all the same.


jgc wrote:
>> sym = '!6!sM!r!u!9 %!6!n'
>> XYOUTS, 0.5, 0.5, /Normal, CharSize=2.0, 'Symbol: ' + sym
>>
>
> This looks a bit more "mathematical"
>
> IDL> xx=0.5 & yy=0.5
> IDL> XYOUTS, xx,yy, /norm, 'M'
> IDL> XYOUTS, xx+.005,yy+.02, /norm, '!M.!X'
>
> then you can work out an automatic calculation of the displacement of
> the dot (+.005, +.02) as a function of the character size.
>
> hope it helps,
>
> Javier
Re: Add a Dot on top of a letter [message #50966 is a reply to message #50921] Thu, 26 October 2006 07:25 Go to previous message
Cancer is currently offline  Cancer
Messages: 4
Registered: October 2006
Junior Member
I think this is good enough. Thank you, David.

David Fanning wrote:
> David Fanning writes:
>
>> I'm not so sure even with additional information we
>> are going to be able to be that helpful. My own
>> experiments have failed miserably. :-(
>
> Unless, of course, you can live with this:
>
> sym = '!6!sM!r!u!9 %!6!n'
> XYOUTS, 0.5, 0.5, /Normal, CharSize=2.0, 'Symbol: ' + sym
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Suggestions for tips
Next Topic: Re: Reading in a non-rectangular array

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

Current Time: Wed Oct 08 11:51:08 PDT 2025

Total time taken to generate the page: 0.01216 seconds