On Sunday 05 September 2010, Thomas Friedrichsmeier wrote:
> But perhaps it's not that hard after all? I just tried this with the
> X11Cairo device:
>     plot(1, 1)
>     a <- recordPlot()
>     dev.off()
>     replayPlot (a)
>     b <- recordPlot()
>     identical (a, b)  # TRUE
>     title ("something's changed")
>     c <- recordPlot()
>     identical (a, c)  # FALSE
> I have not yet tested the windows() or quartz() devices, yet. But if the
> same thing works, there, this means we do have a reliable way to tell,
> whether a plot has been modified after all (only after calling
> recordPlot(), but still).

Update: I have tested on windows(), now, and it works there, too. And 
identical (a, b) appears to be pretty fast. For a 1.6MB plot (i.e. above the 
default limit), it's around 10 msecs on my Centrino @ 2.0 GHz.

Regards
Thomas

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel

Reply via email to