Displaying 6 results from an estimated 6 matches for "r_ge_gcontext".
2005 Apr 02
2
Building new graphic device drivers with g++
...L device");
}
gsetVar(install(".Device"), mkString("NULL"), R_NilValue);
dd = GEcreateDevDesc(dev);
Rf_addDevice((DevDesc*) dd);
GEinitDisplayList(dd);
return R_NilValue;
}
static void NULL_Circle(double x, double y, double r,
R_GE_gcontext *gc,
NewDevDesc *dev) {
Rprintf("circle(%lf,%lf,%lf)\n", x, y, r);
}
static void NULL_Line(double x1, double y1, double x2, double y2,
R_GE_gcontext *gc,
NewDevDesc *dev) {
Rprintf("li...
2004 Nov 18
1
Declaration of RuleThickness() in src/main/plotmath.c (PR#7380)
...-DHAVE_CONFIG_H
-O +e -c plotmath.c -o plotmath.o
Error 181: "plotmath.c", line 255 # Expected 0 argument(s) for "double
RuleThickness()"; had 2 instead.
+ 3.51 * RuleThickness(gc, dd)
It would appear that the function definition should include the argument
(R_GE_gcontext *gc, GEDevDesc *dd), like in the other functions that are defined
around there.
2004 Feb 09
1
Graphics device API
I just wrote a graphics device taking the X11 device in R-devel as a
guide (I was told it's the reference device). It works perfectly with
R-devel, but I just noticed that the API (e.g. the use of
R_GE_gcontext) is incompatible with previous versions of R. Is the
current API in R-devel set in stone or are there any further plans to
change the API? (If so, how far?) Also, is there any 'recommended' or
'official' way to provide compatibility (beside using wrappers in
various #ifdef's...
2013 May 21
1
Lattice, ggplot, and pointsize
Hi!
When inserting R plots into a document using odfWeave, I fought for a
while to get Lattice plots use the same text size as base plots. I
eventually discovered that specifying a point size via e.g.
svg(pointsize=10) has no effect on Lattice plots. One needs to adjust
the size manually via:
trellis.par.set(fontsize=list(text=10, points=8))
This is also developed for both Lattice and ggplot2 by
2005 Jun 11
2
italic (PR#7932)
Full_Name: G. Grothendieck
Version: R version 2.1.0, 2005-05-14
OS: Windows XP
Submission from: (NULL) (216.59.254.207)
This code:
> plot(1:10)
> text(5,5,lab=expression(italic(22*"33")))
has the effect of italicizing 33 (which is a character string) but not 22
(which is not). I would have thought that both, not just 33, would be
italicized.
I had previously posted about this
2008 Mar 29
1
A patch for extending pdf device to embed popup text and web links
...if(isCIDFont(gc->fontfamily, PDFFonts, pd->defaultCIDFont) && face != 5) {
/* NB we could be in a SBCS here */
unsigned char *buf = NULL /* -Wall */;
***************
*** 7048,7053 ****
--- 7116,7146 ----
}
#endif
+ static void PDF_StrSize(const char *str,
+ R_GE_gcontext *gc,
+ NewDevDesc *dd,
+ double* ascent_max,
+ double* descent_max,
+ double* width_sum)
+ {
+ PDFDesc *pd = (PDFDesc *) dd->deviceSpecific;
+ int face = gc->fontface;
+ double ascent, descent, width;
+ int i, n;
+
+ *ascent_max = 0.0;
+ *descent_max = 0.0;...