问题描述
首次尝试未能成功平滑/插值点之间的线。 我试图实现kdeplot(theta,total)毫无结果。
我如何1用平滑线显示total =()
fig = plt.figure(figsize=(10,10))
ax1 = plt.subplot(111,projection='polar')
ax1.axes.get_yaxis().set_ticklabels([])
ax1.axes.get_xaxis().set_ticklabels([])
fig.set_axis_bgcolor('#f7fbf5')
ax1.set_ylim(0,3100)
theta=np.linspace(0,2*np.pi,len(total))
ax1.plot(theta,total,color='firebrick') #replaced by ax1.kdeplot(theta,total) w/o success
ax1.grid(False)
解决方法
是的,kde在seaborn API中。 我粘贴了ax1.sns.kdeplot(theta,total),但该图未显示出平滑线,但仍处于转角状态(所有点均由一条直线连接)