Skip to content

Crash in track fitting because of plotting #114

@coquelin77

Description

@coquelin77

Plotting should never cause a crash. Traceback:

Traceback (most recent call last):
  File "/home/daniel/MasterThesis/testbeam_analysis/testbeam_analysis/gui/gui_widgets/worker.py", line 54, in work
    self.main_func(self.args)
  File "/home/daniel/MasterThesis/testbeam_analysis/testbeam_analysis/gui/gui_widgets/plotter.py", line 226, in _get_figs
    **self.kwargs[multi_plot_key])
  File "/home/daniel/MasterThesis/testbeam_analysis/testbeam_analysis/tools/plot_utils.py", line 930, in plot_events
    ax.set_zlim(np.amin(np.array(z)), np.amax(np.array(z)))
  File "/home/daniel/anaconda2/lib/python2.7/site-packages/mpl_toolkits/mplot3d/axes3d.py", line 732, in set_zlim3d
    bottom = self._validate_converted_limits(bottom, self.convert_zunits)
  File "/home/daniel/anaconda2/lib/python2.7/site-packages/matplotlib/axes/_base.py", line 3040, in _validate_converted_limits
    raise ValueError("Axis limits cannot be NaN or Inf")
ValueError: Axis limits cannot be NaN or Inf

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions