c

com.cibo.evilplot.numeric

ContinuousAxisDescriptor

case class ContinuousAxisDescriptor(bounds: Bounds, numTicksRequested: Int, fixed: Boolean) extends AxisDescriptor with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AxisDescriptor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContinuousAxisDescriptor
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AxisDescriptor
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ContinuousAxisDescriptor(bounds: Bounds, numTicksRequested: Int, fixed: Boolean)

Value Members

  1. val axisBounds: Bounds
  2. val bounds: Bounds
  3. val fixed: Boolean
  4. lazy val labels: Seq[String]
  5. val maxValue: Double

    Given a numeric range and the desired number of ticks, figure out where to put the ticks so the labels will have "nice" values (e.g., 100 not 137).

    Given a numeric range and the desired number of ticks, figure out where to put the ticks so the labels will have "nice" values (e.g., 100 not 137). Return the first tick, last tick, tick increment, and number of fractional digits to show. Note that the number of ticks fitting in the range might exceed the requested number. See "Nice Numbers for Graph Labels" by Paul Heckbert, from "Graphics Gems", Academic Press, 1990. This method implements "loose labeling", meaning that the minimum and maximum ticks are placed outside of the bounds of the data.

  6. val minValue: Double

    Given a numeric range and the desired number of ticks, figure out where to put the ticks so the labels will have "nice" values (e.g., 100 not 137).

    Given a numeric range and the desired number of ticks, figure out where to put the ticks so the labels will have "nice" values (e.g., 100 not 137). Return the first tick, last tick, tick increment, and number of fractional digits to show. Note that the number of ticks fitting in the range might exceed the requested number. See "Nice Numbers for Graph Labels" by Paul Heckbert, from "Graphics Gems", Academic Press, 1990. This method implements "loose labeling", meaning that the minimum and maximum ticks are placed outside of the bounds of the data.

  7. val numFrac: Int
  8. val numTicks: Int
  9. val numTicksRequested: Int
  10. val spacing: Double
  11. val tickMax: Double
  12. val tickMin: Double
  13. lazy val values: Seq[Double]