[英]Plotted lines gets compressed when plot pie chart with matplotlib.pyplot
在我的程序中,我首先绘制一棵只画线的树(无循环的图形)。 如图所示
我的问题是,当我在同一图上绘制饼图时,所有图和饼图都将被压缩,并且框消失,如下图所示
我的代码基本上是:
from mathplotlib import pyplot as plt plt.figure() # Plottin a straight line from (0,0) to (1,1) in the (x,y) plane X=[0,1] Y=[0,1] plt.plot(X,Y) # Plotng a pie chart plt.pie([100],radius=0.5,center=(1/4,3/4))
为什么会发生? 我该如何解决?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.