[graalvm-users] AWT and plots

Stepan stepan.sindelar at oracle.com
Fri Aug 10 14:57:06 PDT 2018

Hi Rodrigo,

there is an R function for this: grid.newpage(). If you are plotting to 
an interactive window, then it's just cleared. If you are plotting to an 
image, say Rplot001.png, this should save the current image and start a 
new one (Rplot002.png).


On 10/08/18 23:21, Rodrigo Botafogo wrote:
> Hello,
> I'm now testing Ruby Interop with R by generating ggplot graphics.  On a 
> previous post I was told to make a call to awt() and then 'print' the 
> plot.  All this is working fine.  My question:
> Is there a way to clear the awt panel to send another plot?  Is there a 
> set of APIs to control the output or do I need to end my Ruby script and 
> start a new one?
> I tried to call awt() a second time after a sleep(5), but I got a null 
> pointer exception (could be a bug in my code.. did not investigate)
> Thanks
> -- 
> Rodrigo Botafogo
> _______________________________________________
> GraalVM-Users mailing list
> GraalVM-Users at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/graalvm-users

More information about the GraalVM-Users mailing list