coffeegrindsize icon indicating copy to clipboard operation
coffeegrindsize copied to clipboard

Histogram cannot be created

Open Ghotrix opened this issue 3 years ago • 0 comments

I'm not able to create a histogram after Particle Detection step:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.9/tkinter/__init__.py", line 1892, in __call__
    return self.func(*args)
  File "/home/ghotrix/.local/lib/python3.9/site-packages/coffeegrindsize/scripts/coffeegrindsize.py", line 600, in <lambda>
    histogram_button = Button(toolbar, text="Create Histogram", command=lambda: self.create_histogram(None), highlightbackground=toolbar_bg)
  File "/home/ghotrix/.local/lib/python3.9/site-packages/coffeegrindsize/scripts/coffeegrindsize.py", line 2973, in create_histogram
    figdata = figdata.reshape(fig.canvas.get_width_height()[::-1] + (3,))
ValueError: cannot reshape array of size 5298750 into shape (1130,1000,3)

Ghotrix avatar Apr 07 '21 11:04 Ghotrix