From: Enrico on 25 May 2010 17:02 This does not seem to solve the problem. It replaces the labels with new labels, however the default is 30deg increments. Therefore the 45deg increment is not set. Is there a way to do 0.45.90.....? The only way I can think of is manual text placement "us " <us(a)neurol.unizh.ch> wrote in message <hi8cl7$mta$1(a)fred.mathworks.com>... > "Petra " <e.petra(a)gmx.de> wrote in message <hi87v6$q6u$1(a)fred.mathworks.com>... > > Hi, > > may be it is a stupid question. But I do not know the answer. > > Is there a way to change the " 0 45 90 180 ..." labels in a polar plot to lets say "west east north ..."? > > > > I do not know how to use the tick command for a polar plot. > > > > Thanks for your help > > one of the solutions is outlined below > - also, look at the reply to your other OP > > polar([1,2,3],[4,5,6]); > ph=findall(gca,'type','text'); > ps=get(ph,'string'); > disp([num2cell(1:numel(ps)).',ps]); > % see the content's indices... > %{ > %} > ps(1:15)={''}; > ps([1,2,3,4,5,10,11])={ > 'YLABEL' > 'XLABEL' > 'TITLE' > 'east' > 'west' > 'south' > 'north' > }; > set(ph,{'string'},ps); > ps=get(ph,'fontweight'); > ps(1:3)={'bold'}; > set(ph,{'fontweight'},ps); > ps=get(ph,'position'); > ps{1}(1)=-8; > set(ph,{'position'},ps); > > us
From: Walter Roberson on 26 May 2010 15:51 Enrico wrote: > This does not seem to solve the problem. It replaces the labels with > new labels, however the default is 30deg increments. Therefore the > 45deg increment is not set. > > Is there a way to do 0.45.90.....? > The only way I can think of is manual text placement You could compute the text placement, but Yes, you will have to text() the labels in to place. polar() has no option to change the increment of the angle labels.
|
Pages: 1 Prev: LSQLIN: issue with residual norm Next: help about segmentation! |