plot~'s bug on Max 8.2 beta


    Sep 16 2021 | 4:58 pm
    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:
    The points/circles and lines are exactly drawn in the plot~ object.
    The points/circles and lines are exactly drawn in the plot~ object.
    A screenshot from 8.2:
    It looks different from the capture above.
    It looks different from the capture above.
    Thank you very much in advance! I look forward to the bug will be fixed!
    All the best,

    • Sep 16 2021 | 6:08 pm
      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!
    • Sep 16 2021 | 6:21 pm
      Hello, Ben. Here's the patch. Could you please have a look? Many thanks in advance!
    • Sep 16 2021 | 6:56 pm
      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.
    • Sep 16 2021 | 7:01 pm
      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.
      A capture of the same patcher taken at Max 7
      A capture of the same patcher taken at Max 7
      I will have a look at the code that you posted above. Thanks a lot, Ben!
    • Sep 16 2021 | 7:10 pm
      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:
    • Sep 16 2021 | 7:17 pm
      So, I should accept it like the plot~ object will change how it understands the parameters, unlike Max 6.x - 8.11?
    • Sep 16 2021 | 7:20 pm
      Yes, I believe the current behavior (margins extending to the edges of the object and being independent) is the correct behavior.
    • Sep 16 2021 | 7:26 pm
      So, I should update the files to read out the Max-version and apply accordingly the margins. :-)
    • Sep 17 2021 | 12:47 pm
      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?
      On Max 8.1.11
      On Max 8.1.11
      On Max 8.2 (ba4ca3ebc74)
      On Max 8.2 (ba4ca3ebc74)
      Changed the third argument on Max 8.2 (ba4ca3ebc74)
      Changed the third argument on Max 8.2 (ba4ca3ebc74)
    • Sep 17 2021 | 4:31 pm
      Can you send along the patch? My assumption is that the new behavior is expected, as the bottom margin is now calculated correctly.
    • Sep 17 2021 | 5:05 pm
    • Sep 17 2021 | 5:10 pm
      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.
    • Sep 17 2021 | 7:20 pm
      Thanks a lot! :-)