Conversation
|
Yeah, this solves my problem! Thank you! |
|
Thanks for pointing it out @agramfort because https://github.com/mne-tools/mne-python/pull/9351/checks?check_run_id=2440366851#step:12:2839 |
|
@larsoner what do you think about trying the alternative calculation only when the |
I think it's just a 0-1 vs 0-255 mapping problem, I'll test locally and push a fix
I'd rather not have two code paths. If we're forced to go back to |
|
This code: CodeGives on On what @agramfort tested you can see two bugs -- one I introduced and another involving Pushed a commit to fix both problems:
|
|
For me, deleting the |
|
... actually it doesn't make it work, it makes it look not cut off, which is good, but it's the wrong size, which is bad. I'll see if I can figure out what to do to make it work |
|
Okay should be fixed, can you review and test locally @GuillaumeFavelier ? |
GuillaumeFavelier
left a comment
There was a problem hiding this comment.
For me, everything works locally and the changes look good.
|
Thanks @larsoner!! |








Closes #9336
@crsegerie can you see if this fixes your problem?
I was able to replicate on Windows. Basically I think the problem was that after our DPI calculations, the resulting size was something like
1406.99999999instead of1407, so MPL made something with only 1406 pixels instead of 1407 and this broke things. We could try tweaking our DPI calculations, but it seems safer just to output a PNG then read it back, as this has the dimensions, then make use of our smart concat function to take care of any difference in dimension.Okay with you @GuillaumeFavelier ?