Fixed off-by-one indexing error in the plotter

This commit is contained in:
Nick Horelik 2014-05-08 10:50:42 -04:00
parent 434f2097c5
commit 0291c0f047

View file

@ -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