how do I change polar plots visual characteristics?

2 Ansichten (letzte 30 Tage)
Tiberius
Tiberius am 10 Mai 2014
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 Kommentare
dpb
dpb am 10 Mai 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 am 11 Mai 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.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

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

Kategorien

Mehr zu Polar Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by