orange3 icon indicating copy to clipboard operation
orange3 copied to clipboard

Python Code (with Matplotlib) export does not work if shape or size are defined

Open jureyherrera opened this issue 8 months ago • 6 comments

What's wrong?

Scatter Plot widget does not save any file when trying to save the Python Code (with Matplotlib)(*.py)

How can we reproduce the problem?

For example, 1.Use the Liver spectroscopy (Collagen) Orange dataset, 2.Plot data with Scatter Plot widget, 3. Click on save and select Python Code, after clicking on save, it does not save any *.py file.

Image

What's your environment?

  • Operating system: Windows 11
  • Orange version: 3.40.0
  • How you installed Orange: Directly by downloading the .exe file

jureyherrera avatar Mar 17 '26 14:03 jureyherrera

Hey! I may be able to help with this bug.

I build custom fixes for Python projects and automation systems.

If you'd like help resolving this issue quickly feel free to reach out.

Happy to take a look 👍

FocusMode-coder avatar Mar 17 '26 15:03 FocusMode-coder

It works for me. I'm perplexed by the dialog at the top left of your screenshot. Are you sure that you're looking at the correct directory?

janezd avatar Mar 17 '26 19:03 janezd

Hello, I just tried in another computer and it is working, so there might be something wrong with my Orange installation, I will reinstall it.

Thanks a lot for your prompt response.

jureyherrera avatar Mar 18 '26 13:03 jureyherrera

Actually, I think just found the bug, if you have the same Shape for the plot points, saving the *.py works, but if you have different shapes, for example using its "type" then it does not save any file:

Image

jureyherrera avatar Mar 18 '26 13:03 jureyherrera

I was able to replicate the bug on my Mac.

markotoplak avatar Mar 18 '26 13:03 markotoplak

Thanks for diagnosing and reporting. PR with a fix is in a dependency (orange-widget-base).

janezd avatar Mar 21 '26 09:03 janezd