plot(x).save('/path/to/directory/file.png')p = plot(x) + plot(x^2) + list_plot(range(5))
pm = p.matplotlib(<pass other options as you see fit>) # This is a matplotlib Figure object
from matplotlib import pyplot as plt
# Some matplotlib commands which can incorporate this Figure object into the plt object
plt.show()
x = var('x')
plot(sin(x), 0, 2*pi).save('/path/to/directory/file.png')
from IPython.display import display, Image
display(Image('/path/to/directory/file.png'))
'/path/to/directory/file.png'))'/path/to/directory/file2.png'))You can use os.system:
import os
os.system("convert..... ")
--
You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/9pUhO8wO4nE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.