Skip to content

Commit

Permalink
Gracefully handle empty datasets (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 authored Feb 11, 2023
1 parent 98205c4 commit 465c367
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gnuplot/src/axes_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1449,6 +1449,7 @@ impl AxesCommonData
let mut first = true;
for e in self.elems.iter()
{
if e.num_rows == 0 { continue; }
if !first
{
write!(writer, ",");
Expand Down

0 comments on commit 465c367

Please sign in to comment.