Python QuTiP将Bloch球体保存为.png和.pdf

时间:2014-07-10 01:37:36

标签: python

当我使用Python的QuTiP生成一个简单的Bloch球体时,我可以将数字保存为.png或.pdf:

from qutip import *    

b = Bloch()

b.show()

bb = b.fig
bb.savefig('Bloch.png')
bb.savefig('Bloch.pdf')

生成的文件完全不同。 .png看起来像:

Bloch.png

而.pdf显示更深的线条:

enter image description here

有没有办法让.pdf数字看起来更像.png?

1 个答案:

答案 0 :(得分:0)

问题出在我使用Foxit的PDF查看器上,它们是相同的: press the link to see the image