If you are using matplotlib and trying to get good numbers in a latex document, save it as eps. In particular, try something like this after running the commands to build the image:
plt.savefig('destination_path.eps', format='eps', dpi=1000)
I found that eps files work best, and the dpi option is what really makes them look good in the document.
UPDATE:
To indicate the orientation of the drawing before saving, simply call the following before calling plt.savefig , but after creating the graph (assuming that you built using axes named ax ):
ax.view_init(elev=elevation_angle, azim=azimuthal_angle)
Where elevation_angle is the number (in degrees) that defines the polar angle (down from the vertical z axis), and azimuthal_angle indicates the azimuthal angle (around the z axis).
I believe that the easiest way to determine these values ββis to first build an image, and then rotate it and observe how the current values ββof the angles appear at the bottom of the window just below the actual graph. Keep in mind that the x, y, z positions appear by default, but are replaced by two angles when you start to click + drag + rotate the image.
spencerlyon2 Apr 24 '13 at 4:55 2013-04-24 04:55
source share