In case of zero span data supress the histogram plot.
This commit is contained in:
parent
49037ec1b2
commit
9a9a510c2c
@ -328,6 +328,8 @@ PlotSet(struct dataset *ds, int val)
|
||||
int i, j, m, x;
|
||||
|
||||
pl = &plot;
|
||||
if (pl->span == 0)
|
||||
return;
|
||||
m = 1;
|
||||
i = -1;
|
||||
j = 0;
|
||||
@ -380,6 +382,10 @@ DumpPlot(void)
|
||||
int i, j, k;
|
||||
|
||||
pl = &plot;
|
||||
if (pl->span == 0) {
|
||||
printf("[no plot, span is zero width]\n");
|
||||
return;
|
||||
}
|
||||
|
||||
putchar('+');
|
||||
for (i = 0; i < pl->width; i++)
|
||||
|
@ -328,6 +328,8 @@ PlotSet(struct dataset *ds, int val)
|
||||
int i, j, m, x;
|
||||
|
||||
pl = &plot;
|
||||
if (pl->span == 0)
|
||||
return;
|
||||
m = 1;
|
||||
i = -1;
|
||||
j = 0;
|
||||
@ -380,6 +382,10 @@ DumpPlot(void)
|
||||
int i, j, k;
|
||||
|
||||
pl = &plot;
|
||||
if (pl->span == 0) {
|
||||
printf("[no plot, span is zero width]\n");
|
||||
return;
|
||||
}
|
||||
|
||||
putchar('+');
|
||||
for (i = 0; i < pl->width; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user