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

Tengfei Yin yintengfei at gmail.com
Tue May 3 19:27:39 CEST 2011


I have Ubuntu 11.04 64bit on my laptop with R 2.14, I guess Yihui has tried
this combination already. We also have the same version of Qt library...

On Tue, May 3, 2011 at 12:23 PM, Michael Lawrence <lawrence.michael at gene.com
> wrote:

> Yes, it's much more likely a change in Qt or the OpenGL stack that is
> causing this issue, instead of R. Does Tengfei have a different Ubuntu
> version? Could you please figure out the change in Qt versions?
>
> Thanks,
> Michael
>
>
> On Tue, May 3, 2011 at 10:09 AM, Yihui Xie <xieyihui at gmail.com> wrote:
>
>> I've tried R 2.12.1 and it did not work. R 2.14 under development did
>> not work either. It looks more like a problem related to a certain
>> update on Qt instead of R itself. I upgraded to Ubuntu 11.04 from
>> 10.10 and there might also be a hardware driver update.
>>
>> 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
>>
>>
>>
>> On Wed, Apr 27, 2011 at 10:54 PM, Yihui Xie <xieyihui at gmail.com> wrote:
>> > My home laptop is using 2.13.0. Di must be working with 2.12.x or lower.
>> >
>> > 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
>> >
>> >
>> >
>> > On Wed, Apr 27, 2011 at 10:51 PM, Michael Lawrence
>> > <lawrence.michael at gene.com> wrote:
>> >>
>> >> On Apr 27, 2011 4:59 PM, "Yihui Xie" <xieyihui at gmail.com> wrote:
>> >>>
>> >>> I'm using the latest version of qtpaint from the github repository.
>> >>>
>> >>> Just now I tested on my home laptop and the line width still works. I
>> >>> know it also works on Di's Macbook.
>> >>>
>> >>
>> >> Which version of R?
>> >>
>> >>> I will reinstall R 2.12 tomorrow on the school laptop and see what
>> >>> happens.
>> >>>
>> >>> 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
>> >>>
>> >>>
>> >>>
>> >>> On Wed, Apr 27, 2011 at 5:06 PM, Michael Lawrence
>> >>> <lawrence.michael at gene.com> wrote:
>> >>> > 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
>> >>> >
>> >>> >
>> >>
>> >
>>
>
>
> _______________________________________________
> 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
>
>


-- 
Tengfei Yin
MCDB PhD student
1620 Howe Hall, 2274,
Iowa State University
Ames, IA,50011-2274
Homepage: www.tengfei.name
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/qtinterfaces-devel/attachments/20110503/96b362a0/attachment-0001.htm>


More information about the Qtinterfaces-devel mailing list