8000 Changes in Background Color ignored when exporting via Live Script · Issue #377 · altmany/export_fig · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Changes in Background Color ignored when exporting via Live Script #377

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

Closed
bernb opened this issue 8000 May 18, 2023 · 1 comment
Closed

Changes in Background Color ignored when exporting via Live Script #377

bernb opened this issue May 18, 2023 · 1 comment
Labels

Comments

@bernb
Copy link
bernb commented May 18, 2023

This seems to be a regression introduced by #375 as it worked as intended in version 3.37.
The following code produces the correct result when pasted into the command windows. However, if the same code is run as a live script, the background is not changed to white.

[x,y] = meshgrid(1:15,1:15);
z = peaks(15);
T = delaunay(x,y);
p = trisurf(T,x,y,z);
p.Parent.Parent.Color = 'w';
export_fig(p.Parent.Parent, 'tester.pdf');

Same result if exported as PNG. Properties of axes seem to be used correctly. I am not aware of other visually relevant properties of a figure object, so I only tested with the color property.

@altmany
Copy link
Owner
altmany commented May 30, 2023

This was not a regression bug but an unrelated issue due to the fact that non-default bgcolor of uifigures was never handled until now. It's now fixed in the latest commit (de3bc78).

@altmany altmany 4D8E closed this as completed May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0