Skip to content

Crash in Stretch tab of Bayes Fitting #41142

@adriazalvarez

Description

@adriazalvarez

Describe the bug

When running the stretch algorithm from the bayes fitting interface and the quickbayes backend: If beta is set to 1, Mantid crashes when trying to plot the beta parameter workspace from the Output plot widget. The reason is that it tries to plot a colorfill plot on a one bin workspace. This would raise a matplotlib exception when trying to plot same workspace from the ads.

Image

Expected behavior

When the output fit parameter workspace has only one bin, it shouldn't try to plot a colorfill.

Screenshots

Platform/Version (please complete the following information):

  • OS: Ubuntu
  • OS Version:24
  • Mantid Version v6.15

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIssues and pull requests that are regressions or would be considered a bug by users (e.g. crashing)ISIS: SpectroscopyIssue and pull requests relating to Muons, Indirect and Inelastic at ISIS

    Type

    Projects

    Status

    Funnel

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions