I am drawing a polar plot in Python, for a set of measurements. However, I am getting straight lines instead of smooth curves between the points. How to convert the straight lines to smooth curves?
The code is given herewith:
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams.update({'font.size': 30}) # this increases the font size
subject = ["1", "2", "3", "4", "5", "6"]
metric1 = [0.8186, 0.8465, 0.2601, 0.936, 0.951, 0.9518]
plt.figure(figsize=(20, 20), dpi=400)
plt.subplot(polar=True)
theta = np.linspace(0, 2 * np.pi, len(metric1))
lines, labels = plt.thetagrids(range(0, 360, int(360/len(subject))), (subject))
plt.plot(theta, metric1, 'b', label='metric1',linewidth=2.0)
plt.fill(theta, metric1, 'b', alpha=0.1)
plt.legend(loc=(1.04,0), prop={"size":30})
plt.show()