polar-coordinates

Problem animating polar plots from measured data

Problem animating polar plots from measured data Question: Problem I’m trying to animate a polar plot from a measured temperature data from a cylinder using the plotly.express command line_polar by using a dataset of 6 radial values (represented by columns #1 – #6) over 10 rows (represented by column Time) distributed over a polar plot. …

Total answers: 1

Isochrone plot in polar coordinates

Isochrone plot in polar coordinates Question: So I have some data in spherical coords, but r is not important. So I really have (theta,phi,value), where theta goes 0-360 deg and phi 0-90 deg… Values go from -40 to 40 … I can plot this data using pcolormesh on a polar diagram, phis2 = np.linspace(0.001,63,201) thetas2 …

Total answers: 1

Cartesian zoom with polar plot in python

Cartesian zoom with polar plot in python Question: I am trying to plot some data in polar coordinates (I am currently using the polar projection): The code I am using is the following: import matplotlib.pyplot as plt import numpy as np # Create radial and angular array r = np.linspace(1.0,10,11) t = np.linspace(0.0,0.5*np.pi,101) # Define …

Total answers: 2

Plotting rose curve in python with even petals

Plotting rose curve in python with even petals Question: I was trying to plot a rose curve in python with the following code: import numpy as np from matplotlib import pyplot as plt theta = np.linspace(0, 2*np.pi, 1000) r = 3* np.sin(8 * theta) plt.polar(theta, r, ‘r’) plt.show() Now this is the rose curve $r= …

Total answers: 1

custom scaling of wind rose python

custom scaling of a wind rose plot Question: I am trying to compare wind roses in python, but it is difficult because I cannot figure out how to make the same scale across all of the plots. Someone else asked the same question here Custom percentage scale used by windrose.py but it was not answered …

Total answers: 1

Turn off axis border for polar matplotlib plot

Turn off axis border for polar matplotlib plot Question: I have a polar axes in matplotlib that has text which extends outside of the range of the axes. I would like to remove the border for the axis — or set it to the color of the background so that the text is more legible. …

Total answers: 2

How to fit a closed contour?

How to fit a closed contour? Question: I have a data that represents a closed contour (with noise): contour = [(x1, y1), (x2, y2), …] Is there any simple way to fit the contour? There is the numpy.polyfit function. But it fails if x values are repeated and requires some effort to determine an adequate …

Total answers: 2