-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[TST]: increase unit test coverage #26864
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
Good first issue - notes for new contributorsThis issue is suited to new contributors because it does not require understanding of the Matplotlib internals. To get started, please see our contributing guide. We do not assign issues. Check the Development section in the sidebar for linked pull requests (PRs). If there are none, feel free to start working on it. If there is an open PR, please collaborate on the work by reviewing it rather than duplicating it in a competing PR. If something is unclear, please reach out on any of our communication channels. |
Hello! I'll take Axes.scatter |
Hello, I will take the axes.bar |
hii @tacaswell |
Note we are testing |
Hi @tacaswell |
Hi @tacaswell I'd like to be assigned on one or more tasks |
Hi @Quetzalcoatl29, we do not assign tasks. Please work on whichever one you like. If you comment to say which you are starting on, as others have done, then that will help to prevent duplication of effort. |
Modify test_contour matplotlib#26864
I'll be working on |
I will work on Axes.hist |
I am able to write the test and run it with no failure but I am having a problem generating the graph. I tried adding plt.show() at the end of my test but that will make the test fail. Any help would be much appreciated. |
I will work on Axes.triplot. |
I will work on Axes.tricontourf. |
Hi, I'm new to Open-Source Contributions but I'd like to contribute towards this project. I can work on creating a test for axes.streamplot. |
…nd both x- and y-axis
I do believe we now have PRs (at least) opened for each of these. Thank you to all of the first time contributors who helped get us this far. |
Hello , I would like to tackle the Axes.quiver if you don't mind, since i notice that it has not been solved yet. |
Please note that we have an open PR for Quiver, and we generally prefer the earlier PR when possible. #27407 |
I'm removing the good first issue tag because we have PRs at least started for all points here. |
Thank you for your reply. I just noticed that the previous #27407 did not fully solve the problem. It only tested X and did not test Y, and the previous pull request has not been merged, so I thought I could continue to contribute to this issue. |
Uh oh!
There was an error while loading. Please reload this page.
Problem
Although we nominally support units through all of our plotting APIs, this is not through tested (unfortunately this is a case where code coverage is not super informative). The address this issue we would like to add a "smoke test" (does it run without smoke coming out?) of every plotting method using "unit-full" data. The most common "unit-full" data is likely datetime, thus we are going to use datetime and timedelta values as the vehicle to exhaustively test which of the methods correctly handle units.
This is the tracking issue for this work.
Process
lib/matplotlib/tests/test_datetime.py
. Please include an image of the generated plot in the description of the PR and cross reference this issue (by including#26864
in the PR description body). This is modeled forax.plot
(I took the easiest one ;) ) in Add datetime testing skeleton #26859.Task list
Axes.acorr
MNT/TST: remove xcorr and acorr from test_datetime #27427Axes.angle_spectrum
Axes.annotate
[TST] Added test_annotate in test_datetime.py #27222Axes.arrow
[TST] Added test_arrow in test_datetime.py #27372Axes.axhline
Add test_axhline in test_datetime.py #27177Axes.axhspan
added test_axhspan in test_datetime.py #27139Axes.axline
[TST] Added test_axlines in test_datetime.py #27326Axes.axvline
Add test_axvline to test_datetime.py #27208Axes.axvspan
added test_axvspan in test.datetime.py #27130Axes.bar
Add test_bar in test_datetime #27033Axes.bar_label
Added test for Axes.bar_label #27431Axes.barbs
Added smoke test for Axes.barbs in test_datetime.py #27331Axes.barh
Add test_barh to test_datetime.py #27084Axes.boxplot
Add datetime testing for boxplot #27038Axes.broken_barh
Added test for broken_barh to test_datetime.py #27428Axes.bxp
Add test_bxp in test_datetime.py #27390Axes.clabel
Defined the test_clabel function in the test_datetime file #27490Axes.cohere
Axes.contour
Add test_contour under test_datetime.py #27013Axes.contourf
Add test_contourf in test_datetime.py #27024Axes.csd
Axes.errorbar
Added smoke tests for Axes.errorbar in test_datetime.py #27185Axes.eventplot
Add test_eventplot to test_datetime.py #27466Axes.fill
Add test_fill in test_datetime.py #27401Axes.fill_between
Add test for fill_between in test_datetime.py #27423Axes.fill_betweenx
Added test_fill_betweenx in test_datetime.py #27425Axes.hexbin
Added datetime smoke test for Axes.hexbin #27475Axes.hist
Added test_hist in test_datetime.py #27028Axes.hist2d
Added test_hist2d #27418Axes.hlines
Add test_hlines to test_datetimes.py #27211Axes.imshow
Added smoke test for Axes.imshow to test_datetime.py #27476Axes.loglog
Added test_loglog in test_datetime.py #27435Axes.magnitude_spectrum
Axes.matshow
Added smoke test for Axes.matshow to test_datetime.py #27474Axes.pcolor
Added test_pcolor in test_datetime.py #27391Axes.pcolorfast
Attempted to add test_pcolorfast in test_datetime.py #27450Axes.pcolormesh
Added test_pcolormesh in test_datetime.py #27433Axes.phase_spectrum
Axes.pie
Remove datetime test for axes.pie #27117Axes.plot
Axes.plot_date
add test_plot_date in test_datetime.py #27037Axes.psd
Axes.quiver
Add test_quiver in test_datetime.py #27407Axes.quiverkey
Remove test_quiverkey from test_datetime.py #27449Axes.scatter
Add scatter test for datetime units #26882Axes.semilogx
Add test_semilogx and test_semilogy tests to test_datetime #27320Axes.semilogy
Add test_semilogx and test_semilogy tests to test_datetime #27320Axes.specgram
Remove test_spy from test_datetime.py #27392Axes.spy
Axes.stackplot
add test_stackplot in test_datetime.py #27114Axes.stairs
Added Axes.stairs test in test_datetime.py #27424Axes.stem
Added smoke test for Axes.stem #27135Axes.step
Add test_step to test_datetime.py #27091Axes.streamplot
Adding test for axes.streamplot using datetime #27489Axes.table
Axes.text
Added smoke test for Axes.text in test_datetime.py #27142Axes.tricontour
Added test for tricontour in test_datetime.py #27494Axes.tricontourf
Added Axes.tricontourf Datetime Test #27487Axes.tripcolor
test_tripcolor (Issue #26864) plots with datetime on x-axis only , y-axis only, and both x- and y-axis #27491Axes.triplot
Added DateTime Test for triplot #27488Axes.violin
Added test for ax.violin #27486Axes.violinplot
Add axes.violinplot test from test_datetime.py #27521Axes.vlines
Add test_vlines to test_datetime.py #27410Axes.xcorr
MNT/TST: remove xcorr and acorr from test_datetime #27427The text was updated successfully, but these errors were encountered: