Skip to content

Commit 8680856

Browse files
committed
Fixing xan plot -R/--regression-line
1 parent 87195a4 commit 8680856

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*Fixes*
1212

1313
* Fixing `xan to (md|html) --no-headers`.
14+
* Fixing `xan plot -R/--regression-line`.
1415

1516
*Quality of Life*
1617

src/cmd/plot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
397397
Err("-R/--regression-line does not work with -B/--bars nor -L/--line!")?;
398398
}
399399

400-
if args.flag_category.is_some() || !has_added_series {
400+
if args.flag_category.is_some() || has_added_series {
401401
Err("-R/--regression-line only works with single series (e.g. when using -c/--category or when selecting multiple columns with <y>)!")?;
402402
}
403403
}

0 commit comments

Comments
 (0)