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: PR Created ( https://rdotnet.codeplex.com/SourceControl/network/forks/skyguy94/PRFork/contribution/7684 ). Keep in mind that this is just an example device. It should work correctly in all cases, but as I have found with implementing other devices, there are plenty of subtle issues that can be difficult to fix. Even R itself has issues, try plotting: plot(1:10, ylab=bquote(sqrt("cat"))) and plot(1:10, ylab=bquote(sqrt("dog")) in separate windows with R or RStudio. Its fine for the cat case, but the ascent in "dog" cuts off the division symbol in the dog case. Thar be dragons or something like that.

Viewing all articles
Browse latest Browse all 1634

Trending Articles