From 0291c0f047861629eaefb02a98d4ac9ee4471f38 Mon Sep 17 00:00:00 2001 From: Nick Horelik Date: Thu, 8 May 2014 10:50:42 -0400 Subject: [PATCH] Fixed off-by-one indexing error in the plotter --- src/plot.F90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plot.F90 b/src/plot.F90 index 7ad178a7d9..e7642314f9 100644 --- a/src/plot.F90 +++ b/src/plot.F90 @@ -158,7 +158,7 @@ contains call position_rgb(p, pl, rgb, id) ! Create a pixel at (x,y) with color (r,g,b) - call set_pixel(img, x, y, rgb(1), rgb(2), rgb(3)) + call set_pixel(img, x-1, y-1, rgb(1), rgb(2), rgb(3)) ! Advance pixel in first direction p % coord0 % xyz(in_i) = p % coord0 % xyz(in_i) + in_pixel