Displaying 20 results from an estimated 2000 matches similar to: "support for polygons with holes"
2009 Dec 01
6
raster support in graphics devices
Hi
This is for developers of extension packages that provide extra
*graphics devices* for R.
In the *development* version of R, support has been added to the
graphics engine for sending raster images (bitmaps) to a graphics
device. This consists mainly of two new device functions: dev_Raster()
and dev_Cap().
The R_GE_version constant (in GraphicsEngine.h) has been bumped up to 6
as a
2016 Aug 04
0
[FORGED] Re: polypath winding rule with transparency
On Thu, 4 Aug 2016 at 11:17 Paul Murrell <paul at stat.auckland.ac.nz> wrote:
> Hi
>
> Just to clarify, I think this IS a problem with grid.path() as well as
> polypath().
>
>
Hi, oh dear - sorry about that
I appreciate the deeper explanation, I knew about the id aspect in grid,
but just forgot in my haste.
I'll be more careful with examples if I find any more clues.
2009 Jan 19
1
patch for textspecial and defaultfont in xfig
Hello,
The current xfig device lacks the functionality to set the
textspecial flag and use the defaultfont in xfig. This is necessary
when you want to export to xfig and use interpreted text (e.g., $
\frac{1}{e}$ gets interpreted by latex). The attached patch adds this
functionality.
Why would you like to do this?
- Use math in labels (e.g., name your variables $r_{xy}$, do a
2017 Feb 27
1
Graphics Device API change
Hi
r72261 in r-devel has modified the graphics device API and bumped
R_GE_version in GraphicsEngine.h (to satisfy PR 16951).
This means that ...
(i) third-party graphics device packages need to be reinstalled.
(ii) third-party graphics device packages will ideally need a new
version for r-devel.
(iii) any packages that make use of getGraphicsEvent() should test
against r-devel (and let me
2017 Apr 24
1
polypath winding rule with transparency
On Thu, 4 Aug 2016 at 17:53 Michael Sumner <mdsumner at gmail.com> wrote:
> On Thu, 4 Aug 2016 at 11:17 Paul Murrell <paul at stat.auckland.ac.nz> wrote:
>
>> Hi
>>
>> Just to clarify, I think this IS a problem with grid.path() as well as
>> polypath().
>>
>>
> Hi, oh dear - sorry about that
>
> I appreciate the deeper explanation, I
2016 Aug 04
2
[FORGED] Re: polypath winding rule with transparency
Hi
Just to clarify, I think this IS a problem with grid.path() as well as
polypath().
For the example you give, grid.path() diverts to drawing a polygon
(because there is no 'id' specified), and the NAs in 'x' generate two
separate polygons, which get drawn one on top of the other.
The correct analogy to the polypath() example is ...
x2 <- matrix(x[!is.na(x)], ncol=2)
2007 Feb 05
2
Metapost device driver
Hi All,
I've started work on a MetaPost device driver (please don't hold your
breath).
I've copied the XFig driver and renamed everything and this works, I can
open the new metapost() and it works exactly like the xfig
driver. Now all I have to do is the actual work!
Just one question. There is a magic number in ExtEntries as follows:
static const R_ExternalMethodDef ExtEntries[] =
2007 Feb 05
2
Metapost device driver
Hi All,
I've started work on a MetaPost device driver (please don't hold your
breath).
I've copied the XFig driver and renamed everything and this works, I can
open the new metapost() and it works exactly like the xfig
driver. Now all I have to do is the actual work!
Just one question. There is a magic number in ExtEntries as follows:
static const R_ExternalMethodDef ExtEntries[] =
2016 Aug 03
0
polypath winding rule with transparency
Hello,
it's probably worth adding that this is not a problem with pathGrob, only
polypath.
This code is sufficient to demonstrate the problem in Windows.
## overlapping, both clock-wise
x <- cbind(c(.1, .1, .6, .6, NA, .4, .4, .9, .9),
c(.1, .6, .6, .1, NA, .4, .9, .9, .4))
## only a problem on Windows windows() and png()
plot(x);polypath(x, rule = "winding", col =
2016 Aug 03
2
polypath winding rule with transparency
Hi, I see different results in png() and pdf() for polypath() on Windows
when using the "winding" rule
## overlapping, both clock-wise
x <- cbind(c(.1, .1, .6, .6, NA, .4, .4, .9, .9),
c(.1, .6, .6, .1, NA, .4, .9, .9, .4))
pfun <- function() {
plot(x)
polypath(x * 0.8 + 0.2, rule = "winding", col = "#BEBEBE80")
polypath(x, rule =
2001 Jun 25
0
Dokumentation bug in src/include/Graphics.h (R-1.3.0) (PR#994)
The header file still contains the old places for some code that is
now in the 'module' section:
* currently existing device drivers:
* FILE driver name prefix
* ---------------------- ------------------
* ../main/devPS.c PS _and_ XFig
* ../main/devPicTeX.c PicTeX
* ../unix/X11/devX11.c X11
* ../gnuwin32/devga.c GA
* ../unix/gnome/devGTK.c GTK
* ../unix/gnome/devGNOME.c
2002 Feb 28
3
R-plots with 'complex' axis-labelling
Hi there,
I want to create plots with some kind of 'complex' axis labelling of the form
$\dot{V}$ and integrate those plots into a LaTeX document. What is the best
way to go?
I've figured out, that the 'plotmath' commands are somewhat limited (at least
I wasn't able to get the $\dot{V}$ generated) and that plots with
'plotmath'-axes wouldn't export
2000 Sep 11
1
R 1.1.1 (and 1.2.0) on Mac (PPC) and "/afm/" bugs (?)
Hy (I hope this is the right list).
1. Mac porting
I'm finishing the porting of R for Mac. I hope to finish it for the
end of september. Thanks to the porting of R 0.64 by Ross (that he
gave me) I succeded in this porting. This is the current state:
Both R 1.1.1. and 1.2.0 works with minor modification to the original
code. The Macintosh device has been updated to the new version of
2005 Feb 23
1
Graphics devices file[name] argument
Just got trapped by inconsistency of name of first argument
for file-based graphics devices. Both 'file' and 'filename'
are currently in use depending on the device. I ran on a
machine without PNG support which my code used postscript
as the backup device and choked here.
> do.call(device, list(filename = pathname,
height = height,
2001 Mar 09
1
rotated and/or greek mtext in pictex()?
Greetings-
I'm aware that there's no documentation for pictex available easily (that
is, without purchasing it). I'm wondering if someone can help me with a
simple task. When generating a plot using pictex() from R, one of the
commands I use is
mtext("Dimension 2: L=xxxx", side=2, line=3)
when using X11(), this appears vertically along the Y axis; when using
pictex(), it
2001 Feb 13
3
xfig boxplot (polygon) bug??
There appears to be a bug in the R xfig() driver.
When I run a simple example, eg
> data(InsectSprays)
> boxplot(count ~ spray, data = InsectSprays, col = "lightgray")
the boxplot is fine. Doing the same thing after
> xfig(file='test.fig')
and then opening in Xfig (ver3.2 patchlevel 2) on my Linux box produces boxplots
where the boxes, although correctly shaded in,
2001 Feb 13
3
xfig boxplot (polygon) bug??
There appears to be a bug in the R xfig() driver.
When I run a simple example, eg
> data(InsectSprays)
> boxplot(count ~ spray, data = InsectSprays, col = "lightgray")
the boxplot is fine. Doing the same thing after
> xfig(file='test.fig')
and then opening in Xfig (ver3.2 patchlevel 2) on my Linux box produces boxplots
where the boxes, although correctly shaded in,
2008 Mar 29
1
A patch for extending pdf device to embed popup text and web links
Dear all,
I am sending a patch for extending pdf device to embed popup text and web links.
I implemented this feature by using annotation object, a interactive
feature of pdf.
You can see a sample code for using this feature in the following, and
sample pdf is in
2017 Feb 14
0
[PATCH 2/2] GCC 7: Allocate sufficient space for sprintf output.
GCC 7.0.1 can determine if there is likely to be sufficient space in
the output buffer when using sprintf/snprintf, based on the format
string.
The errors were all either of this form:
bindtests.c:717:29: error: '%zu' directive output may be truncated writing between 1 and 19 bytes into a region of size 16 [-Werror=format-truncation=]
snprintf (strs[i], 16, "%zu", i);
2017 Apr 19
1
[PATCH] daemon: Remove use of fixed-size stack buffers.
GCC 7 complains that the fixed size buffers are not large enough
(at least in theory) when using ‘-O3 -mtune=broadwell’.
---
daemon/devsparts.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/daemon/devsparts.c b/daemon/devsparts.c
index 584e7d8b8..eac79197e 100644
--- a/daemon/devsparts.c
+++ b/daemon/devsparts.c
@@ -125,13 +125,16 @@ foreach_block_device