Skip to content
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

Positioning enhancements: location-like syntax and axis resize option #4

Open
kakearney opened this issue Apr 20, 2015 · 1 comment

Comments

@kakearney
Copy link
Owner

Enhancements requested by Joerg Huschke via FEX comments:

  1. The function should support the 'location' input like mathworks original legend does. Basically translate it to the Anchor/Buffer pair as provided in the function help text. I've already done this in my private extension of the function.

  2. When using the 'outside' variants of the legend location then the reference axis to which the legend shall be associated is not reduced to make room for the outside-legend, unlike for the mathworks original legend. So currently the outside positions are not really usable unless I shrink the axis myself before.

@kakearney
Copy link
Owner Author

kakearney commented Apr 20, 2015

Request 2 is pretty straightforward, and I should be able to implement that soon.

As for 3, I suppose that's a matter of preference... my choice to not mimic Matlab's resize-the-axis-to-make-room-for-a-legend behavior was intentional (particularly when labeling multiple subplots, that behavior always messed up my grid layout). But it shouldn't be too difficult to add an option to resize the axis when the an outside-like legend position is chosen and paired with the parent axis as the reference object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant