Add test_hlines to test_datetimes.py#27211
Merged
ksunden merged 4 commits intomatplotlib:mainfrom Nov 21, 2023
Merged
Conversation
scottshambaugh
approved these changes
Oct 30, 2023
ksunden
requested changes
Oct 30, 2023
Member
ksunden
left a comment
There was a problem hiding this comment.
I think we also wish to test the xmin/xmax as dates here
Contributor
Author
Contributor
Author
Contributor
Author
|
@ksunden @scottshambaugh could I please have some advice on why the codecov/project/tests check is not passing? It's at 98.76% "compared to a589856" - I don't know why it's comparing this to the test for scatter. |
ksunden
approved these changes
Nov 8, 2023
Contributor
Author
|
If anybody is having the same issue, I think it stemmed simply from the fact that my branch was not current with the main body of work. Synchronizing it fixed the issue. |
64 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


PR summary
I have added a datetime smoketest for
Axes.hlinestolib/matplotlib/tests/test_datetime.py. This example is very similar toAxes.axhline(#27177) – but to test the entire functionality ofhlines, I have done a combination of datetime.datetime/np.datetime64 arrays with both scalar and arrayxmin/xmaxarguments.Below is an image of the plot generated from this example code.

This addresses the
Axes.hlinestask from #26864.PR checklist