Bug 299403 - R images have a white vertical line to the right
Summary: R images have a white vertical line to the right
Status: RESOLVED UPSTREAM
Alias: None
Product: cantor
Classification: Applications
Component: r-backend (show other bugs)
Version: 0.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Rieder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-04 20:06 UTC by Christopher Yeleighton
Modified: 2018-06-10 15:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
the image saved from Cantor (2.99 KB, image/png)
2012-05-04 20:18 UTC, Christopher Yeleighton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Yeleighton 2012-05-04 20:06:00 UTC
R images displayed in Cantor have a thin white vertical line to the right.

Reproducible: Always

Steps to Reproduce:
  1. Tell Cantor to create a new R sheet.
  2. Tell R to execute:
x <- seq(-pi, pi, len=50)
y <- x
image (x, y, outer (x, y, function (x, y) x + y))


Actual Results:  
  2. The image has a vertical white line between 2 and 3.

Expected Results:  
  3. A color image of (x + y).

This anomaly does not occur in command-line R.

Workaround: 

image (x, y, outer (x, y, function (x, y) x + y), useRaster=TRUE)
Comment 1 Christopher Yeleighton 2012-05-04 20:18:58 UTC
Created attachment 70863 [details]
the image saved from Cantor
Comment 2 Nikita Sirgienko 2018-06-10 15:41:24 UTC
Hello Christopher.

I don't think, that is Cantor bug, because I was able to reproduced white line in command-line R with this code by manipulating size of image window.

Also, according documentation (https://stat.ethz.ch/R-manual/R-devel/library/graphics/html/image.html)
"...Images for large z on a regular grid are rendered more efficiently with useRaster = TRUE and can prevent rare anti-aliasing artifacts..."
So, I think you notice one of this "rare anti-aliasing artifacts", because for example for "x <- seq(-pi, pi, len=49)" or "x <- seq(-pi, pi, len=51)" we have image without white lines.

So, as I see, it's documented behavior of R, so I close it as upstream bug.