Skip to content
Snippets Groups Projects
Commit c5c05c40 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Removed the option to use a logscale axis, and added a grid in the background

parent 4b997c5d
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ exit(0); ...@@ -29,7 +29,7 @@ exit(0);
sub main { sub main {
my ($url, $reg_conf, $reg_type, $reg_alias, $nosqlvc, $help, $verbose, $mode, $start_date, $end_date, $output, $top, $logscale, $default_memory, $default_cores); my ($url, $reg_conf, $reg_type, $reg_alias, $nosqlvc, $help, $verbose, $mode, $start_date, $end_date, $output, $top, $default_memory, $default_cores);
GetOptions( GetOptions(
# connect to the database: # connect to the database:
...@@ -46,7 +46,6 @@ sub main { ...@@ -46,7 +46,6 @@ sub main {
'end_date=s' => \$end_date, 'end_date=s' => \$end_date,
'mode=s' => \$mode, 'mode=s' => \$mode,
'top=f' => \$top, 'top=f' => \$top,
'log=i' => \$logscale,
'mem=i' => \$default_memory, 'mem=i' => \$default_memory,
'n_core=i' => \$default_cores, 'n_core=i' => \$default_cores,
'output=s' => \$output, 'output=s' => \$output,
...@@ -271,7 +270,7 @@ sub main { ...@@ -271,7 +270,7 @@ sub main {
my @datasets = (); my @datasets = ();
my $pseudo_zero_value = $logscale ? .8 : -$max_workers / 50; my $pseudo_zero_value = -$max_workers / 50;
# The background plot: the sum of all the analysis # The background plot: the sum of all the analysis
if ($need_other_analysis) { if ($need_other_analysis) {
...@@ -321,16 +320,17 @@ sub main { ...@@ -321,16 +320,17 @@ sub main {
}, },
xtics => { xtics => {
labelfmt => '%b %d\n %H:00', labelfmt => '%b %d\n %H:00',
along => 'out nomirror',
}, },
bg => { bg => {
color => 'white', color => 'white',
}, },
grid => 'on',
imagesize => '1400, 800', imagesize => '1400, 800',
output => $output, output => $output,
terminal => $terminal_mapping{$gnuplot_terminal}, terminal => $terminal_mapping{$gnuplot_terminal},
ylabel => $allowed_modes{$mode}, ylabel => $allowed_modes{$mode},
yrange => [$pseudo_zero_value, undef], yrange => [$pseudo_zero_value, undef],
$logscale ? (logscale => 'y') : (),
); );
$chart->plot2d(@datasets); $chart->plot2d(@datasets);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment