FAQ Database Discussion Community

## How do I limit a gnuplot polar to a 180 degree range?

gnuplot,polar-coordinates
I am attempting to use gnuplot to plot the off axis response of a loudspeaker in the range +/- 90 degrees. I have this working nicely, almost entirely as a result of Creating a microphone polar pattern plot in gnuplot I would like to extend this so it presents the...

## How to draw rounded line ends using matplotlib

python,numpy,matplotlib,polar-coordinates
Say I am plotting a complex value like this: a=-0.49+1j*1.14 plt.polar([0,angle(x)],[0,abs(x)],linewidth=5) Giving Is there a setting I can use to get rounded line ends, like the red line in the following example (drawn in paint)? ...

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

python,matplotlib,scatter-plot,polar-coordinates
I am trying to make a scatter plot in polar coordinates with the contour lines superposed to the cloud of points. I am aware of how to do that in cartesian coordinates using numpy.histogram2d: # Simple case: scatter plot with density contours in cartesian coordinates import matplotlib.pyplot as pl import...

## create a meshgrid for polar coordinates

python,numpy,plot,polar-coordinates
I want to create a mesh grid for polar coordinates using the following arrays. R = 1.15 r = numpy.linspace(R,5,100) theta = numpy.linspace(0,2*numpy.pi,145) I tried it this way, using numpy: X,Y=numpy.meshgrid(r*numpy.cos(theta),r*numpy.sin(theta)) but I am getting this error: ValueError: operands could not be broadcast together with shapes (100,) (145,) How do...

## Incorrect Polar - Cartesian Coordinate Conversions. What does -0 Mean?

c++,polar-coordinates,cartesian-coordinates
I am getting incorrect conversions from polar to cartesian coordinates and vice versa. My code produces weird points like (1,-0). Im using this calculator to check my conversions. Also one of the conversions is completely wrong when I convert back to cartesian coordinates. Point b: (0,1) => (1,1.5708) => (0,0)...

## Matlab: Labeling Data Points in a Polar Plot

matlab,labels,polar-coordinates
I have an interesting question to ask, I have searched thoroughly and to my dismay it seems that no has had trouble with this. I would like to label all the data points in a polar plot in Matlab. The code is very simple so far, it is as follows:...