-
Notifications
You must be signed in to change notification settings - Fork 229
Migrate Figure.colorbar tests to use dvc #1143
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
Conversation
Summary of changed imagesThis is an auto-generated report of images that have changed on the DVC remote
Image diff(s)
Report last updated at commit 751b212 |
Do you think we should add a basemap to these tests, so that at least we know the colorbar is plotted at the correct positions.
Colorbars in two tests have messy annotations. Perhaps we should add |
Nah, I think it's fine as it is.
Yes, but is it important enough to test this? Also, adding a test seems beyond the scope of this migration PR.
Yes, probably good to change the annotation interval so the axis labels are visible. |
Co-authored-by: Dongdong Tian <[email protected]>
* remove test_colorbar_using_paper_coordinates_horizontal() * remove test_colorbar_box_with_rounded_corners() * remove test_colorbar_shading_string() * remove test_colorbar_positioned_using_justification_code() * remove test_colorbar_box_with_secondary_border() * remove test_colorbar_box_with_clearance() * remove test_colorbar_box_with_pen() * remove test_colorbar_box_with_offset_background() * update test_colorbar_shading_boolean() to use mpl_image_compare * remove test_color_shading_float and update test_colorbar_shading_list to use mpl_image_compare * remove .png files, add .dvc files * remove test_colorbar_positioned_using_normalized_coords() * remove test_colorbar_positioned_using_map_coordinates() * remove test_colorbar_using_paper_coordinates() Co-authored-by: Wei Ji <[email protected]> Co-authored-by: Dongdong Tian <[email protected]>
As discussed in #1131, this moves the reference figures in
fig.colorbar
to usedvc
and replaces the tests using@check_figures_equal
.Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version