From: Assaf Weinstein on 15 Jun 2010 07:07 "Wayne King" <wmkingty(a)gmail.com> wrote in message <hv7jc9$lio$1(a)fred.mathworks.com>... > "Assaf Weinstein" <assafweinstein_remove.this(a)gmail.com> wrote in message <hv7gel$kt2$1(a)fred.mathworks.com>... > > Hi, > > > > I would like greek letters (\theta) to appear a a tick label; I try using XTickLabel, but cant get it to work.. Any ideas? > > > > Thank you, > > > > Assaf > > Hi Assaf, you may be interested in this file from the exchange. > > http://www.mathworks.de/matlabcentral/fileexchange/15986 > > > You can use text() with the 'Intepreter' set to 'latex'. > > text(x,y,'$\theta','Interpreter','latex') > > > Wayne Hi Wayne, Thank you! I downloaded the m-file, but can't figue out how to use the function to REPLACE (not append) a tick label with a latex string... According to the author, the input is: format_tick(h,tickx,ticky,tickposx,tickposy,rotx,roty,offset,...varargin); I use h=gca, and have a vector to specify 'tickposx' (the numerical valuse for the ticks) but don't know how to proceed.. (again, what i want is to use a list of labels which contains latex format, and that they are interpreted as latex syntax..) Thank you, Assaf
|
Pages: 1 Prev: RTW code customization Next: chemical equilibrium of a gasifier using fsolve |