ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 30 Oct 2013 08:50:57 +0100How to plot a R graph directly in Sagehttps://ask.sagemath.org/question/10673/how-to-plot-a-r-graph-directly-in-sage/I want to plot the graph using r language in Sage. And when I put this code:
sage: png(file="myplot.png", bg="transparent")
sage: plot(1:10)
sage: rect(1, 5, 3, 7, col="white")
sage: dev.off()
---
It works, but I have to click to see the graph in a new page.
What I want is to see the graph directly without clicking.
Mon, 28 Oct 2013 23:14:47 +0100https://ask.sagemath.org/question/10673/how-to-plot-a-r-graph-directly-in-sage/Comment by kcrisman for <p>I want to plot the graph using r language in Sage. And when I put this code:</p>
<pre><code>sage: png(file="myplot.png", bg="transparent")
sage: plot(1:10)
sage: rect(1, 5, 3, 7, col="white")
sage: dev.off()
</code></pre>
<hr/>
<p>It works, but I have to click to see the graph in a new page.
What I want is to see the graph directly without clicking.</p>
https://ask.sagemath.org/question/10673/how-to-plot-a-r-graph-directly-in-sage/?comment=16827#post-id-16827Can you give us a little more detail about your setup (platform, Sage version) as well as whether you are using command line or notebook? Note that your code shouldn't actually work: you would have to be in the notebook with the %r mode selected, but then the `sage:` part should (?) confuse it...Wed, 30 Oct 2013 08:50:57 +0100https://ask.sagemath.org/question/10673/how-to-plot-a-r-graph-directly-in-sage/?comment=16827#post-id-16827