Re: [sage-support] Re: Displaying plots in inline mode for IPython notebook

2014-10-14 Thread sato365
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

[sage-support] Re: ggplot(mtcars, aes('factor(cyl)')) does not work

2014-10-13 Thread sato365
Hello, %python does not resolve this problem unfortunately. I understand that "pre-parser" is a difficult problem. I tried the following, which works. r('library(ggplot2)') r('p <- ggplot(mtcars, aes(x = factor(cyl))) + geom_bar()') r('plot(p)') Thanks, Yoshihiro Sato -- You received this mess

[sage-support] ggplot(mtcars, aes('factor(cyl)')) does not work

2014-10-12 Thread sato365
Hi, I tried to learn the ggplot package in Sage 6.3 as follows. ggplot(mtcars, aes('factor(cyl)')) does not work. Would you show me how to resolve this problem ? Thanks, Yoshihiro Sato Sage Version 6.3, Release Date: 2014-08-10 from ggplot import * # geom_bar exa

[sage-support] Re: an error message of r("install.packages('ggplot2')") in Sage 6.3 on Mac 10.9

2014-10-12 Thread sato365
Dear slelievre, Thank you for your mail. I have resolved this problem by the following procedure. Thanks, Yoshihiro Sato $ sage -version Sage Version 6.3, Release Date: 2014-08-10 $ sage -f r ... Successfully installed r-3.1.1.p0 Deleting temporary build directory /Applications/Sage-6.3.a

[sage-support] an error message of r("install.packages('ggplot2')") in Sage 6.3 on Mac 10.9

2014-10-12 Thread sato365
Hi, I would like to report an error message in Sage 6.3 on Mac OS X 10.9. r("install.packages('ggplot2')") makes an error message. Would you please check this problem ? Thanks, Yoshihiro Sato -- You received this message because you are subscribed to the Google Groups "sage-support" group. To

[sage-support] Re: Displaying plots in inline mode for IPython notebook

2014-10-09 Thread sato365
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

[sage-support] Re: Displaying plots in inline mode for IPython notebook

2014-09-29 Thread sato365
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

[sage-support] Re: Displaying plots in inline mode for IPython notebook

2014-09-25 Thread sato365
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: > >