No plot generation in flair

Dear Expert,

I’m encountering an issue with Flair—it’s not generating any plots and only displays a blank tab when I attempt to plot something. I’ve checked the output files, and they do contain data.

I’m attaching screenshots for your reference. Thank you

Best regards,
Shubham Agarwal



Dear Shubham,

Do you get any error messages on the Flair Output tab or in the terminal?

Cheers,
David

Dear David,

Thanks for the reply, I am getting following output.

Started 2025.05.20 17:00:05
Traceback (most recent call last):
File “/usr/local/flair/tkFlair.py”, line 1362, in call
return self.func(*args)
File “/usr/lib/python3.10/tkinter/init.py”, line 839, in callit
func(*args)
File “/usr/lib/python3/dist-packages/matplotlib/backends/_backend_tk.py”, line 489, in delayed_destroy
self.window.destroy()
File “/usr/lib/python3.10/tkinter/init.py”, line 2341, in destroy
self.tk.call(‘destroy’, self._w)
_tkinter.TclError: can’t invoke “destroy” command: application has been destroyed

Regards
Shubham

Hi @talktoshubhama I would guess that the problem is that you have parenthesis in the filename of the datafiles “(1)”.
The python traceback you see is something else, when you close a window from the button and python takes some time to react while the window is already closed.

Dear Vasilis,

Sorry for the late reply. I tried renaming the file to remove “(1)”, but I’m still not seeing the plot. The plot window opens, but it’s completely empty — not even the axes are displayed. I am using this on windows with ubuntu terminal

Regards
Shubham

Dear Shubham,

I have two questions?

  1. Does the plotting work with other projects?
  2. Which version of Flair are you using?

Cheers,
David

Dear David,

  1. No, plotting is not working with any project.
  2. Flair 3.3-1, Fluka 4-4.1

Cheers
Shubham

Dear Shubham,

If you click the Action label under the Plot button, do you have Gnuplot or Matplotlib selected?
Try to select the Gnuplot option as the Matplotlib one is still highly experimental feature.

Cheers,
David

Dear David,

Thank you very much. It was Matplotlib now I selected Gnuplot. It works.

Best,
Shubham