[Met_help] [rt.rap.ucar.edu #92116] History for degree symbol in Y1 label

Tatiana Burek via RT met_help at ucar.edu
Mon Sep 23 11:21:22 MDT 2019


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Hi,

Is there a way I can include the degree symbol in the Y1 label on 
METviewer?  For instance, I would like to have the following:

oF

instead of just F or oF.  But I can't figure out how to change the o as 
a superscript, if I do the latter.  I tried copying and pasting the 
above, but that did not work either.

Thanks,

Annette



----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: degree symbol in Y1 label
From: John Halley Gotway
Time: Wed Sep 18 14:53:06 2019

Hello Annette,

We've asked Tatiana Burek, the main developer of METviewer, to take a
look
at this issue.  But she's out of town through Friday, 9/20.  So I did
some
testing myself and wasn't able to get the superscripts to work either.

I did some googling and found that it's handled in R using the
"expression()" function.  For example, if you run R on the command
line and
make a plot, you do get a superscript:

*R*
*plot(rnorm(30), xlab = expression('Temp '^o*'F')) *

But the Y1 label entry from the METviewer GUI is passed directly to
the
plotting function and not wrapped in a call to expression.

There is a way you can insert commands directly into the Rscript via
the
METviewer GUI.  On the "Formatting" tab there is a box labelled "Plot
Script Commands".  Setting that to the following:
  mtext(expression('Temp '^o*'F'), side=2)
Adds the label with the superscript but its not oriented in the right
direction.

We'll need to ask Tatiana about the prospect of updating METviewer to
wrap
all labels with a call to "expression".

Thanks,
John

On Tue, Sep 17, 2019 at 8:48 AM Annette Gibbs via RT
<met_help at ucar.edu>
wrote:

>
> Tue Sep 17 08:48:46 2019: Request 92116 was acted upon.
> Transaction: Ticket created by annette.gibbs at noaa.gov
>        Queue: met_help
>      Subject: degree symbol in Y1 label
>        Owner: Nobody
>   Requestors: annette.gibbs at noaa.gov
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92116 >
>
>
> Hi,
>
> Is there a way I can include the degree symbol in the Y1 label on
> METviewer?  For instance, I would like to have the following:
>
> oF
>
> instead of just F or oF.  But I can't figure out how to change the o
as
> a superscript, if I do the latter.  I tried copying and pasting the
> above, but that did not work either.
>
> Thanks,
>
> Annette
>
>
>

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #92116] degree symbol in Y1 label
From: Annette Gibbs
Time: Wed Sep 18 15:03:31 2019

Hi John,

OK, thanks for looking into this option.  I will just use "F" for now
and if Tatiana does make the change you suggest below, please let me
know.

Thank you,

Annette

On 9/18/2019 4:53 PM, John Halley Gotway via RT wrote:
> Hello Annette,
>
> We've asked Tatiana Burek, the main developer of METviewer, to take
a look
> at this issue.  But she's out of town through Friday, 9/20.  So I
did some
> testing myself and wasn't able to get the superscripts to work
either.
>
> I did some googling and found that it's handled in R using the
> "expression()" function.  For example, if you run R on the command
line and
> make a plot, you do get a superscript:
>
> *R*
> *plot(rnorm(30), xlab = expression('Temp '^o*'F')) *
>
> But the Y1 label entry from the METviewer GUI is passed directly to
the
> plotting function and not wrapped in a call to expression.
>
> There is a way you can insert commands directly into the Rscript via
the
> METviewer GUI.  On the "Formatting" tab there is a box labelled
"Plot
> Script Commands".  Setting that to the following:
>    mtext(expression('Temp '^o*'F'), side=2)
> Adds the label with the superscript but its not oriented in the
right
> direction.
>
> We'll need to ask Tatiana about the prospect of updating METviewer
to wrap
> all labels with a call to "expression".
>
> Thanks,
> John
>
> On Tue, Sep 17, 2019 at 8:48 AM Annette Gibbs via RT
<met_help at ucar.edu>
> wrote:
>
>> Tue Sep 17 08:48:46 2019: Request 92116 was acted upon.
>> Transaction: Ticket created by annette.gibbs at noaa.gov
>>         Queue: met_help
>>       Subject: degree symbol in Y1 label
>>         Owner: Nobody
>>    Requestors: annette.gibbs at noaa.gov
>>        Status: new
>>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92116 >
>>
>>
>> Hi,
>>
>> Is there a way I can include the degree symbol in the Y1 label on
>> METviewer?  For instance, I would like to have the following:
>>
>> oF
>>
>> instead of just F or oF.  But I can't figure out how to change the
o as
>> a superscript, if I do the latter.  I tried copying and pasting the
>> above, but that did not work either.
>>
>> Thanks,
>>
>> Annette
>>
>>
>>

------------------------------------------------
Subject: degree symbol in Y1 label
From: John Halley Gotway
Time: Wed Sep 18 16:46:42 2019

Annette,

OK, I created this GitHub issue to track this feature request:
https://github.com/NCAR/METviewer/issues/153

However, we are beginning the transition from METviewer making plot in
R to
plotting with Python.  Given that change, it may be better to just
make
sure that it works in python.

I'll go ahead and resolve this ticket.  But feel free to let us know
what
other issues or questions arise.

Thanks,
John

On Wed, Sep 18, 2019 at 3:03 PM Annette Gibbs via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92116 >
>
> Hi John,
>
> OK, thanks for looking into this option.  I will just use "F" for
now
> and if Tatiana does make the change you suggest below, please let me
know.
>
> Thank you,
>
> Annette
>
> On 9/18/2019 4:53 PM, John Halley Gotway via RT wrote:
> > Hello Annette,
> >
> > We've asked Tatiana Burek, the main developer of METviewer, to
take a
> look
> > at this issue.  But she's out of town through Friday, 9/20.  So I
did
> some
> > testing myself and wasn't able to get the superscripts to work
either.
> >
> > I did some googling and found that it's handled in R using the
> > "expression()" function.  For example, if you run R on the command
line
> and
> > make a plot, you do get a superscript:
> >
> > *R*
> > *plot(rnorm(30), xlab = expression('Temp '^o*'F')) *
> >
> > But the Y1 label entry from the METviewer GUI is passed directly
to the
> > plotting function and not wrapped in a call to expression.
> >
> > There is a way you can insert commands directly into the Rscript
via the
> > METviewer GUI.  On the "Formatting" tab there is a box labelled
"Plot
> > Script Commands".  Setting that to the following:
> >    mtext(expression('Temp '^o*'F'), side=2)
> > Adds the label with the superscript but its not oriented in the
right
> > direction.
> >
> > We'll need to ask Tatiana about the prospect of updating METviewer
to
> wrap
> > all labels with a call to "expression".
> >
> > Thanks,
> > John
> >
> > On Tue, Sep 17, 2019 at 8:48 AM Annette Gibbs via RT
<met_help at ucar.edu>
> > wrote:
> >
> >> Tue Sep 17 08:48:46 2019: Request 92116 was acted upon.
> >> Transaction: Ticket created by annette.gibbs at noaa.gov
> >>         Queue: met_help
> >>       Subject: degree symbol in Y1 label
> >>         Owner: Nobody
> >>    Requestors: annette.gibbs at noaa.gov
> >>        Status: new
> >>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92116
> >
> >>
> >>
> >> Hi,
> >>
> >> Is there a way I can include the degree symbol in the Y1 label on
> >> METviewer?  For instance, I would like to have the following:
> >>
> >> oF
> >>
> >> instead of just F or oF.  But I can't figure out how to change
the o as
> >> a superscript, if I do the latter.  I tried copying and pasting
the
> >> above, but that did not work either.
> >>
> >> Thanks,
> >>
> >> Annette
> >>
> >>
> >>
>
>

------------------------------------------------
Subject: degree symbol in Y1 label
From: Tatiana Burek
Time: Mon Sep 23 10:57:09 2019

Annette,

You can include the degree symbol into the title and/or axis label as
a Unicode character.
For example
° = \U00B0
F = \U0046
To use "Temp °F" as a label for Y1 axis put
Temp  \U00B0\U0046
into Y1 label text field.
Here is the web site with  Unicode symbols:
http://www.fileformat.info/info/unicode/char/search.htm

Tatiana
On Wed Sep 18 16:46:42 2019, johnhg wrote:
> Annette,
>
> OK, I created this GitHub issue to track this feature request:
> https://github.com/NCAR/METviewer/issues/153
>
> However, we are beginning the transition from METviewer making plot
in R to
> plotting with Python.  Given that change, it may be better to just
make
> sure that it works in python.
>
> I'll go ahead and resolve this ticket.  But feel free to let us know
what
> other issues or questions arise.
>
> Thanks,
> John
>
> On Wed, Sep 18, 2019 at 3:03 PM Annette Gibbs via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92116 >
> >
> > Hi John,
> >
> > OK, thanks for looking into this option.  I will just use "F" for
now
> > and if Tatiana does make the change you suggest below, please let
me know.
> >
> > Thank you,
> >
> > Annette
> >
> > On 9/18/2019 4:53 PM, John Halley Gotway via RT wrote:
> > > Hello Annette,
> > >
> > > We've asked Tatiana Burek, the main developer of METviewer, to
take a
> > look
> > > at this issue.  But she's out of town through Friday, 9/20.  So
I did
> > some
> > > testing myself and wasn't able to get the superscripts to work
either.
> > >
> > > I did some googling and found that it's handled in R using the
> > > "expression()" function.  For example, if you run R on the
command line
> > and
> > > make a plot, you do get a superscript:
> > >
> > > *R*
> > > *plot(rnorm(30), xlab = expression('Temp '^o*'F')) *
> > >
> > > But the Y1 label entry from the METviewer GUI is passed directly
to the
> > > plotting function and not wrapped in a call to expression.
> > >
> > > There is a way you can insert commands directly into the Rscript
via the
> > > METviewer GUI.  On the "Formatting" tab there is a box labelled
"Plot
> > > Script Commands".  Setting that to the following:
> > >    mtext(expression('Temp '^o*'F'), side=2)
> > > Adds the label with the superscript but its not oriented in the
right
> > > direction.
> > >
> > > We'll need to ask Tatiana about the prospect of updating
METviewer to
> > wrap
> > > all labels with a call to "expression".
> > >
> > > Thanks,
> > > John
> > >
> > > On Tue, Sep 17, 2019 at 8:48 AM Annette Gibbs via RT
<met_help at ucar.edu>
> > > wrote:
> > >
> > >> Tue Sep 17 08:48:46 2019: Request 92116 was acted upon.
> > >> Transaction: Ticket created by annette.gibbs at noaa.gov
> > >>         Queue: met_help
> > >>       Subject: degree symbol in Y1 label
> > >>         Owner: Nobody
> > >>    Requestors: annette.gibbs at noaa.gov
> > >>        Status: new
> > >>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92116
> > >
> > >>
> > >>
> > >> Hi,
> > >>
> > >> Is there a way I can include the degree symbol in the Y1 label
on
> > >> METviewer?  For instance, I would like to have the following:
> > >>
> > >> oF
> > >>
> > >> instead of just F or oF.  But I can't figure out how to change
the o as
> > >> a superscript, if I do the latter.  I tried copying and pasting
the
> > >> above, but that did not work either.
> > >>
> > >> Thanks,
> > >>
> > >> Annette
> > >>
> > >>
> > >>
> >
> >



------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #92116] degree symbol in Y1 label
From: Annette Gibbs
Time: Mon Sep 23 11:07:17 2019

Hi Tatiana,

That's works great - thank you!

Annette

On 9/23/2019 12:57 PM, Tatiana Burek via RT wrote:
> Annette,
>
> You can include the degree symbol into the title and/or axis label
as a Unicode character.
> For example
> ° = \U00B0
> F = \U0046
> To use "Temp °F" as a label for Y1 axis put
> Temp  \U00B0\U0046
> into Y1 label text field.
> Here is the web site with  Unicode symbols:
> http://www.fileformat.info/info/unicode/char/search.htm
>
> Tatiana
> On Wed Sep 18 16:46:42 2019, johnhg wrote:
>> Annette,
>>
>> OK, I created this GitHub issue to track this feature request:
>> https://github.com/NCAR/METviewer/issues/153
>>
>> However, we are beginning the transition from METviewer making plot
in R to
>> plotting with Python.  Given that change, it may be better to just
make
>> sure that it works in python.
>>
>> I'll go ahead and resolve this ticket.  But feel free to let us
know what
>> other issues or questions arise.
>>
>> Thanks,
>> John
>>
>> On Wed, Sep 18, 2019 at 3:03 PM Annette Gibbs via RT
<met_help at ucar.edu>
>> wrote:
>>
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92116 >
>>>
>>> Hi John,
>>>
>>> OK, thanks for looking into this option.  I will just use "F" for
now
>>> and if Tatiana does make the change you suggest below, please let
me know.
>>>
>>> Thank you,
>>>
>>> Annette
>>>
>>> On 9/18/2019 4:53 PM, John Halley Gotway via RT wrote:
>>>> Hello Annette,
>>>>
>>>> We've asked Tatiana Burek, the main developer of METviewer, to
take a
>>> look
>>>> at this issue.  But she's out of town through Friday, 9/20.  So I
did
>>> some
>>>> testing myself and wasn't able to get the superscripts to work
either.
>>>>
>>>> I did some googling and found that it's handled in R using the
>>>> "expression()" function.  For example, if you run R on the
command line
>>> and
>>>> make a plot, you do get a superscript:
>>>>
>>>> *R*
>>>> *plot(rnorm(30), xlab = expression('Temp '^o*'F')) *
>>>>
>>>> But the Y1 label entry from the METviewer GUI is passed directly
to the
>>>> plotting function and not wrapped in a call to expression.
>>>>
>>>> There is a way you can insert commands directly into the Rscript
via the
>>>> METviewer GUI.  On the "Formatting" tab there is a box labelled
"Plot
>>>> Script Commands".  Setting that to the following:
>>>>     mtext(expression('Temp '^o*'F'), side=2)
>>>> Adds the label with the superscript but its not oriented in the
right
>>>> direction.
>>>>
>>>> We'll need to ask Tatiana about the prospect of updating
METviewer to
>>> wrap
>>>> all labels with a call to "expression".
>>>>
>>>> Thanks,
>>>> John
>>>>
>>>> On Tue, Sep 17, 2019 at 8:48 AM Annette Gibbs via RT
<met_help at ucar.edu>
>>>> wrote:
>>>>
>>>>> Tue Sep 17 08:48:46 2019: Request 92116 was acted upon.
>>>>> Transaction: Ticket created by annette.gibbs at noaa.gov
>>>>>          Queue: met_help
>>>>>        Subject: degree symbol in Y1 label
>>>>>          Owner: Nobody
>>>>>     Requestors: annette.gibbs at noaa.gov
>>>>>         Status: new
>>>>>    Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=92116
>>>>>
>>>>> Hi,
>>>>>
>>>>> Is there a way I can include the degree symbol in the Y1 label
on
>>>>> METviewer?  For instance, I would like to have the following:
>>>>>
>>>>> oF
>>>>>
>>>>> instead of just F or oF.  But I can't figure out how to change
the o as
>>>>> a superscript, if I do the latter.  I tried copying and pasting
the
>>>>> above, but that did not work either.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Annette
>>>>>
>>>>>
>>>>>
>>>
>
>

------------------------------------------------


More information about the Met_help mailing list