Skip to content

Commit

Permalink
default line width to avoid invisible lines in the SVG
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Feb 7, 2024
1 parent c5093a3 commit 2c0bb5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subcommand/draw_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int main_draw(int argc, char **argv) {
args::Flag color_paths(visualizations_opts, "color-paths", "Color paths (in PNG output).", {'C', "color-paths"});
args::ValueFlag<double> render_scale(visualizations_opts, "N", "Image scaling (default 0.001).", {'R', "scale"});
args::ValueFlag<double> render_border(visualizations_opts, "N", "Image border (in approximate bp) (default 100.0).", {'B', "border"});
args::ValueFlag<double> png_line_width(visualizations_opts, "N", "Line width (in approximate bp) (default 0.0).", {'w', "line-width"});
args::ValueFlag<double> png_line_width(visualizations_opts, "N", "Line width (in approximate bp) (default 20.0).", {'w', "line-width"});
//args::ValueFlag<double> png_line_overlay(parser, "N", "line width (in approximate bp) (default 10.0)", {'O', "line-overlay"});
args::ValueFlag<double> png_path_line_spacing(visualizations_opts, "N", "Spacing between path lines in PNG layout (in approximate bp) (default 0.0).", {'S', "path-line-spacing"});
args::ValueFlag<std::string> _path_bed_file(visualizations_opts, "FILE",
Expand Down Expand Up @@ -171,7 +171,7 @@ int main_draw(int argc, char **argv) {
}

const uint64_t _png_height = png_height ? args::get(png_height) : 1000;
const double _png_line_width = png_line_width ? args::get(png_line_width) : 0;
const double _png_line_width = png_line_width ? args::get(png_line_width) : 20.0;
const bool _color_paths = args::get(color_paths);
const double _png_path_line_spacing = png_path_line_spacing ? args::get(png_path_line_spacing) : 0.0;
const double svg_scale = !render_scale ? 0.01 : args::get(render_scale);
Expand Down

0 comments on commit 2c0bb5a

Please sign in to comment.