OK so that's not really a question, more of a documentation error report :-)def showplot(g): import IPython.display save(g, 'a.png') display(IPython.display.Image('a.png'))
I'm pretty sure the last line is incorrect -- it doesn't work for me anyway, and things are fixed if you change it toIPython.display.display(IPython.display.Image('a.png'))
def showplot(g, **kwargs): import IPython.display save(g, 'a.png', kwargs)IPython.display.display(IPython.display.Image('a.png'))
--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, 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.
(2) I've been trying to improve it to
def showplot(g, **kwargs): import IPython.display save(g, 'a.png', kwargs)IPython.display.display(IPython.display.Image('a.png'))
and tried showplot(my_plot, dpi= 1200) to get a larger image, but it doesn't work... any thoughts?
save(g, 'a.png', **kwargs)
The space is no trouble. But see my second message, i had forgotten the **. Now that bit works!
--
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/rju_T6XE7EU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.
PS in case i did not make myself clear: things work for reasonable values of dpi, but not 1200 which is silly.