Skip to content

Commit f0e357f

Browse files
committed
Add some dummy documentation
1 parent f086247 commit f0e357f

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

src/axis.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*!
2+
3+
A module for managing axes
4+
5+
*/
6+
17
#[derive(Debug)]
28
pub struct Axis {
39
lower: f64,
@@ -6,6 +12,7 @@ pub struct Axis {
612
}
713

814
impl Axis {
15+
/// Constructs a new Axis
916
pub fn new(lower: f64, upper: f64) -> Axis {
1017
assert!(lower < upper);
1118
let default_max_ticks = 6;
@@ -24,6 +31,7 @@ impl Axis {
2431
self.lower
2532
}
2633

34+
/// Get the positions of the ticks on the axis
2735
pub fn ticks(&self) -> &Vec<f64> {
2836
&self.ticks
2937
}

src/histogram.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
//! A module for Histograms
2-
//!
3-
//! TODO:
4-
//! - frequency or density option
5-
//! - Variable bins implies frequency
6-
//! - What should be the default?
1+
/*!
2+
3+
A module for Histograms
4+
5+
TODO:
6+
7+
- frequency or density option
8+
- Variable bins implies frequency
9+
- What should be the default?
10+
*/
711

812
#[derive(Debug)]
913
pub struct Histogram {

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
/*!
2+
3+
Data structures and helpers for managing plotting data
4+
5+
*/
6+
17
pub mod histogram;
28
pub mod axis;

0 commit comments

Comments
 (0)