diff --git a/tests/plotting/baseline/test_2D_timeseries_plot.png b/tests/plotting/baseline/test_2D_timeseries_plot.png index d8c1e9e6d0..25bfcd9d69 100644 Binary files a/tests/plotting/baseline/test_2D_timeseries_plot.png and b/tests/plotting/baseline/test_2D_timeseries_plot.png differ diff --git a/tests/plotting/baseline/test_2d_as_1d.png b/tests/plotting/baseline/test_2d_as_1d.png index ee49a3fa4a..1d8617ddba 100644 Binary files a/tests/plotting/baseline/test_2d_as_1d.png and b/tests/plotting/baseline/test_2d_as_1d.png differ diff --git a/tests/plotting/baseline/test_add_nan_line.png b/tests/plotting/baseline/test_add_nan_line.png index 4ef242543a..9605beaee0 100644 Binary files a/tests/plotting/baseline/test_add_nan_line.png and b/tests/plotting/baseline/test_add_nan_line.png differ diff --git a/tests/plotting/baseline/test_assessment_overplot.png b/tests/plotting/baseline/test_assessment_overplot.png index c1108a15b0..55c6f15d29 100644 Binary files a/tests/plotting/baseline/test_assessment_overplot.png and b/tests/plotting/baseline/test_assessment_overplot.png differ diff --git a/tests/plotting/baseline/test_assessment_overplot_multi.png b/tests/plotting/baseline/test_assessment_overplot_multi.png index 520c977077..bc8ea63087 100644 Binary files a/tests/plotting/baseline/test_assessment_overplot_multi.png and b/tests/plotting/baseline/test_assessment_overplot_multi.png differ diff --git a/tests/plotting/baseline/test_barb_sounding_plot.png b/tests/plotting/baseline/test_barb_sounding_plot.png index 98b8e5b756..9380ca3b6e 100644 Binary files a/tests/plotting/baseline/test_barb_sounding_plot.png and b/tests/plotting/baseline/test_barb_sounding_plot.png differ diff --git a/tests/plotting/baseline/test_colorbar_labels.png b/tests/plotting/baseline/test_colorbar_labels.png index ac4ead2ede..fdb5347016 100644 Binary files a/tests/plotting/baseline/test_colorbar_labels.png and b/tests/plotting/baseline/test_colorbar_labels.png differ diff --git a/tests/plotting/baseline/test_contour.png b/tests/plotting/baseline/test_contour.png index c2651dee65..d97bc4eab7 100644 Binary files a/tests/plotting/baseline/test_contour.png and b/tests/plotting/baseline/test_contour.png differ diff --git a/tests/plotting/baseline/test_contour2.png b/tests/plotting/baseline/test_contour2.png index c6a9567e89..f53bc9d534 100644 Binary files a/tests/plotting/baseline/test_contour2.png and b/tests/plotting/baseline/test_contour2.png differ diff --git a/tests/plotting/baseline/test_contour_stamp.png b/tests/plotting/baseline/test_contour_stamp.png index 25a17ba8f2..fb8aac80e7 100644 Binary files a/tests/plotting/baseline/test_contour_stamp.png and b/tests/plotting/baseline/test_contour_stamp.png differ diff --git a/tests/plotting/baseline/test_contourf.png b/tests/plotting/baseline/test_contourf.png index 726e7a824b..f4e040797c 100644 Binary files a/tests/plotting/baseline/test_contourf.png and b/tests/plotting/baseline/test_contourf.png differ diff --git a/tests/plotting/baseline/test_contourf2.png b/tests/plotting/baseline/test_contourf2.png index 3421f15ad7..9b0fce57d7 100644 Binary files a/tests/plotting/baseline/test_contourf2.png and b/tests/plotting/baseline/test_contourf2.png differ diff --git a/tests/plotting/baseline/test_enhanced_skewt_plot.png b/tests/plotting/baseline/test_enhanced_skewt_plot.png index 958a6c1272..27de1a5985 100644 Binary files a/tests/plotting/baseline/test_enhanced_skewt_plot.png and b/tests/plotting/baseline/test_enhanced_skewt_plot.png differ diff --git a/tests/plotting/baseline/test_enhanced_skewt_plot_2.png b/tests/plotting/baseline/test_enhanced_skewt_plot_2.png index f5796d5537..79dd95a641 100644 Binary files a/tests/plotting/baseline/test_enhanced_skewt_plot_2.png and b/tests/plotting/baseline/test_enhanced_skewt_plot_2.png differ diff --git a/tests/plotting/baseline/test_fill_between.png b/tests/plotting/baseline/test_fill_between.png index c595d3ff43..e4417bd3b6 100644 Binary files a/tests/plotting/baseline/test_fill_between.png and b/tests/plotting/baseline/test_fill_between.png differ diff --git a/tests/plotting/baseline/test_geoplot.png b/tests/plotting/baseline/test_geoplot.png index ef1febd4c6..974034f45e 100644 Binary files a/tests/plotting/baseline/test_geoplot.png and b/tests/plotting/baseline/test_geoplot.png differ diff --git a/tests/plotting/baseline/test_geoplot_tile.png b/tests/plotting/baseline/test_geoplot_tile.png index 22cd40e5ed..7b87f46cbc 100644 Binary files a/tests/plotting/baseline/test_geoplot_tile.png and b/tests/plotting/baseline/test_geoplot_tile.png differ diff --git a/tests/plotting/baseline/test_groupby_plot.png b/tests/plotting/baseline/test_groupby_plot.png index fc35f8fe73..3f84b4502d 100644 Binary files a/tests/plotting/baseline/test_groupby_plot.png and b/tests/plotting/baseline/test_groupby_plot.png differ diff --git a/tests/plotting/baseline/test_heatmap.png b/tests/plotting/baseline/test_heatmap.png index f63777fb05..500809d117 100644 Binary files a/tests/plotting/baseline/test_heatmap.png and b/tests/plotting/baseline/test_heatmap.png differ diff --git a/tests/plotting/baseline/test_heatmap2.png b/tests/plotting/baseline/test_heatmap2.png index 50eb8b296f..75787da33b 100644 Binary files a/tests/plotting/baseline/test_heatmap2.png and b/tests/plotting/baseline/test_heatmap2.png differ diff --git a/tests/plotting/baseline/test_heatmap3.png b/tests/plotting/baseline/test_heatmap3.png index 37a5b32610..0218fd1538 100644 Binary files a/tests/plotting/baseline/test_heatmap3.png and b/tests/plotting/baseline/test_heatmap3.png differ diff --git a/tests/plotting/baseline/test_match_ylimits_plot.png b/tests/plotting/baseline/test_match_ylimits_plot.png index 748b7c8385..d529a6f7f8 100644 Binary files a/tests/plotting/baseline/test_match_ylimits_plot.png and b/tests/plotting/baseline/test_match_ylimits_plot.png differ diff --git a/tests/plotting/baseline/test_multi_skewt_plot.png b/tests/plotting/baseline/test_multi_skewt_plot.png index 857ebed1f7..f08a1e3522 100644 Binary files a/tests/plotting/baseline/test_multi_skewt_plot.png and b/tests/plotting/baseline/test_multi_skewt_plot.png differ diff --git a/tests/plotting/baseline/test_multidataset_plot_dict.png b/tests/plotting/baseline/test_multidataset_plot_dict.png index a9f6a660f9..5f4b72bf78 100644 Binary files a/tests/plotting/baseline/test_multidataset_plot_dict.png and b/tests/plotting/baseline/test_multidataset_plot_dict.png differ diff --git a/tests/plotting/baseline/test_multidataset_plot_tuple.png b/tests/plotting/baseline/test_multidataset_plot_tuple.png index 8e74f35dca..83991fb2e2 100644 Binary files a/tests/plotting/baseline/test_multidataset_plot_tuple.png and b/tests/plotting/baseline/test_multidataset_plot_tuple.png differ diff --git a/tests/plotting/baseline/test_plot.png b/tests/plotting/baseline/test_plot.png index 921753d729..5e690435b9 100644 Binary files a/tests/plotting/baseline/test_plot.png and b/tests/plotting/baseline/test_plot.png differ diff --git a/tests/plotting/baseline/test_plot_barbs_from_u_v.png b/tests/plotting/baseline/test_plot_barbs_from_u_v.png index a1c58e3410..dec24618da 100644 Binary files a/tests/plotting/baseline/test_plot_barbs_from_u_v.png and b/tests/plotting/baseline/test_plot_barbs_from_u_v.png differ diff --git a/tests/plotting/baseline/test_plot_barbs_from_u_v2.png b/tests/plotting/baseline/test_plot_barbs_from_u_v2.png index 0b360d4e6e..9112d54ed0 100644 Binary files a/tests/plotting/baseline/test_plot_barbs_from_u_v2.png and b/tests/plotting/baseline/test_plot_barbs_from_u_v2.png differ diff --git a/tests/plotting/baseline/test_plot_datarose.png b/tests/plotting/baseline/test_plot_datarose.png index a903d2a340..1b85fb841e 100644 Binary files a/tests/plotting/baseline/test_plot_datarose.png and b/tests/plotting/baseline/test_plot_datarose.png differ diff --git a/tests/plotting/baseline/test_qc_bar_plot.png b/tests/plotting/baseline/test_qc_bar_plot.png index d8167eb7d2..d298b39a08 100644 Binary files a/tests/plotting/baseline/test_qc_bar_plot.png and b/tests/plotting/baseline/test_qc_bar_plot.png differ diff --git a/tests/plotting/baseline/test_qc_flag_block_plot.png b/tests/plotting/baseline/test_qc_flag_block_plot.png index 4ce6106337..dccaed9b30 100644 Binary files a/tests/plotting/baseline/test_qc_flag_block_plot.png and b/tests/plotting/baseline/test_qc_flag_block_plot.png differ diff --git a/tests/plotting/baseline/test_scatter.png b/tests/plotting/baseline/test_scatter.png index bdd98143f2..7fba0883d0 100644 Binary files a/tests/plotting/baseline/test_scatter.png and b/tests/plotting/baseline/test_scatter.png differ diff --git a/tests/plotting/baseline/test_scatter2.png b/tests/plotting/baseline/test_scatter2.png index 1f512fe019..2feb1f4c53 100644 Binary files a/tests/plotting/baseline/test_scatter2.png and b/tests/plotting/baseline/test_scatter2.png differ diff --git a/tests/plotting/baseline/test_size_distribution.png b/tests/plotting/baseline/test_size_distribution.png index 2fa19f74d9..783fa2fdf7 100644 Binary files a/tests/plotting/baseline/test_size_distribution.png and b/tests/plotting/baseline/test_size_distribution.png differ diff --git a/tests/plotting/baseline/test_size_distribution2.png b/tests/plotting/baseline/test_size_distribution2.png index e5d63d4ac3..40ddfaf84b 100644 Binary files a/tests/plotting/baseline/test_size_distribution2.png and b/tests/plotting/baseline/test_size_distribution2.png differ diff --git a/tests/plotting/baseline/test_skewt_options.png b/tests/plotting/baseline/test_skewt_options.png index f39af2fde8..8b477d0ab5 100644 Binary files a/tests/plotting/baseline/test_skewt_options.png and b/tests/plotting/baseline/test_skewt_options.png differ diff --git a/tests/plotting/baseline/test_skewt_plot.png b/tests/plotting/baseline/test_skewt_plot.png index b9335339b6..22c75423ba 100644 Binary files a/tests/plotting/baseline/test_skewt_plot.png and b/tests/plotting/baseline/test_skewt_plot.png differ diff --git a/tests/plotting/baseline/test_skewt_plot_spd_dir.png b/tests/plotting/baseline/test_skewt_plot_spd_dir.png index b9335339b6..22c75423ba 100644 Binary files a/tests/plotting/baseline/test_skewt_plot_spd_dir.png and b/tests/plotting/baseline/test_skewt_plot_spd_dir.png differ diff --git a/tests/plotting/baseline/test_stacked_bar_graph.png b/tests/plotting/baseline/test_stacked_bar_graph.png index bd52279209..a4c73bfe9e 100644 Binary files a/tests/plotting/baseline/test_stacked_bar_graph.png and b/tests/plotting/baseline/test_stacked_bar_graph.png differ diff --git a/tests/plotting/baseline/test_stacked_bar_graph2.png b/tests/plotting/baseline/test_stacked_bar_graph2.png index 13e1fc78ef..fb55f921a9 100644 Binary files a/tests/plotting/baseline/test_stacked_bar_graph2.png and b/tests/plotting/baseline/test_stacked_bar_graph2.png differ diff --git a/tests/plotting/baseline/test_stacked_bar_graph3.png b/tests/plotting/baseline/test_stacked_bar_graph3.png index bd483fb485..64ece6b91f 100644 Binary files a/tests/plotting/baseline/test_stacked_bar_graph3.png and b/tests/plotting/baseline/test_stacked_bar_graph3.png differ diff --git a/tests/plotting/baseline/test_stacked_bar_graph_sorted.png b/tests/plotting/baseline/test_stacked_bar_graph_sorted.png index 4607ad3d27..0af0344762 100644 Binary files a/tests/plotting/baseline/test_stacked_bar_graph_sorted.png and b/tests/plotting/baseline/test_stacked_bar_graph_sorted.png differ diff --git a/tests/plotting/baseline/test_stair_graph.png b/tests/plotting/baseline/test_stair_graph.png index 8c0e0fb4c6..d5392f3142 100644 Binary files a/tests/plotting/baseline/test_stair_graph.png and b/tests/plotting/baseline/test_stair_graph.png differ diff --git a/tests/plotting/baseline/test_stair_graph2.png b/tests/plotting/baseline/test_stair_graph2.png index 298b8fe834..1ad8a2e48c 100644 Binary files a/tests/plotting/baseline/test_stair_graph2.png and b/tests/plotting/baseline/test_stair_graph2.png differ diff --git a/tests/plotting/baseline/test_stair_graph_sorted.png b/tests/plotting/baseline/test_stair_graph_sorted.png index 5d2f888b0c..02641f0e8c 100644 Binary files a/tests/plotting/baseline/test_stair_graph_sorted.png and b/tests/plotting/baseline/test_stair_graph_sorted.png differ diff --git a/tests/plotting/baseline/test_time_height_scatter.png b/tests/plotting/baseline/test_time_height_scatter.png index 08ab88119c..4e5dc819e1 100644 Binary files a/tests/plotting/baseline/test_time_height_scatter.png and b/tests/plotting/baseline/test_time_height_scatter.png differ diff --git a/tests/plotting/baseline/test_time_height_scatter2.png b/tests/plotting/baseline/test_time_height_scatter2.png index d737ec75d8..0ead21c30f 100644 Binary files a/tests/plotting/baseline/test_time_height_scatter2.png and b/tests/plotting/baseline/test_time_height_scatter2.png differ diff --git a/tests/plotting/baseline/test_time_plot.png b/tests/plotting/baseline/test_time_plot.png index 46ab1e433e..4c772ba994 100644 Binary files a/tests/plotting/baseline/test_time_plot.png and b/tests/plotting/baseline/test_time_plot.png differ diff --git a/tests/plotting/baseline/test_time_plot2.png b/tests/plotting/baseline/test_time_plot2.png index 95b493c342..19273939ec 100644 Binary files a/tests/plotting/baseline/test_time_plot2.png and b/tests/plotting/baseline/test_time_plot2.png differ diff --git a/tests/plotting/baseline/test_time_plot_match_color_ylabel.png b/tests/plotting/baseline/test_time_plot_match_color_ylabel.png index e356448e1c..ba3ba31448 100644 Binary files a/tests/plotting/baseline/test_time_plot_match_color_ylabel.png and b/tests/plotting/baseline/test_time_plot_match_color_ylabel.png differ diff --git a/tests/plotting/baseline/test_timeseries_invert.png b/tests/plotting/baseline/test_timeseries_invert.png index e51dbfd11a..8686032e91 100644 Binary files a/tests/plotting/baseline/test_timeseries_invert.png and b/tests/plotting/baseline/test_timeseries_invert.png differ diff --git a/tests/plotting/baseline/test_violin.png b/tests/plotting/baseline/test_violin.png index 743911ffde..9af6ec9c89 100644 Binary files a/tests/plotting/baseline/test_violin.png and b/tests/plotting/baseline/test_violin.png differ diff --git a/tests/plotting/baseline/test_violin2.png b/tests/plotting/baseline/test_violin2.png index e642fe633f..ce0b7258f9 100644 Binary files a/tests/plotting/baseline/test_violin2.png and b/tests/plotting/baseline/test_violin2.png differ diff --git a/tests/plotting/baseline/test_wind_rose.png b/tests/plotting/baseline/test_wind_rose.png index 95e6b4c1ee..cc86e9e53b 100644 Binary files a/tests/plotting/baseline/test_wind_rose.png and b/tests/plotting/baseline/test_wind_rose.png differ diff --git a/tests/plotting/baseline/test_xlim_correction_plot.png b/tests/plotting/baseline/test_xlim_correction_plot.png index 0d64734bc8..f66fd2b44f 100644 Binary files a/tests/plotting/baseline/test_xlim_correction_plot.png and b/tests/plotting/baseline/test_xlim_correction_plot.png differ diff --git a/tests/plotting/baseline/test_xsection_plot.png b/tests/plotting/baseline/test_xsection_plot.png index cc0de83249..4f88b5c404 100644 Binary files a/tests/plotting/baseline/test_xsection_plot.png and b/tests/plotting/baseline/test_xsection_plot.png differ diff --git a/tests/plotting/baseline/test_xsection_plot_map.png b/tests/plotting/baseline/test_xsection_plot_map.png index fa4ed0b2a3..3ae6491098 100644 Binary files a/tests/plotting/baseline/test_xsection_plot_map.png and b/tests/plotting/baseline/test_xsection_plot_map.png differ diff --git a/tests/plotting/baseline/test_y_axis_flag_meanings.png b/tests/plotting/baseline/test_y_axis_flag_meanings.png index 76de97076d..9d1d2f2eee 100644 Binary files a/tests/plotting/baseline/test_y_axis_flag_meanings.png and b/tests/plotting/baseline/test_y_axis_flag_meanings.png differ diff --git a/tests/plotting/test_contourdisplay.py b/tests/plotting/test_contourdisplay.py index 2b6f4096b7..f0ef8a144c 100644 --- a/tests/plotting/test_contourdisplay.py +++ b/tests/plotting/test_contourdisplay.py @@ -8,7 +8,7 @@ matplotlib.use('Agg') -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_contour(): files = sample_files.EXAMPLE_MET_CONTOUR time = '2019-05-08T04:00:00.000000000' @@ -36,7 +36,7 @@ def test_contour(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_contour_stamp(): files = sample_files.EXAMPLE_STAMP_WILDCARD test = {} @@ -58,7 +58,7 @@ def test_contour_stamp(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_contour2(): files = sample_files.EXAMPLE_MET_CONTOUR time = '2019-05-08T04:00:00.000000000' @@ -86,7 +86,7 @@ def test_contour2(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_contourf(): files = sample_files.EXAMPLE_MET_CONTOUR time = '2019-05-08T04:00:00.000000000' @@ -126,7 +126,7 @@ def test_contourf(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_contourf2(): files = sample_files.EXAMPLE_MET_CONTOUR time = '2019-05-08T04:00:00.000000000' diff --git a/tests/plotting/test_distributiondisplay.py b/tests/plotting/test_distributiondisplay.py index ba9bfa0116..517a229a29 100644 --- a/tests/plotting/test_distributiondisplay.py +++ b/tests/plotting/test_distributiondisplay.py @@ -80,7 +80,7 @@ def test_distribution_errors(): matplotlib.pyplot.close(fig=histdisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_stair_graph(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) @@ -94,7 +94,7 @@ def test_stair_graph(): matplotlib.pyplot.close(histdisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_stair_graph2(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) del sonde_ds['tdry'].attrs['units'] @@ -109,7 +109,7 @@ def test_stair_graph2(): matplotlib.pyplot.close(histdisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_stair_graph_sorted(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) @@ -128,7 +128,7 @@ def test_stair_graph_sorted(): matplotlib.pyplot.close(histdisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_stacked_bar_graph(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) @@ -142,7 +142,7 @@ def test_stacked_bar_graph(): matplotlib.pyplot.close(histdisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_stacked_bar_graph2(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) @@ -158,7 +158,7 @@ def test_stacked_bar_graph2(): matplotlib.pyplot.close(histdisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_stacked_bar_graph3(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) del sonde_ds['tdry'].attrs['units'] @@ -173,7 +173,7 @@ def test_stacked_bar_graph3(): matplotlib.pyplot.close(histdisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_stacked_bar_graph_sorted(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) @@ -192,7 +192,7 @@ def test_stacked_bar_graph_sorted(): matplotlib.pyplot.close(histdisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_heatmap(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) @@ -212,7 +212,7 @@ def test_heatmap(): matplotlib.pyplot.close(histdisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_heatmap2(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) del sonde_ds['tdry'].attrs['units'] @@ -233,7 +233,7 @@ def test_heatmap2(): matplotlib.pyplot.close(histdisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_heatmap3(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) del sonde_ds['tdry'].attrs['units'] @@ -253,7 +253,7 @@ def test_heatmap3(): matplotlib.pyplot.close(histdisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_size_distribution(): sigma = 10 mu = 50 @@ -270,7 +270,7 @@ def test_size_distribution(): matplotlib.pyplot.close(histdisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_size_distribution2(): sigma = 10 mu = 50 @@ -334,7 +334,7 @@ def test_histogram_kwargs(): matplotlib.pyplot.close(fig=histdisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_violin(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_MET1) @@ -352,7 +352,7 @@ def test_violin(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_violin2(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_MET1) del ds['temp_mean'].attrs['units'] @@ -371,7 +371,7 @@ def test_violin2(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_scatter(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_MET1) # Create a DistributionDisplay object to compare fields @@ -394,7 +394,7 @@ def test_scatter(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_scatter2(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_MET1) del ds['wspd_arith_mean'].attrs['units'] diff --git a/tests/plotting/test_geodisplay.py b/tests/plotting/test_geodisplay.py index a8196f1483..d767c2f576 100644 --- a/tests/plotting/test_geodisplay.py +++ b/tests/plotting/test_geodisplay.py @@ -17,7 +17,7 @@ @pytest.mark.skipif(not CARTOPY_AVAILABLE, reason='Cartopy is not installed.') -@pytest.mark.mpl_image_compare(style='default', tolerance=30) +@pytest.mark.mpl_image_compare(style='default', tolerance=10) def test_geoplot(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) geodisplay = GeographicPlotDisplay({'sgpsondewnpnC1.b1': sonde_ds}, figsize=(15, 8)) @@ -46,7 +46,7 @@ def test_geoplot(): @pytest.mark.skipif(not CARTOPY_AVAILABLE, reason='Cartopy is not installed.') -@pytest.mark.mpl_image_compare(style='default', tolerance=30) +@pytest.mark.mpl_image_compare(style='default', tolerance=10) def test_geoplot_tile(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) geodisplay = GeographicPlotDisplay({'sgpsondewnpnC1.b1': sonde_ds}, figsize=(15, 8)) diff --git a/tests/plotting/test_skewtdisplay.py b/tests/plotting/test_skewtdisplay.py index aad586fda1..21a45281a9 100644 --- a/tests/plotting/test_skewtdisplay.py +++ b/tests/plotting/test_skewtdisplay.py @@ -1,4 +1,5 @@ import matplotlib +import matplotlib.pyplot as plt import numpy as np import pytest @@ -9,7 +10,7 @@ matplotlib.use('Agg') -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_skewt_plot(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) skewt = SkewTDisplay(sonde_ds) @@ -18,7 +19,7 @@ def test_skewt_plot(): return skewt.fig -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_skewt_plot_spd_dir(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) skewt = SkewTDisplay(sonde_ds, ds_name='act_datastream') @@ -27,7 +28,7 @@ def test_skewt_plot_spd_dir(): return skewt.fig -@pytest.mark.mpl_image_compare(tolerance=81) +@pytest.mark.mpl_image_compare(tolerance=10) def test_multi_skewt_plot(): files = sample_files.EXAMPLE_TWP_SONDE_20060121 test = {} @@ -37,7 +38,7 @@ def test_multi_skewt_plot(): sonde_ds = sonde_ds.resample(time='30s').nearest() test.update({time: sonde_ds}) - skewt = SkewTDisplay(test, subplot_shape=(2, 2)) + skewt = SkewTDisplay(test, subplot_shape=(2, 2), figsize=(12, 14)) i = 0 j = 0 for f in files: @@ -52,15 +53,17 @@ def test_multi_skewt_plot(): dsname=time, p_levels_to_plot=np.arange(10.0, 1000.0, 25), ) + skewt.axes[j, i].set_ylim([1000, 10]) if j == 1: i += 1 j = 0 elif j == 0: j += 1 + plt.tight_layout() return skewt.fig -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_enhanced_skewt_plot(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) display = act.plotting.SkewTDisplay(ds) @@ -69,7 +72,7 @@ def test_enhanced_skewt_plot(): return display.fig -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_enhanced_skewt_plot_2(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) display = act.plotting.SkewTDisplay(ds) @@ -87,7 +90,7 @@ def test_enhanced_skewt_plot_2(): return display.fig -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_skewt_options(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) skewt = SkewTDisplay(sonde_ds) diff --git a/tests/plotting/test_timeseriesdisplay.py b/tests/plotting/test_timeseriesdisplay.py index 3ae873473c..88c58fac70 100644 --- a/tests/plotting/test_timeseriesdisplay.py +++ b/tests/plotting/test_timeseriesdisplay.py @@ -14,7 +14,7 @@ matplotlib.use('Agg') -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_plot(): # Process MET data to get simple LCL files = sample_files.EXAMPLE_MET_WILDCARD @@ -130,7 +130,7 @@ def test_errors(): matplotlib.pyplot.close(fig=display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_multidataset_plot_tuple(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_MET1) ds2 = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SIRS) @@ -158,7 +158,7 @@ def test_multidataset_plot_tuple(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_multidataset_plot_dict(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_MET1) ds2 = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SIRS) @@ -179,7 +179,7 @@ def test_multidataset_plot_dict(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_barb_sounding_plot(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_TWP_SONDE_WILDCARD) BarbDisplay = TimeSeriesDisplay({'sonde_darwin': sonde_ds}) @@ -196,11 +196,11 @@ def test_barb_sounding_plot(): # Due to issues with pytest-mpl, for now we just test to see if it runs -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_time_height_scatter(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) - display = TimeSeriesDisplay({'sgpsondewnpnC1.b1': sonde_ds}, figsize=(7, 3)) + display = TimeSeriesDisplay({'sgpsondewnpnC1.b1': sonde_ds}, figsize=(10, 6)) display.time_height_scatter('tdry', plot_alt_field=True) sonde_ds.close() @@ -212,11 +212,13 @@ def test_time_height_scatter(): # Due to issues with pytest-mpl, for now we just test to see if it runs -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_time_height_scatter2(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SONDE1) - display = TimeSeriesDisplay({'sgpsondewnpnC1.b1': sonde_ds}, figsize=(7, 6), subplot_shape=(2,)) + display = TimeSeriesDisplay( + {'sgpsondewnpnC1.b1': sonde_ds}, figsize=(8, 10), subplot_shape=(2,) + ) display.time_height_scatter( 'tdry', day_night_background=True, subplot_index=(0,), cb_friendly=True, plot_alt_field=True ) @@ -232,7 +234,7 @@ def test_time_height_scatter2(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_qc_bar_plot(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_MET1) ds.clean.cleanup() @@ -265,7 +267,7 @@ def test_qc_bar_plot(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_2d_as_1d(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_CEIL1) @@ -281,7 +283,7 @@ def test_2d_as_1d(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_fill_between(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_MET_WILDCARD) @@ -299,11 +301,11 @@ def test_fill_between(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_qc_flag_block_plot(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_SURFSPECALB1MLAWER) - display = TimeSeriesDisplay(ds, subplot_shape=(2,), figsize=(8, 2 * 4)) + display = TimeSeriesDisplay(ds, subplot_shape=(2,), figsize=(10, 8)) display.plot('surface_albedo_mfr_narrowband_10m', force_line_plot=True, labels=True) @@ -320,7 +322,7 @@ def test_qc_flag_block_plot(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_assessment_overplot(): var_name = 'temp_mean' files = sample_files.EXAMPLE_MET1 @@ -344,7 +346,7 @@ def test_assessment_overplot(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_assessment_overplot_multi(): var_name1, var_name2 = 'wspd_arith_mean', 'wspd_vec_mean' files = sample_files.EXAMPLE_MET1 @@ -377,7 +379,7 @@ def test_assessment_overplot_multi(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_plot_barbs_from_u_v(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_TWP_SONDE_WILDCARD) BarbDisplay = TimeSeriesDisplay({'sonde_darwin': sonde_ds}) @@ -389,7 +391,7 @@ def test_plot_barbs_from_u_v(): matplotlib.pyplot.close(BarbDisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_plot_barbs_from_u_v2(): bins = list(np.linspace(0, 1, 10)) xbins = list(pd.date_range(pd.to_datetime('2020-01-01'), pd.to_datetime('2020-01-02'), 12)) @@ -494,7 +496,7 @@ def test_plot_barbs_from_u_v5(): matplotlib.pyplot.close(BarbDisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_2D_timeseries_plot(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_CEIL1) display = TimeSeriesDisplay(ds) @@ -505,7 +507,7 @@ def test_2D_timeseries_plot(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_time_plot(): files = sample_files.EXAMPLE_MET1 ds = act.io.arm.read_arm_netcdf(files) @@ -514,7 +516,7 @@ def test_time_plot(): return display.fig -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_time_plot_match_color_ylabel(): files = sample_files.EXAMPLE_MET1 ds = act.io.arm.read_arm_netcdf(files) @@ -523,7 +525,7 @@ def test_time_plot_match_color_ylabel(): return display.fig -@pytest.mark.mpl_image_compare(tolerance=40) +@pytest.mark.mpl_image_compare(tolerance=10) def test_time_plot2(): files = sample_files.EXAMPLE_MET1 ds = act.io.arm.read_arm_netcdf(files, decode_times=False, use_cftime=False) @@ -532,7 +534,7 @@ def test_time_plot2(): return display.fig -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_y_axis_flag_meanings(): variable = 'detection_status' ds = act.io.arm.read_arm_netcdf( @@ -547,7 +549,7 @@ def test_y_axis_flag_meanings(): return display.fig -@pytest.mark.mpl_image_compare(tolerance=35) +@pytest.mark.mpl_image_compare(tolerance=10) def test_colorbar_labels(): variable = 'cloud_phase_hsrl' ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_CLOUDPHASE) @@ -568,7 +570,7 @@ def test_colorbar_labels(): return display.fig -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_add_nan_line(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_MET1) @@ -597,7 +599,7 @@ def test_add_nan_line(): matplotlib.pyplot.close(display.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_timeseries_invert(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_IRT25m20s) display = TimeSeriesDisplay(ds, figsize=(10, 8)) @@ -622,11 +624,11 @@ def test_plot_time_rng(): display.plot('temp_mean', time_rng=xrng) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_match_ylimits_plot(): files = sample_files.EXAMPLE_MET_WILDCARD ds = act.io.arm.read_arm_netcdf(files) - display = act.plotting.TimeSeriesDisplay(ds, figsize=(10, 8), subplot_shape=(2, 2)) + display = act.plotting.TimeSeriesDisplay(ds, figsize=(14, 8), subplot_shape=(2, 2)) groupby = display.group_by('day') groupby.plot_group('plot', None, field='temp_mean', marker=' ') groupby.display.set_yrng([-20, 20], match_axes_ylimits=True) @@ -634,7 +636,7 @@ def test_match_ylimits_plot(): return display.fig -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_xlim_correction_plot(): ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_MET1) diff --git a/tests/plotting/test_windrosedisplay.py b/tests/plotting/test_windrosedisplay.py index b332e806ee..7566e9d8f0 100644 --- a/tests/plotting/test_windrosedisplay.py +++ b/tests/plotting/test_windrosedisplay.py @@ -9,7 +9,7 @@ matplotlib.use('Agg') -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_wind_rose(): sonde_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_TWP_SONDE_WILDCARD) @@ -33,7 +33,7 @@ def test_wind_rose(): matplotlib.pyplot.close(WindDisplay.fig) -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_plot_datarose(): files = sample_files.EXAMPLE_MET_WILDCARD ds = act.io.arm.read_arm_netcdf(files) @@ -131,7 +131,7 @@ def test_plot_datarose(): return display.fig -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_groupby_plot(): ds = act.io.arm.read_arm_netcdf(act.tests.EXAMPLE_MET_WILDCARD) diff --git a/tests/plotting/test_xsectiondisplay.py b/tests/plotting/test_xsectiondisplay.py index c5c17357dd..732165cd2e 100644 --- a/tests/plotting/test_xsectiondisplay.py +++ b/tests/plotting/test_xsectiondisplay.py @@ -34,7 +34,7 @@ def test_xsection_errors(): matplotlib.pyplot.close(fig=display.fig) -@pytest.mark.mpl_image_compare(tolerance=31) +@pytest.mark.mpl_image_compare(tolerance=20) def test_xsection_plot(): visst_ds = act.io.arm.read_arm_netcdf(sample_files.EXAMPLE_CEIL1) @@ -51,7 +51,7 @@ def test_xsection_plot(): @pytest.mark.skipif(not CARTOPY_AVAILABLE, reason='Cartopy is not installed.') -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=10) def test_xsection_plot_map(): radar_ds = act.io.arm.read_arm_netcdf( sample_files.EXAMPLE_VISST, combine='nested', concat_dim='time'