We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1406e06 commit d3636b0Copy full SHA for d3636b0
1 file changed
src/unicode_plot/canvas.cr
@@ -89,11 +89,13 @@ module UnicodePlot
89
end
90
91
def valid_y?(y : Float64) : Bool
92
+ return false unless y.finite?
93
sy = @yscale.call(y)
94
sy.finite? && @origin_y <= sy <= @origin_y + @height
95
96
97
def valid_x?(x : Float64) : Bool
98
+ return false unless x.finite?
99
sx = @xscale.call(x)
100
sx.finite? && @origin_x <= sx <= @origin_x + @width
101
0 commit comments