search for: gtkdrawingarea

Displaying 11 results from an estimated 11 matches for "gtkdrawingarea".

2011 Dec 22
1
RGtk2: How to overlay a gtkDrawingArea with a button or any other widget?
I try to overlay a plot inside a gtkDrawingArea with a button (or any other widget). I tried to put both into a gtkFixed container. But this does not work, no printing occurs. Does someone know a solution? What I tried: w <- gtkWindow() w$setSizeRequest(400,400) fx <- gtkFixed() da <- gtkDrawingArea() fx$put(da, 100, 100) asCairoDe...
2012 Mar 08
3
"figure margins too large" in RGtk2 drawing area as cairo device - why?
When using a gtkDrawingArea as a Cairo device I very often encounter the error: "figure margins too large" Even for the below "getting started" example from http://www.ggobi.org/rgtk2/ this is the case. > win = gtkWindow() > da = gtkDrawingArea() > win$add(da) > asCairoDevice(da) [1] TRUE &gt...
2012 Mar 05
2
changing the drawing context using Cairo and RGtk2
...container with two GTK drawing areas converted into Cairo devices. I know that I can set the current drawing context e.g. using dev.set(). But this is tedious. How can I set the context using the objects da1 or da2? w <- gtkWindow() w$setSizeRequest(400, 400) vbox <- gtkVBox() da1 <- gtkDrawingArea() da2 <- gtkDrawingArea() vbox$add(da1) vbox$add(da2) dummy <- asCairoDevice(da1) dummy <- asCairoDevice(da2) w$add(vbox) par(oma=c(0,0,0,0), mar=c(0,0,0,0)) plot(1:10) THX --Mark ???????????????????????????????????? Mark Heckmann Blog: www.markheckmann.de R-Blog: http://r...
2008 Jul 28
1
equivalent to "require" for imports? (cairoDevice)
Hi R-devel I use the packages RGtk2 and cairoDevice. The cairoDevice package has a few stand-alone functions, plus "asCairoDevice" which depends on RGtk2 and calls require(RGtk2). So cairoDevice lists RGtk2 under "Suggests" in the DESCRIPTION file. It can not Import RGtk2 because that would force all users to install RGtk2. The upshot of this is, if you *import* the RGtk2
2006 Sep 21
0
cairoDevice 1.2 on CRAN
.... It is available on all three major platforms (Windows, Mac, and Linux) and requires the GTK+ 2.8.0 library and its dependencies. For the current users, version 1.2 fixes many bugs. cairoDevice is capable of rendering in three different ways: to the screen inside a GTK+ window, to an arbitrary GtkDrawingArea that is part of an RGtk2 GUI, or to any GdkDrawable, allowing for example the output of png and jpg images derived from R graphics using the GdkPixbuf bindings from RGtk2. cairoDevice is interactive in that it supports the locator tool as well as the getGraphicsEvent() functionality, which pre...
2003 Nov 19
1
size of graphics device
Dear all, In many cases, I need a plotting region much bigger than the screen (e.g. for maps or for graphs with many labels). A. MS-Windows if I try windows(width=25, height=25, rescale="fixed") it seems to be OK (a screen with scrollbars, exactly what I need) but if I try then plot(faithful$eruptions, faithful$waiting) I receive Error in plot.new() : Outer margins too large
2006 Sep 21
0
cairoDevice 1.2 on CRAN
.... It is available on all three major platforms (Windows, Mac, and Linux) and requires the GTK+ 2.8.0 library and its dependencies. For the current users, version 1.2 fixes many bugs. cairoDevice is capable of rendering in three different ways: to the screen inside a GTK+ window, to an arbitrary GtkDrawingArea that is part of an RGtk2 GUI, or to any GdkDrawable, allowing for example the output of png and jpg images derived from R graphics using the GdkPixbuf bindings from RGtk2. cairoDevice is interactive in that it supports the locator tool as well as the getGraphicsEvent() functionality, which pre...
2007 Apr 20
1
faster image display?
Does someone here know of a way to display images in R that isn't slow? Here are the things I've tried so far: library(rimage) i<-read.jpeg('foo.jpg') plot(i) # very slow library(pixmap) i <- read.pnm('foo.pnm') plot(i) # also slow chans <- getChannels(i) image(chans[,,1]) # this is slow too I also tried using library(cairoDevice) but it only makes everything
2007 Nov 17
0
Drawing to a buffer (or double buffering)
...e only way I know of doing this is to output to png devices and then sift through the pictures. That is very unappealing. Manfred P.S. The closest I've come was: library("RGtk2") library("cairoDevice") win <- gtkWindow(show=FALSE) gtkWindowResize(win,800,600) da <- gtkDrawingArea() win$add(da) win$visible <- TRUE asCairoDevice(da) win$visible <- FALSE plot.new() par(mfrow=c(2,2)) plot(1:10) # more plot commands win$visible <- TRUE
2009 May 23
1
Draw a rectangle on top of an image using RGtk2?
Dear all, I use gtkImageFromFile to display an image. Then I want to do some gsignal to handle mouse event. I click the mouse and move a another position and release. I can get the position of the firs click and the release position, then I would to draw a rectangle to display the region I have selected. I need some hints on what functions should I look for. I tried to google but don't know
2013 Jan 10
0
asCairoDevice issue
...nica")))) plot.call However if I want to draw the same plot in the drawing area by asCairoDevice I lost all the colorful dots in the upper left and lower right, having only the diagonal charts: The codes are: (you can copy and paste to your R GUI) win<- gtkWindowNew(show= FALSE) DA<- gtkDrawingArea() asCairoDevice(DA) win$add(DA) win$show() plot.call Did I miss anything here? Thanks a lot!!! Regards, Yan [[alternative HTML version deleted]]