平滑线极坐标图-kde /插值

问题描述

首次尝试未能成功平滑/插值点之间的线。 我试图实现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)

enter image description here

解决方法

是的,kde在seaborn API中。 我粘贴了ax1.sns.kdeplot(theta,total),但该图未显示出平滑线,但仍处于转角状态(所有点均由一条直线连接)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...