how do I change polar plots visual characteristics?

조회 수: 2 (최근 30일)
Tiberius
Tiberius 2014년 5월 10일
답변: Jose Ramon Silos de Alba 2018년 12월 11일
I have my data in 2 equal matrices (a and b). I want to plot this using polar, but I want to change how it looks - increase marker size, change the marker color, put the value 90 in the center and 0 on the outside (on the circle with the greatest radius of the plot) and use a logarithmic scale (for the radius). I can do this all for the regular plot, but I just don't know how to write the variable s from polar(a,b,s) in order to specify those particular things. Thanks. I mention that I tried mmpolar contribution, it works fine for all, but I can't change the things mentioned above (it doesn't throw any error, just does nothing).
  댓글 수: 2
dpb
dpb 2014년 5월 10일
Tough...I "know nuthink" about the FEx submission, but polar plots in handle graphics are rendered on a cartesian axes object as there is no underlying polar-coordinates axes system implemented. Internally, polar converts the input data to cartesian coordinates and draws the line in that space. Hence the actual changes in plotting will have to be transformed into a set of other variables that reflect the desired characteristics--I'm guessing it might be simpler to just draw from basic principles rather than try to mung on the prepared plots in that case.
The marker color and size, etc., can be readily modified from the properties of the line via the returned handle to the line object(s) drawn; but that seems a minor detail in your overall request.
Tiberius
Tiberius 2014년 5월 11일
Hey, thanks. Can you give an example though of how to change the object handles. I don't quite get what this "handle" thing means.

댓글을 달려면 로그인하십시오.

답변 (2개)

Star Strider
Star Strider 2014년 5월 10일
The polar function is notoriously resistant to changing its parameters. Use pol2cart, plot in Cartesian coordiantes, and then make the appropriate modifications.

Jose Ramon Silos de Alba
Jose Ramon Silos de Alba 2018년 12월 11일
Try this:
figure
polaraxes
set(gca, 'ColorOrder', YourColorOrder, 'NextPlot', 'replacechildren') %Example for color order

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by