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

pictures.add: Excel is slightly changing the dimensions if the original chart changes #311

Closed
fzumstein opened this issue Nov 28, 2015 · 1 comment · Fixed by #1310
Closed
Labels
Milestone

Comments

@fzumstein
Copy link
Member

Even if you reset the chart, it will be slightly distorted, e.g. 97%/103%

@fzumstein fzumstein added the bug label Nov 28, 2015
@fzumstein fzumstein changed the title Plot(): Excel is slightly changing the dimensions it seems if the original chart changes Plot(): Excel is slightly changing the dimensions if the original chart changes Nov 28, 2015
@fzumstein fzumstein changed the title Plot(): Excel is slightly changing the dimensions if the original chart changes pictures.add: Excel is slightly changing the dimensions if the original chart changes Sep 19, 2016
@fzumstein
Copy link
Member Author

fzumstein commented May 9, 2020

might be fixable with this:

sheet.shapes[0].api.ScaleHeight(1, True)
sheet.shapes[0].api.ScaleWidth(1, True)
sheet.shapes[0].api.scale_height(scale=k.scale_from_top_left, relative_to_original_size=True, factor=1)
sheet.shapes[0].api.scale_width(scale=k.scale_from_top_left, relative_to_original_size=True, factor=1)

@fzumstein fzumstein added this to the 0.19.2 milestone May 11, 2020
@fzumstein fzumstein mentioned this issue May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant