File tree Expand file tree Collapse file tree 3 files changed +24
-6
lines changed
Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1+ /*!
2+
3+ A module for managing axes
4+
5+ */
6+
17#[ derive( Debug ) ]
28pub struct Axis {
39 lower : f64 ,
@@ -6,6 +12,7 @@ pub struct Axis {
612}
713
814impl 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 }
Original file line number Diff line number Diff line change 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 ) ]
913pub struct Histogram {
Original file line number Diff line number Diff line change 1+ /*!
2+
3+ Data structures and helpers for managing plotting data
4+
5+ */
6+
17pub mod histogram;
28pub mod axis;
You can’t perform that action at this time.
0 commit comments