diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2024-06-11 22:57:42 +0200 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2024-06-11 22:57:42 +0200 |
commit | 2e56a0d2e80416904712514da6dab788567a719b (patch) | |
tree | 32b2c81413730ed224214f8d443456326562d6bf /src/graph.rs | |
parent | d338982d6020e2b73a0912db048a53157ac7507e (diff) | |
download | textgraph-2e56a0d2e80416904712514da6dab788567a719b.tar.gz textgraph-2e56a0d2e80416904712514da6dab788567a719b.zip |
Rename axis argument to silent, and invert it, so axis are enabled by default
Diffstat (limited to 'src/graph.rs')
-rw-r--r-- | src/graph.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graph.rs b/src/graph.rs index a3a8909..85a0838 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -150,6 +150,8 @@ impl GraphBuilder { if self.enable_axis { self.draw_axis( + min_y, + max_y, GraphPixel::Normal(ASCII_1), GraphPixel::Normal(ASCII_0), GraphPixel::Normal('└'), @@ -245,6 +247,8 @@ impl GraphBuilder { /// * `c7` - Top right axis pixel fn draw_axis( &mut self, + min_y: f64, + max_y: f64, c1: GraphPixel<char>, c2: GraphPixel<char>, c3: GraphPixel<char>, |