plot~'s bug on Max 8.2 beta
Hello! I found some bugs from the plot~ object of Max 8.2. The same patch is seen differently than how it looked until Max 8.11. I reported more or less the same bug before, and then the following update covered that bug later. Now, it seems that it happens again.
A screenshot from 8.11:

A screenshot from 8.2:

Thank you very much in advance! I look forward to the bug will be fixed!
All the best,
Can you post a patch so that we may try and reproduce? I believe the margins are not behaving as they always should have been, so maybe there is some compensation in your patch for the old behavior? Happy to take a look!
Hello, Ben. Here's the patch. Could you please have a look? Many thanks in advance!
It looks like the third argument to margins (bottom margin) was not being utilized correctly in Max 8.1.11. So, if you used a margin of '10. 5. 0. 5.' the bottom margin wasn't actually set to be the bottom of the object.
In Max 8.2.0, a margin of '0. 0. 0. 0.' is actually drawn correctly, with the margins not existing at all. I've attached your patch with the bottom margin adjusted for your plot~ objects.
Thanks for your advice. Were Max 6 and 7 also performing incorrectly? The below is the capture of the same patch executed in Max 7.3.6 Mac.

I will have a look at the code that you posted above. Thanks a lot, Ben!
So what actually looks to be the case is that in Max 7.3.6, the first argument to margins would set the bottom margin as well. Here is a side-by-side comparison of a plot~ with margins set to 10. 0. 0. 0. in both Max 8.2 and Max 7.3.6. You can see in the 7.3.6 example that the top and bottom margins are set by the first argument:

So, I should accept it like the plot~ object will change how it understands the parameters, unlike Max 6.x - 8.11?
Yes, I believe the current behavior (margins extending to the edges of the object and being independent) is the correct behavior.
So, I should update the files to read out the Max-version and apply accordingly the margins. :-)
Hello, may I ask a more question, please? I found some changed behaviours from the 8.2's plot~ object, although the attributes aren't 0. Are those again the change in the policy of the object?



Can you send along the patch? My assumption is that the new behavior is expected, as the bottom margin is now calculated correctly.
Yes, this looks like the same issue. Before, the bottom margin was not calculated properly. 0 is actually 0 now, so you will have to adjust the margins for any labels you want to display.
Thanks a lot! :-)