gonum / plot

A repository for plotting and visualizing data
BSD 3-Clause "New" or "Revised" License
2.72k stars 202 forks source link

plotter: NewImage does not handle image.Uniform #752

Closed sbinet closed 2 years ago

sbinet commented 2 years ago

creating a plotter.Image from an image.Uniform results in gonum/plot taking a very veeeery long time to produce the plot. (that's because the image.Uniform has very large dimensions (1e9))

vg/vgimg.Canvas.DrawImage (and possibly other vg.Canvas implementations as well) will in turn fail to handle that image.Uniform (and "choke" on the very large dimensions).