<br><br><div class="gmail_quote">On Tue, Oct 19, 2010 at 8:43 PM, Yihui Xie <span dir="ltr"><<a href="mailto:xieyihui@gmail.com">xieyihui@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
After struggling with this problem for another few hours, I finally<br>
figured out the reason:<br>
<a href="http://github.com/ggobi/qtpaint/commit/dba9fdefdab125e3013e69f582b3a03825080e5a" target="_blank">http://github.com/ggobi/qtpaint/commit/dba9fdefdab125e3013e69f582b3a03825080e5a</a><br>
There is something wrong in this commit. The texts can be correctly<br>
drawn with earlier qtpaint revisions.<br>
<br>
Fortunately it is not a compatibility issue...<br>
<div class="im"><br></div></blockquote><div><br>You shouldn't have spent so much time on it. Please give me at least a day or so to take care of these. I committed what I hope to be a fix. Still working on the rotation.<br>
<br>Michael<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
Regards,<br>
Yihui<br>
--<br>
Yihui Xie <<a href="mailto:xieyihui@gmail.com">xieyihui@gmail.com</a>><br>
Phone: 515-294-2465 Web: <a href="http://yihui.name" target="_blank">http://yihui.name</a><br>
Department of Statistics, Iowa State University<br>
2215 Snedecor Hall, Ames, IA<br>
<br>
<br>
<br>
</div><div><div></div><div class="h5">On Tue, Oct 19, 2010 at 1:36 PM, Yihui Xie <<a href="mailto:xieyihui@gmail.com">xieyihui@gmail.com</a>> wrote:<br>
> Here comes a minimal example (with screenshots attached):<br>
><br>
> library(qtpaint)<br>
> s <- qscene()<br>
> test_layer <- qlayer(s, function(layer, painter) {<br>
> qlineWidth(painter) = 2<br>
> qdrawRect(painter, 10, 10, 90, 90, stroke = 'blue')<br>
> ## origin of y is incorrect (at the top of the canvas; should be<br>
> at the center)<br>
> for(y in c(-50,-30,0,30,50)) {<br>
> qdrawText(painter, paste('y =',y), 50,y)<br>
> }<br>
> ## but x is correct<br>
> for(x in c(0,30,50,80,100)) {<br>
> qdrawText(painter, paste('x =',x), x, -60)<br>
> }<br>
> }, limits=qrect(0,0,100,100))<br>
> qplotView(s)<br>
><br>
><br>
> Regards,<br>
> Yihui<br>
> --<br>
> Yihui Xie <<a href="mailto:xieyihui@gmail.com">xieyihui@gmail.com</a>><br>
> Phone: 515-294-2465 Web: <a href="http://yihui.name" target="_blank">http://yihui.name</a><br>
> Department of Statistics, Iowa State University<br>
> 2215 Snedecor Hall, Ames, IA<br>
><br>
><br>
><br>
> On Tue, Oct 19, 2010 at 7:55 AM, Michael Lawrence<br>
> <<a href="mailto:lawrence.michael@gene.com">lawrence.michael@gene.com</a>> wrote:<br>
>> Moved this over to the more appropriate qtinterfaces-devel list. I am<br>
>> installing Qt 4.7 now and will work towards compatibility. For this<br>
>> particular issue, it would be helpful if you could send a simple<br>
>> reproducible example.<br>
>><br>
>> Thanks,<br>
>> Michael<br>
>><br>
>> On Mon, Oct 18, 2010 at 8:50 AM, Yihui Xie <<a href="mailto:xieyihui@gmail.com">xieyihui@gmail.com</a>> wrote:<br>
>>><br>
>>> Hi (Michael),<br>
>>><br>
>>> Last Friday I tried Qt 4.7.0 under Ubuntu 10.10 (installed from<br>
>>> Synaptic); everything worked well except the qdrawText() function. See<br>
>>> the attachments: it always draws y=0 at the top most of the canvas<br>
>>> when I draw the y-axis tickmark labels, while there are no problems<br>
>>> with qdrawSegment(). I've spent several hours on this problem but<br>
>>> cannot find out the reason...<br>
>>><br>
>>> > sessionInfo()<br>
>>> R version 2.12.0 (2010-10-15)<br>
>>> Platform: x86_64-unknown-linux-gnu (64-bit)<br>
>>><br>
>>> locale:<br>
>>> [1] en_US.utf8<br>
>>><br>
>>> attached base packages:<br>
>>> [1] stats graphics grDevices utils datasets methods base<br>
>>><br>
>>> other attached packages:<br>
>>> [1] RColorBrewer_1.0-2 plumbr_0.0-1 qtpaint_0.7.11<br>
>>><br>
>>> loaded via a namespace (and not attached):<br>
>>> [1] qtbase_0.8-7<br>
>>><br>
>>> Regards,<br>
>>> Yihui<br>
>>> --<br>
>>> Yihui Xie <<a href="mailto:xieyihui@gmail.com">xieyihui@gmail.com</a>><br>
>>> Phone: 515-294-2465 Web: <a href="http://yihui.name" target="_blank">http://yihui.name</a><br>
>>> Department of Statistics, Iowa State University<br>
>>> 2215 Snedecor Hall, Ames, IA<br>
>>><br>
>>> --<br>
>>> You received this message because you are subscribed to the Google Groups<br>
>>> "GGobi core" group.<br>
>>> To post to this group, send email to <a href="mailto:ggobi-core@googlegroups.com">ggobi-core@googlegroups.com</a>.<br>
>>> To unsubscribe from this group, send email to<br>
>>> <a href="mailto:ggobi-core%2Bunsubscribe@googlegroups.com">ggobi-core+unsubscribe@googlegroups.com</a>.<br>
>>> For more options, visit this group at<br>
>>> <a href="http://groups.google.com/group/ggobi-core?hl=en" target="_blank">http://groups.google.com/group/ggobi-core?hl=en</a>.<br>
>>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Qtinterfaces-devel mailing list<br>
>> <a href="mailto:Qtinterfaces-devel@lists.r-forge.r-project.org">Qtinterfaces-devel@lists.r-forge.r-project.org</a><br>
>> <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel</a><br>
>><br>
>><br>
><br>
</div></div></blockquote></div><br>