[RQt-devel] unable to draw lines/segments with width>1
Yihui Xie
xieyihui at gmail.com
Thu Apr 28 00:00:12 CEST 2011
Hi,
I'm not sure if this is a problem related to R 2.13.0 or my hardware,
but I just cannot draw thicker lines or segments now. They do not
appear on the screen but they are actually there, because brushing
still works. It worked when I was using R 2.12. Other graphical
elements are still OK with 2.13.
s = qscene()
root = qlayer(s)
n = 10
x = rnorm(n, 50, 15)
y = runif(n, 20, 80)
test_layer = qlayer(root, function(layer, painter) {
qdrawCircle(painter, x, y, r = 20, fill = "black")
qlineWidth(painter) = 3 # only 1 works
qdrawSegment(painter, 10, 10, 90, 90)
}, limits = qrect(0, 0, 100, 100))
qplotView(s)
> sessionInfo()
R version 2.13.0 (2011-04-13)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] en_US.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] qtbase_0.8-13 qtpaint_0.7.22
Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
More information about the Qtinterfaces-devel
mailing list