Scatter polar plot in matlab

Mike Nelson

I'm trying to do a wedge plot (right ascension vs redshift). I was thinking I could use a scatter plot in polar coordinates. The polar function in matlab seems very limited. Even this

polar(a(:,1),a(:,2),'Linewidth',1)

gives me an error:

Error using polar (line 23)
Too many input arguments.

Is there a simple way to achieve what I want using Matlab? Do you know of another software that would do it easily?

Thanks,

Mike

Luis Mendo

Matlab is quite adequate for that, I think.

As for the polar function, it seems it doesn't allow properties (such as 'linewidth') to be specified directly. But you can get a handle to the created object and then set its 'linewidth', or other properties:

h = polar(a(:,1),a(:,2));
set(h,'linewidth',1)

If you want a scatter plot, maybe you'd prefer not to have lines, but instead to plot a marker (such as a dot) at each point:

h = polar(a(:,1),a(:,2),'.');
set(h,'markersize',12)

Example:

enter image description here

To see a list of properties that you can set, as well as their current values, type

get(h)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Overlapping polar countourf and scatter plot

From Dev

display values in polar plot (matlab)

From Dev

Categorical scatter plot in Matlab

From Dev

Scatter plot with density in Matlab

From Dev

Categorical scatter plot in Matlab

From Dev

Difference between plot and scatter matlab

From Dev

Matlab Scatter Plot Color Scheme

From Dev

Define Matlab Scatter Plot scale

From Dev

MATLAB - scatter plot of a vector by a matrix?

From Dev

Setting a negative value for the center of a polar plot MATLAB

From Dev

Matlab: Labeling Data Points in a Polar Plot

From Dev

javascript polar scatter plot using d3.js

From Dev

javascript polar scatter plot using d3.js

From Dev

generateing a 3 dimensional scatter plot in matlab

From Dev

Auto-Label in scatter plot using matlab

From Dev

Spacing between markers in scatter plot Matlab

From Dev

Matlab scatter plot with straight lines connecting the points

From Dev

Scatter Plot 2D Matrix in MATLAB

From Dev

Matlab - Scatter plot multiple classess with different colors

From Dev

How to plot from a scatter object on Matlab

From Dev

How to change radial tick markers in Matlab polar plot?

From Dev

How to change radial tick markers in Matlab polar plot?

From Dev

I would like to label the points with values in polar plot in Matlab

From Dev

Am Charts Polar Scatter

From Dev

How can I overlay box plot on scatter plot in matlab or R?

From Dev

How to plot a polar plot?

From Dev

How can I draw a scatter plot with contour density lines in polar coordinates using Matplotlib?

From Dev

In MATLAB, how do I use legend with colormap in a scatter plot

From Dev

Color scatter plot in Matlab according to 0 or 1 value

Related Related

HotTag

Archive