I have a dataset that I want to use to create a contour plot in polar coordinates using Matplotlib.
My data is as follows:
theta - 1D array of angle valuesradius - 1D array of radius valuesvalue - 1D array of values โโthat I want to use for paths
These are all 1D arrays that align correctly - for example:
theta radius value 30 1 2.9 30 2 5.3 35 5 9.2
That is, all values โโare repeated many times, so each row of this "table" of three variables defines one point.
How can I create a polar contour plot from these values? I thought about converting the radius and theta values โโto x and y values โโand did it in Cartesian coordinates, but the contour function requires two-dimensional arrays, and I can't understand why.
Any ideas?
python matplotlib graphing
robintw
source share