[RQt-devel] unable to draw lines/segments with width>1

Michael Lawrence lawrence.michael at gene.com
Thu Apr 28 00:06:55 CEST 2011


Are you sure that you are not using a new version of qtpaint now vs. before?
That would be helpful to know, if true.

Thanks,
Michael

On Wed, Apr 27, 2011 at 3:00 PM, Yihui Xie <xieyihui at gmail.com> wrote:

> 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
> _______________________________________________
> Qtinterfaces-devel mailing list
> Qtinterfaces-devel at lists.r-forge.r-project.org
>
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/qtinterfaces-devel/attachments/20110427/25bb4c46/attachment.htm>


More information about the Qtinterfaces-devel mailing list