为什么同一表达式使用matplotlib和mathematica?得到不同的图形;

为什么同一表达式使用matplotlib和mathematica?得到不同的图形;,matplotlib,wolfram-mathematica,Matplotlib,Wolfram Mathematica,相同表达式的两个工具(matplotlib和mathematica)的输出非常不同!真奇怪 python3.6:matplotlib mathematica: matplotlib: 将numpy作为np导入 将matplotlib.pyplot导入为绘图 图=绘图。图() 图添加_子地块(211,投影='polar') #设置极坐标图的标题 plot.title('图形') #弧度值高达2*pi 弧度=np.arange(0,(2*np.pi),0.01) 对于以弧度为单位的弧度: #极

相同表达式的两个工具(matplotlib和mathematica)的输出非常不同!真奇怪

  • python3.6:matplotlib

  • mathematica:

matplotlib:


将numpy作为np导入
将matplotlib.pyplot导入为绘图
图=绘图。图()
图添加_子地块(211,投影='polar')
#设置极坐标图的标题
plot.title('图形')
#弧度值高达2*pi
弧度=np.arange(0,(2*np.pi),0.01)
对于以弧度为单位的弧度:
#极坐标绘图
极坐标图(弧度,np.sin(弧度)+np.power(np.sin(3*弧度),3),'o')
#显示极坐标图
plot.show()
mathematica:


matplotlib的图形:

数学图表:


Mathematica绘图中出现蓝色弧线而Mathematica绘图中未出现蓝色弧线的原因是对Mathematica中
PolarPlot
语法的误解。尝试
PolarPlot[Sin[t]+Sin[3t]^3,{t,0,2pi}]
将显示水平轴上方的曲线,而不显示蓝色圆弧。这仍然不能解释mathplotlib中水平轴下方的曲线。请看这里:它没有帮助。反正是Thx。
PolarPlot[{t, Sin[t] + Sin[3 t]^3}, {t, 0, 2 Pi}]