擅长:python、mysql、java
<p>可以使用两个相互重叠的轴:</p>
<pre><code>import matplotlib.pyplot as plt
fig = plt.figure(figsize=(6,6))
ax1 = fig.add_axes([0.1,0.1,.8,.8], label="cartesian")
ax2 = fig.add_axes([0.1,0.1,.8,.8], projection="polar", label="polar")
ax2.set_rorigin(-1)
ax2.set_thetamax(90)
plt.show()
</code></pre>
<p><a href="https://i.stack.imgur.com/0paVV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0paVV.png" alt="enter image description here"/></a></p>