In Sage the plots appear "inline", but the plots are saved as files in a
directory structure within the working worksheet directory. From my reading
here:
http://ipython.org/ipython-doc/dev/interactive/htmlnotebook.html#the-notebook-format
it appears that the ipython notebook saves everything ins
This was a very good idea!
Now I generate the plots as you mentioned:
The trick was to use IPython.display to take the png files. Like this:
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.p
Hello,
Would you teach me how to change image size ?
Thanks!
Yoshihiro Sato
On Thursday, June 6, 2013 4:18:54 PM UTC+9, Jose Guzman wrote:
>
> This was a very good idea!
>
> Now I generate the plots as you mentioned:
>
> The trick was to use IPython.display to take the png files. Like this:
>
>
You can use the "figsize" keyword to resize your image. See this:
http://www.sagemath.org/doc/reference/plotting/sage/plot/graphics.html#sage.plot.graphics.Graphics.show
More examples can be found in the plot() documentation:
http://www.sagemath.org/doc/reference/plotting/sage/plot/plot.html#sage.
Hi,
I made an example.
from IPython.display import display, Image
x = var('x')
plot(sin(x), 0, 2*pi, figsize= 4).save('/path/to/directory/file.png')
display(Image('/path/to/directory/file.png'))
Thanks.
y. Sato
On Sunday, September 28, 2014 11:57:52 AM UTC+9, P Purkayastha wrot
Hi,
I have an idea using ImageMagic.
In terminal:
$ convert -resize x350 file.png file2.png
In notebook:
from IPython.display import display, Image
display(Image('/path/to/directory/file2.png'))
Would you please show me how to do "convert -resize x350 file.png
file2.png" in notebook ?
I usual
You can use os.system:
import os
os.system("convert. ")
On Oct 10, 2014 12:54 PM, wrote:
> Hi,
> I have an idea using ImageMagic.
>
> In terminal:
> $ convert -resize x350 file.png file2.png
>
> In notebook:
> from IPython.display import display, Image
> display(Image('/path/to/directory/fi
Hello,
Thanks you !
Y.Sato
--
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+unsubscr...@googlegroups.com.
To post to this group, send email to sage