Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

Commented Unassigned: RdotNet.Graphics, text function misbehavior [148]

$
0
0
Hi all,

I have come up with an issue related to displaying text through the R text() function. Specifically, the DrawText@GraphicsDeviceAdapter gets called with the wrong y value. This behavior can be only observed when the text() function is directly invoked to diplay text in the device, and assuming the R plot() function relies on it for displaying characters, it gets correctly called to plot the axis ticks values as shown in the RdotNet.Graphics.Test app.

Any ideas on this,
Jesus
Comments: Oh, sorry for the vague explanation. To reproduce it just change the Code variable @ https://rdotnet.codeplex.com/SourceControl/latest#RDotNet.Graphics.Tests/Program.cs to: ``` Code = @"plot(1:10, pch=1:10, col=1:10, cex=seq(1, 2, length=10)) text(c(1), c(1), c('Text here'), col=c('red'))", ``` And place a breakpoint @ https://rdotnet.codeplex.com/SourceControl/latest#RDotNet.Graphics.Tests/GraphPanel.cs in the function IGraphicsDevice.DrawText. Check the position value. It is not merely a problem of flipping as you may notice.

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>