Skip to content

Commit 302d9d8

Browse files
committed
Fix annotation position
1 parent 43d3c22 commit 302d9d8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/unicode_plot/canvas.cr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ module UnicodePlot
240240
cy = floor_to_i32(scale_y_to_pixel(y) / y_pixel_per_char.to_f)
241241
return self unless cx && cy
242242

243+
cx += 1
244+
cy += 1
243245
char_point!(cx, cy, char, color, blend)
244246
self
245247
end

0 commit comments

Comments
 (0)