From: Wolfgang Bangerth Date: Tue, 6 Aug 2019 02:13:52 +0000 (-0600) Subject: Change the defaults for GridOut::write_svg. X-Git-Tag: v9.2.0-rc1~1209^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7405b46d950a0f2eb3e4c73b371d94cfdbb6a7f6;p=dealii.git Change the defaults for GridOut::write_svg. --- diff --git a/include/deal.II/grid/grid_out.h b/include/deal.II/grid/grid_out.h index 89b053a906..f708ecc004 100644 --- a/include/deal.II/grid/grid_out.h +++ b/include/deal.II/grid/grid_out.h @@ -819,12 +819,12 @@ namespace GridOutFlags const int polar_angle = 0, const Coloring coloring = level_number, const bool convert_level_number_to_height = false, - const bool label_level_number = true, - const bool label_cell_index = true, + const bool label_level_number = false, + const bool label_cell_index = false, const bool label_material_id = false, const bool label_subdomain_id = false, - const bool draw_colorbar = true, - const bool draw_legend = true); + const bool draw_colorbar = false, + const bool draw_legend = false); }; /** diff --git a/tests/grid/get_finest_common_cells_04.cc b/tests/grid/get_finest_common_cells_04.cc index cab08b18c5..fb750f37ad 100644 --- a/tests/grid/get_finest_common_cells_04.cc +++ b/tests/grid/get_finest_common_cells_04.cc @@ -58,8 +58,10 @@ test() std::string tria_1_out = "tria-1-" + std::to_string(Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)) + ".svg"; std::ofstream tria_1_out_stream(tria_1_out); - GridOut().write_svg(tria_0, tria_0_out_stream); - GridOut().write_svg(tria_1, tria_1_out_stream); + GridOut go; + go.set_flags (GridOutFlags::Svg(2, 4, true, GridOutFlags::Svg::white, 0, 0, GridOutFlags::Svg::level_number, false, true, true)); + go.write_svg(tria_0, tria_0_out_stream); + go.write_svg(tria_1, tria_1_out_stream); } deallog << "tria 0 cells:" << std::endl; diff --git a/tests/grid/grid_out_svg_01.cc b/tests/grid/grid_out_svg_01.cc index 8360f7d36c..1742b975b8 100644 --- a/tests/grid/grid_out_svg_01.cc +++ b/tests/grid/grid_out_svg_01.cc @@ -73,9 +73,13 @@ main() GridOut grid_out; GridOutFlags::Svg svg_flags; - svg_flags.coloring = GridOutFlags::Svg::level_number; - svg_flags.label_material_id = true; - svg_flags.background = GridOutFlags::Svg::transparent; + svg_flags.coloring = GridOutFlags::Svg::level_number; + svg_flags.label_material_id = true; + svg_flags.background = GridOutFlags::Svg::transparent; + svg_flags.label_level_number = true; + svg_flags.label_cell_index = true; + svg_flags.draw_legend = true; + svg_flags.draw_colorbar = true; grid_out.set_flags(svg_flags); grid_out.write_svg(create_grid(), deallog.get_file_stream()); diff --git a/tests/grid/grid_out_svg_02.cc b/tests/grid/grid_out_svg_02.cc index 632120fb58..3e719b2ffb 100644 --- a/tests/grid/grid_out_svg_02.cc +++ b/tests/grid/grid_out_svg_02.cc @@ -86,6 +86,11 @@ main() svg_flags.level_height_factor = .5; svg_flags.height = 0; svg_flags.width = 2000; + svg_flags.label_level_number = true; + svg_flags.label_cell_index = true; + svg_flags.draw_legend = true; + svg_flags.draw_colorbar = true; + grid_out.set_flags(svg_flags); grid_out.write_svg(create_grid(), deallog.get_file_stream());