how do I change polar plots visual characteristics?

4 次查看(过去 30 天)
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
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