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
ratio="autot" fails to correctly generate the initial ratio #1795
Comments
I've sort-of got a fix for this worked out; it needs work, though. I'm running a full test suite on it and sending it out the the dashboard. |
@doutriaux1 https://open.cdash.org/viewTest.php?onlyfailed&buildid=4197349 Getting closer... |
looks like the diags doesn't set the bg dims and throws the tests off. |
Does diags use Multi? Because almost all of the multi tests failed as well |
@doutriaux1 So Multi was using "x.portrait" and "x.landscape", which triggered a call to canvasinfo prior to plot, which meant that bg wasn't set. I'll wager it's something similar in the diagnostics. https://open.cdash.org/viewTest.php?onlyfailed&buildid=4197441 |
@chaosphere2112 , according to @mcenerney1 diags are using Multi |
Going to open a PR for this, though it's not quite ready for release. Changed milestone to 2.4.1. |
@chaosphere2112 I changed the milestone to 2.6 if it makes it to 2.4.1 ok, but 2.4.1 is a uvcmetrics targeted release. |
@doutriaux1 @aashish24 Since this is a pretty minor issue, I'm going to backburner it for now while I get my GUI on. I'll come back to the PR in a month. |
Roger that @chaosphere2112 |
@chaosphere2112 This seems to work in my tests. Can you try it with the master branch . I fixed something that sounds like your problem in |
@doutriaux1 can you confirm if this is fixed? |
Works! |
If you plot something with
ratio="autot"
as the very first action you take with a canvas, the plot defaults to using the default window size, rather than the size that the canvas will actually have. This is because the call to determine the ratio happens prior to any calls tocreateRenWin()
in the backend, so default values are retrieved using thecanvasinfo()
function.Any future plots (or ones triggered by
canvas.update()
) will be the correct proportions.The text was updated successfully, but these errors were encountered: