Displaying 6 results from an estimated 6 matches for "cairofn".
Did you mean:
cairofns
2019 Mar 05
1
[R] [FORGED] R cairo_pdf function does not respect plotting boundaries
...39;ed to r-devel where further discussion should probably take place)
Thanks Lee. I see that problem.
There is a "+ 1" in the Cairo device code for setting the clipping region
(https://github.com/wch/r-source/blob/ba600867f2a94e46cf9eb75dc8b37f12b08a4561/src/library/grDevices/src/cairo/cairoFns.c#L156)
Remove the "+ 1" and the problem goes away (for your example at least).
The comment on the line above that code suggests that the "+ 1" was
modelled on the X11 device code, but X11 deals in integer pixels and
Cairo (at the API level) does not, so it would seem tha...
2014 Jan 06
4
2 bugs in R's grDevices, and fixes.
Just before the holiday, I asked the freetype developers what is the context
of these two comments about freetype in the code of R's grDevices:
======= R/src/library/grDevices/src/cairo/cairoFns.c around line 720 =====
/* some FreeType versions have broken index support,
fall back to index 0 */
if (!FT_New_Face(ft_library,
(const char *) file, index, &face) ||
(index && !FT_New_Face(ft_library,
(const char *) file, 0, &face))) {
FcFontSetD...
2014 Jan 06
4
2 bugs in R's grDevices, and fixes.
Just before the holiday, I asked the freetype developers what is the context
of these two comments about freetype in the code of R's grDevices:
======= R/src/library/grDevices/src/cairo/cairoFns.c around line 720 =====
/* some FreeType versions have broken index support,
fall back to index 0 */
if (!FT_New_Face(ft_library,
(const char *) file, index, &face) ||
(index && !FT_New_Face(ft_library,
(const char *) file, 0, &face))) {
FcFontSetD...
2019 Feb 28
2
R cairo_pdf function does not respect plotting boundaries
Hello all,
When producing a plot in R using the cairo_pdf device, the resultant plot does not respect the plotting boundaries. Lines and shaded regions will spill over the lower x-axis and the right-side y-axis (sides 1 and 4). I would like to know if it is possible to fix this behaviour when using 'cairo_pdf' in R?
As an example, see the image at this web link:
2019 Feb 28
2
R cairo_pdf function does not respect plotting boundaries
Hello all,
When producing a plot in R using the cairo_pdf device, the resultant plot does not respect the plotting boundaries. Lines and shaded regions will spill over the lower x-axis and the right-side y-axis (sides 1 and 4). I would like to know if it is possible to fix this behaviour when using 'cairo_pdf' in R?
As an example, see the image at this web link:
2019 Mar 05
0
R cairo_pdf function does not respect plotting boundaries
...39;ed to r-devel where further discussion should probably take place)
Thanks Lee. I see that problem.
There is a "+ 1" in the Cairo device code for setting the clipping region
(https://github.com/wch/r-source/blob/ba600867f2a94e46cf9eb75dc8b37f12b08a4561/src/library/grDevices/src/cairo/cairoFns.c#L156)
Remove the "+ 1" and the problem goes away (for your example at least).
The comment on the line above that code suggests that the "+ 1" was modelled on the X11 device code, but X11 deals in integer pixels and Cairo (at the API level) does not, so it would seem that th...