Migrate Figure.colorbar tests to use dvc#1143
Conversation
Summary of changed imagesThis is an auto-generated report of images that have changed on the DVC remote
Image diff(s)Details
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 <seisman.info@gmail.com>
* 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 <23487320+weiji14@users.noreply.github.com> Co-authored-by: Dongdong Tian <seisman.info@gmail.com>


As discussed in #1131, this moves the reference figures in
fig.colorbarto usedvcand replaces the tests using@check_figures_equal.Reminders
make formatandmake checkto 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