Skip to content

Commit

Permalink
Fix fill_between behavior when Between (or no FillRegion) option was …
Browse files Browse the repository at this point in the history
…made.

For some reason, it used to use "closed", but that doesn't do what we
want in Gnuplot 5.4 and 6.0.
  • Loading branch information
SiegeLordEx authored and SiegeLord committed Oct 26, 2024
1 parent a62cd82 commit 5025f48
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions gnuplot/src/axes_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,23 +316,17 @@ impl PlotElement
{
if let FillBetween = self.plot_type
{
let mut found = false;
first_opt! {options,
FillRegion(d) =>
{
found = true;
writer.write_str(match d
match d
{
Above => " above",
Below => " below",
Between => " closed",
});
Above => {writer.write_str(" above");},
Below => {writer.write_str(" below");},
Between => (), // This is the default behavior.
}
}
}
if !found
{
writer.write_str(" closed");
}
}

writer.write_str(" fill ");
Expand Down

0 comments on commit 5025f48

Please sign in to comment.