scipion-em / scipion-em-resmap

Plugin to use Resmap programs within the Scipion framework
GNU General Public License v3.0
1 stars 0 forks source link

histogram viewer doesnt work #12

Closed azazellochg closed 3 years ago

azazellochg commented 4 years ago
Exception in Tkinter callback
Traceback (most recent call last):
  File "/home/azazello/soft/miniconda3/envs/.scipion3env/lib/python3.8/tkinter/__init__.py", line 1883, in __call__
    return self.func(*args)
  File "/home/azazello/soft/scipion3/scipion-pyworkflow/pyworkflow/gui/form.py", line 1262, in _visualizeVar
    self.visualizeCallback(self.paramName)
  File "/home/azazello/soft/scipion3/scipion-pyworkflow/pyworkflow/viewer.py", line 266, in _visualizeParam
    views = self._getVisualizeDict()[paramName](paramName)
  File "/home/azazello/soft/scipion-em-plugins/scipion-em-resmap/resmap/viewers/resmap_viewers.py", line 209, in _plotHistogram
    plotter.plotHist(imgListNoZero, nbins)
  File "/home/azazello/soft/scipion3/scipion-em/pwem/viewers/plotter.py", line 80, in plotHist
    self.hist(yValues, nbins, facecolor=color, **kwargs)
  File "/home/azazello/soft/miniconda3/envs/.scipion3env/lib/python3.8/site-packages/matplotlib/__init__.py", line 1565, in inner
    return func(ax, *map(sanitize_sequence, args), **kwargs)
  File "/home/azazello/soft/miniconda3/envs/.scipion3env/lib/python3.8/site-packages/matplotlib/axes/_axes.py", line 6574, in hist
    self._process_unit_info(xdata=x[0], kwargs=kwargs)
  File "/home/azazello/soft/miniconda3/envs/.scipion3env/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 2073, in _process_unit_info
    kwargs = _process_single_axis(xdata, self.xaxis, 'xunits', kwargs)
  File "/home/azazello/soft/miniconda3/envs/.scipion3env/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 2056, in _process_single_axis
    axis.update_units(data)
  File "/home/azazello/soft/miniconda3/envs/.scipion3env/lib/python3.8/site-packages/matplotlib/axis.py", line 1510, in update_units
    converter = munits.registry.get_converter(data)
  File "/home/azazello/soft/miniconda3/envs/.scipion3env/lib/python3.8/site-packages/matplotlib/units.py", line 222, in get_converter
    return self.get_converter(first)
  File "/home/azazello/soft/miniconda3/envs/.scipion3env/lib/python3.8/site-packages/matplotlib/units.py", line 215, in get_converter
    first = cbook.safe_first_element(x)
  File "/home/azazello/soft/miniconda3/envs/.scipion3env/lib/python3.8/site-packages/matplotlib/cbook/__init__.py", line 1650, in safe_first_element
    raise RuntimeError("matplotlib does not support generators "
RuntimeError: matplotlib does not support generators as input