Skip to content

Commit

Permalink
Fix Error in Gnuplot:Can't plot with an empty x range!
Browse files Browse the repository at this point in the history
  • Loading branch information
vxfield committed Dec 9, 2024
1 parent 0937444 commit 7cf32eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plot/gnuplot_backend/distributions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fn abs_distribution(
)))
.configure(Axis::BottomX, |a| {
a.set(Label(format!("Average time ({})", unit)))
.set(Range::Limits(kde_xs_sample.min(), kde_xs_sample.max()))
.set(Range::Auto)
})
.configure(Axis::LeftY, |a| a.set(Label("Density (a.u.)")))
.configure(Key, |k| {
Expand Down
2 changes: 1 addition & 1 deletion src/plot/gnuplot_backend/pdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ pub(crate) fn pdf_small(
.set(size.unwrap_or(SIZE))
.configure(Axis::BottomX, |a| {
a.set(Label(format!("Average time ({})", unit)))
.set(Range::Limits(xs_.min(), xs_.max()))
.set(Range::Auto)
})
.configure(Axis::LeftY, |a| {
a.set(Label("Density (a.u.)"))
Expand Down

0 comments on commit 7cf32eb

Please sign in to comment.