Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot axes not matching with graphs when copying to clipboard or saving as .png #6543

Open
bw-01 opened this issue Aug 21, 2023 · 15 comments · Fixed by biolab/orange-widget-base#253
Assignees
Labels
bug A bug confirmed by the core team
Milestone

Comments

@bw-01
Copy link

bw-01 commented Aug 21, 2023

What's wrong?
When saving a distribution plot image as a .png file or copying it to the clipboard and pasting, the image axes do not align with the plot data. I've tested this on two PCs and experienced the same outcome.

image

How can we reproduce the problem?
Zip file containing my .ows and data file: A2.zip

On a Windows PC, create a distribution plot and either go to Edit > Copy Image to Clipboard then paste it into another application such as Word, or save the distribution as a .png file and open that.

What's your environment?

  • Operating system: Windows 11 Pro 10.0.22621 Build 22621
  • Orange version: 3.35.0
  • How you installed Orange: From the installer
@bw-01 bw-01 added the bug report Bug is reported by user, not yet confirmed by the core team label Aug 21, 2023
@markotoplak
Copy link
Member

Thanks. We've seen something similar multiple times: #5697 and #2887 (at least). But here we seem to be dealing with something new.

Could you inform us what is your screen resolution, size, and what the scaling setting is your system? Also, do you use multiple screens? If so, does the problem persist if you only have one screen connected?

@bw-01
Copy link
Author

bw-01 commented Aug 22, 2023

No problem. I did see #5697 so already did a few tests to see if it might be that (hence why I also checked on my laptop since it only has a single screen). This looks to be a new issue though, as far as I can tell.

My main setup has dual 1440p monitors at 144Hz, no scaling. My laptop has a single 2400x1600 screen, 150% scaling. Both exhibit the problem. Saving as an .svg or .pdf works ok, it's limited to copying or saving as .png.

@markotoplak
Copy link
Member

Thanks for the info. @ZanMervic was able to reproduce the bug locally on his Windows laptop.

@PrimozGodec
Copy link
Contributor

I think it is connected to pyqtgraph/pyqtgraph#1250

@markotoplak markotoplak added this to the 3.36.0 milestone Sep 1, 2023
@markotoplak markotoplak added bug A bug confirmed by the core team and removed bug report Bug is reported by user, not yet confirmed by the core team labels Sep 1, 2023
@markotoplak
Copy link
Member

I do not have a windows machine right now, but I suspect changes in biolab/orange-widget-base#208 or biolab/orange-widget-base#246.

If this is the only issue blocking the release, we could also ignore it for now.

@markotoplak
Copy link
Member

This bug was introduced in biolab/orange-widget-base#246, which means widget-base 4.21.0 was problematic. And Orange 3.35.0 installers.

@markotoplak
Copy link
Member

@AmewsSoft, @WolframRinke, this was just solved in orange-widget-base and will be available in orange-widget-base 4.22, which means with 3.36 official installers for most users.

Who installed manually will need to update orange-widget-base to 4.22, which will be available soon.

@WolframRinke
Copy link
Contributor

WolframRinke commented Sep 18, 2023 via email

@markotoplak
Copy link
Member

@WolframRinke, thanks for testing. Could you show us differences in a screenshot?

@markotoplak markotoplak reopened this Oct 3, 2023
@WolframRinke
Copy link
Contributor

WolframRinke commented Oct 3, 2023 via email

@WolframRinke
Copy link
Contributor

WolframRinke commented Oct 3, 2023 via email

@markotoplak
Copy link
Member

@WolframRinke, thanks, but it seems that if send images in an email, they do not get through. Could you please login into github and attach them here?

@WolframRinke
Copy link
Contributor

WolframRinke commented Oct 3, 2023 via email

@WolframRinke
Copy link
Contributor

orange3_plotting_issue.pdf
orange_plot_test.ows.zip

here are the missing files.

@markotoplak
Copy link
Member

Thanks, yes, I confirm the problem. Could you show me which packages do you have? Can you open Orange command prompt (there is an icon in the start menu for it) and type pip freeze and then paste the output here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug confirmed by the core team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants