how do I change polar plots visual characteristics?

10 views (last 30 days)
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 Comments
dpb
dpb on 10 May 2014
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 on 11 May 2014
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.

Sign in to comment.

Answers (2)

Star Strider
Star Strider on 10 May 2014
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 on 11 Dec 2018
Try this:
figure
polaraxes
set(gca, 'ColorOrder', YourColorOrder, 'NextPlot', 'replacechildren') %Example for color order

Categories

Find more on Polar Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!