[Thread Prev][Thread Next][Index]

Re: prime (') in label string?



Hello Hein,
	One way to get prime (') to show up in a label is to type it twice
('') in cases where the string IS NOT ENCLOSED in double quotes.  When the
text string IS ENCLOSED in double quotes there is some inconsistency. In
cases like the definition of a variable with a title string you can get
away with just one quote (see demo below).  But if you try just one quote
(') in a double quoted string in the LABEL command (where the double
quotes are not needed in multi-word strings) an
  Unmatched '
error message results.

I have not done an exhaustive check on all the ways in which
labels may crop up, but hopefully the following demo will cover the
situations you mostly encounter.

The reason that attempts to escape the prime (\') don't work is that
plotplus has a special meaning for the ^ _ and \ characters. Up-arrow
superscripts the next character; underscore subscripts; backslash makes
an overstrike.

Good luck, Mick
PS Plotting a just one double quote " is something I haven't figured
   out yet.

!---------------------------------------------------------------------
! Demo of prime character usage plus super, subscript and overstrike

let/title="Test's main label" v=1/i    ! two single quotes not needed
plot/set/i=1:10 v
ppl xlab,@crTest''s x-axis label       ! two single quotes will plot one
ppl plot
label/nouser 4 4.0 0 0 0.2 Test''s label via label command
label/nouser 4 3.5 0 0 0.2 "Test''s label in double quotes"
label/nouser 4 3.0 0 0 0.2 A string with ^Superscript and _Subscript
label/nouser 4 2.5 0 0 0.2 And one with v\Oerstrike
! the following results in an error message
label/nouser 4 2.0 0 0 0.2 "Test's label in double quotes"

|____Mick.Spillane@noaa.gov____|
|__Room 2070 Bldg#3 NOAA/PMEL__|
|____Phone_:_(206)526-6780_____|




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement