Repository navigation
[ENH]: data kwarg support for mplot3d #20912 - #20951
Conversation
There was a problem hiding this comment.
Thank you for opening your first PR into Matplotlib!
If you have not heard from us in a while, please feel free to ping @matplotlib/developers or anyone who has commented on the PR. Most of our reviewers are volunteers and sometimes things fall through the cracks.
You can also join us on gitter for real-time discussion.
For details on testing, writing docs, and our review process, please see the developer guide
We strive to be a welcoming and open project. Please follow our Code of Conduct.
|
Hi, thanks for the commit but you accidentally included a whole bunch of files. Please remedy that by
It's fine if you open a new PR to do this as I figure starting over with a new branch will be easier than cleaning up this one. |
|
Hi, I noticed that I might have added my virtual environment files to the commit, in a hurry. I will try to cleanup this branch first and in case that does not work out, I will create a new PR and close this one. |
|
You can force-push over this PR.
There are multiple ways to cleanup a branch, with more or less git magic. 2.1) Backup the changes you still want. Anyway, the important message is: you can |
|
Hi, I have added the @_preprocess_data decorator to the scatter method in mplot3d/axes3d.py and it seems to work properly. Code: import matplotlib.pyplot as plt
>>> plt.gcf().add_subplot(projection="3d").scatter("a", "b", "c", data={"a": [0], "b": [1], "c": [2]})
<mpl_toolkits.mplot3d.art3d.Path3DCollection object at 0x7f80872b9400>
>>> plt.show()It gives the desired output. I have a couple of queries.
|
Place this before the We auto-generate the content for the description. |
|
Hi, |
|
Is it ok that this isn't tested? |
|
I think that's okish not to have tests. Systematically adding new tests for data kwarg an all functions seems overkill. Maybe one could add one or two image comparison tests and/or change some existing tests to use |
|
Congrats on your first pr @jayjoshi112711! 🥳 |
|
@meeseeksdev backport to v3.5.x |
…arg-support-mplot3d [ENH]: data kwarg support for mplot3d matplotlib#20912
…t-mplot3d [ENH]: data kwarg support for mplot3d #20912
…arg-support-mplot3d [ENH]: data kwarg support for mplot3d matplotlib#20912

PR Summary
Fix #20912
Hi, I have started working on this issue. This will be my first open source contribution, so I will need some help and guidance. I have gone through the contributing guide and have setup the development environment and Matplotlib in editable mode on my system.
I am currently working on understanding the Matplotlib internals.