In case of zero span data supress the histogram plot.
This commit is contained in:
parent
962eaaf9d6
commit
a21af19141
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119067
@ -328,6 +328,8 @@ PlotSet(struct dataset *ds, int val)
|
|||||||
int i, j, m, x;
|
int i, j, m, x;
|
||||||
|
|
||||||
pl = &plot;
|
pl = &plot;
|
||||||
|
if (pl->span == 0)
|
||||||
|
return;
|
||||||
m = 1;
|
m = 1;
|
||||||
i = -1;
|
i = -1;
|
||||||
j = 0;
|
j = 0;
|
||||||
@ -380,6 +382,10 @@ DumpPlot(void)
|
|||||||
int i, j, k;
|
int i, j, k;
|
||||||
|
|
||||||
pl = &plot;
|
pl = &plot;
|
||||||
|
if (pl->span == 0) {
|
||||||
|
printf("[no plot, span is zero width]\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
putchar('+');
|
putchar('+');
|
||||||
for (i = 0; i < pl->width; i++)
|
for (i = 0; i < pl->width; i++)
|
||||||
|
@ -328,6 +328,8 @@ PlotSet(struct dataset *ds, int val)
|
|||||||
int i, j, m, x;
|
int i, j, m, x;
|
||||||
|
|
||||||
pl = &plot;
|
pl = &plot;
|
||||||
|
if (pl->span == 0)
|
||||||
|
return;
|
||||||
m = 1;
|
m = 1;
|
||||||
i = -1;
|
i = -1;
|
||||||
j = 0;
|
j = 0;
|
||||||
@ -380,6 +382,10 @@ DumpPlot(void)
|
|||||||
int i, j, k;
|
int i, j, k;
|
||||||
|
|
||||||
pl = &plot;
|
pl = &plot;
|
||||||
|
if (pl->span == 0) {
|
||||||
|
printf("[no plot, span is zero width]\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
putchar('+');
|
putchar('+');
|
||||||
for (i = 0; i < pl->width; i++)
|
for (i = 0; i < pl->width; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user