sunetos / TextPlots.jl

Fancy terminal plotting for Julia using Braille characters.
MIT License
45 stars 11 forks source link

BoundsError: plot(sinpi, -2, 2) #2

Closed StefanKarpinski closed 10 years ago

StefanKarpinski commented 10 years ago
julia> plot(sinpi, -2, 2)
ERROR: BoundsError()
 in showdot at /Users/stefan/.julia/TextPlots/src/plot.jl:47
 in plot at /Users/stefan/.julia/TextPlots/src/plot.jl:82
 in plot at /Users/stefan/.julia/TextPlots/src/plot.jl:127
sunetos commented 10 years ago

I ran into this occasionally too. I never did come up with a solution I liked for handling values at the boundaries of the graph, but this cheap hack handles all the cases I know of.