-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[ENH]: Z-axis/3D support for Figure options #23566
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
Comments
Probably a quite good way to solve it is to loop over the possible axis rather than have everything hard coded like it is now. Also, changing the limits to "Min" and "Max" rather than "Left"/"Bottom" and "Right"/"Top" should be a thing. |
This may be a good first issue, but requires quite a bit of understanding of how Python works with naming etc to change it into loops and some understanding of Qt. |
Hi @oscargus ! I was taking a look at this and would try to work on it. Is this open for contributions? |
Sure! You are very welcome to give it a go! |
Thanks! Do you have any suggested starting points for me? I took a look at |
This is the file that contains the figure options dialog: I'd start by making it general so that there is no need to hardcode x and y, so calling functions with a dynamic name and loop over x and y. When that works, it would "just" be to also loop over z as well (if there is a z). Note that even if you do not pull it off completely, just modifying the code to be more modular would be a step. From a quick look it seems like the A problem here is that there are no automatic tests for it, so one will need to manually test after changing something to make sure it still works. |
Making a dict may not be a good idea as it seems like the underlying GUI expects a list of tuples: So maybe conditionally extend |
You can replace, say, |
Thanks, @oscargus, this is really helpful. I'll get to working on it today. |
Hi @chahak13 - is this issue fixed by your PR? |
Yep! @melissawm |
Problem
The QT backend do have a figure option dialogue which allows changing a few parameters for the x and y axes, but not the z axes (when there is one).
Proposed solution
Add support for z axes (when there is one).
The text was updated successfully, but these errors were encountered: