COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

hat & tilde in plot labels

• Email
• Follow

How do I use a LaTeX \hat and \tilde in a plot label?
For example, something like this:

gtext(texlabel('hat{L}:  x+y=1, tilde{L}: x-y=1'))

 0

See related articles to this posting

David Kincaid wrote:
> How do I use a LaTeX \hat and \tilde in a plot label?
> For example, something like this:
>
> gtext(texlabel('hat{L}:  x+y=1, tilde{L}: x-y=1'))

gtext('$\hat{L}: x+y=1, \tilde{L}: x-y=1$','Interpreter','latex')

--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.

 0

On Tuesday, March 9, 2010 8:20:26 PM UTC, David Kincaid wrote:
> How do I use a LaTeX \hat and \tilde in a plot label?
> For example, something like this:
>
> gtext(texlabel('hat{L}:  x+y=1, tilde{L}: x-y=1'))

In my case, I needed only the hat itself, not over some other character. It took me a while to find a working solution.

tag = regexprep( myString, '%5E','$\\widehat{\\ \\ }$','ignorecase' );
AX=plotyy(D,S, D(2:end),X, 'stairs','stairs');
set( get(AX(1),'yLabel'), 'Interpreter','LaTeX' );
set( get(AX(1),'yLabel'), 'String', tag );

The key things to note, besides the use of LaTeX's widehat command, are the double back-slashes. To typeset the hat without any character to sit on top of, the argument to the widehat command is two blank spaces, escaped with the back-slashes.

 0
Reply sorliej (1) 10/10/2012 10:03:35 PM

2 Replies
1488 Views

Similar Articles

12/7/2013 6:44:42 AM
page loaded in 4623 ms. (0)

Similar Artilces:

openssl on Red Hat not installed
So I'm one of the unlucky ones that don't have openssl properly installed in ruby. I am running red hat. Some info: `require': no such file to load -- openssl (LoadError) [root@lnn607 ~]# rpm -qa|grep -i openssl pyOpenSSL-0.6-1.p23 xmlsec1-openssl-1.2.6-3 openssl-0.9.7a-43.14 I tried to install all kinds veriations of package names with yum, such as libopenssl, openssl-src, ruby-openssl, ruby-libopenssl etc etc, nut couldnt find any. I then downloaded the libopenssl-ruby source files (which actually are for debian i think) and copied the .rb files into /usr/local/lib/ruby/1.8... the necessary C header files for Ruby to link against the Openssl libs. Hope that helps, UG --- Uma Geller http://umageller.wordpress.com Hueen Hueen �rta: > So I'm one of the unlucky ones that don't have openssl properly > installed in ruby. I am running red hat. Some info: > I have a similar problem on my Ubuntu Dapper box: >> require 'openssl' => false despite I have all the ruby libs and libssl stuff installed. Szab > I have a similar problem on my Ubuntu Dapper box: > >> require 'openssl' > =>

http://blogs.zdnet.com/open-source/index.php?p=275 http://blogs.zdnet.com/BTL/?p=1369 One of the blogs mentioned that Microsoft CEO Steve Ballmer recently dined with Red Hat CEO Matthew Szulik. That alone is interesting, if true, even if it had nothing to do with MS buying RH. There's also a discussion about it at Slashdot: http://linux.slashdot.org/article.pl?sid=05/05/16/1758249&from=rss On Mon, 16 May 2005 17:01:41 -0500, Buford wrote: > http://blogs.zdnet.com/open-source/index.php?p=275 > > http://blogs.zdnet.com/BTL/?p=1369 > > One of the blogs mentioned that Microsoft CEO Steve Ballmer recently dined > with Red Hat CEO Matthew Szulik. That alone is interesting, if true, even > if it had nothing to do with MS buying RH. > > There's also a discussion about it at Slashdot: > > http://linux.slashdot.org/article.pl?sid=05/05/16/1758249&from=rss Hopefully it wouldn't get by the FTC. -- Rick Buford wrote: > http://blogs.zdnet.com/open-source/index.php?p=275 > > http://blogs.zdnet.com/BTL/?p=1369 > > One of the blogs mentioned that Microsoft CEO Steve Ballmer recently dined > with Red Hat CEO

text on graph B hat
I am curious if it is possible to add Bhat to text to a graph Thanks

Red Hat on patent FUD
of the FFII is sure to publicise information which suggests that Red Hat is not or was not serious about ending software patents. People should not let them off the hook so easily. - -- ~~ Best of wishes Roy S. Schestowitz | No Makefile, no business http://Schestowitz.com | GNU is Not UNIX | PGP-Key: 0x74572E8E http://iuron.com - proposing a non-profit search engine -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAknEtYwACgkQU4xAY3RXLo6e5ACeP0ZrestDAJ5VAshbB0GNR3ew kQsAn34CcW8PYczUOkXf7tLefHVV/2K1 =O9zz -----END PGP SIGNATURE...://www.press.redhat.com/2009/03/17/discouraging-software-patent-lawsuits/ > > It's not really FUD. > > The former head of the FFII is sure to publicise information which suggests > that Red Hat is not or was not serious about ending software patents. People > should not let them off the hook so easily. I enjoyed Pieter's comments on BN, but I am pretty confused here. What does it mean, is Redhat becoming another patent troll or am I misinterpreting this? What I recently learned from BN and especially Pieter Hintjens is that we (Europeans) are in trouble. The software

Red Hat could be a target
"Red Hat would make an attractive acquisition target for Sun Microsystems, an analyst wrote Wednesday, as the computer hardware maker tries to catch up with rivals." http://www.forbes.com/technology/feeds/general/2004/12/16/generalraleigh_2004_12_16_eng-raleigh_business_eng-raleigh_business_024124_5689880572822957851.html?partner=yahoo&referrer= Philip wrote: > "Red Hat would make an attractive acquisition target for Sun > Microsystems, an analyst wrote Wednesday, as the computer hardware maker > tries to catch up with rivals." > > http://www.forbes.com/technology/feeds/general/2004/12/16/generalraleigh_2004_12_16_eng-raleigh_business_eng-raleigh_business_024124_5689880572822957851.html?partner=yahoo&referrer= > If I was Sun, I'd be looking very seriously at Mandrake, if they're looking at all. Top home distro for years at distrowatch. Red Hat would be too expensive. SuSE just got bought. Mandrake, small in every term except where it matters, ie user base, would be significantly better a buy. In article <32eifkF3kp26cU1@individual.net>, deviance wrote: > Philip wrote: >> "Red Hat would make

uudecode for Red Hat 9.0?