ox.cads.experiments

Graphs

object Graphs

Code for producing graphs, using PGFPlots. See PGFPlots manual.

Typical usage might be something like the following.

val options =
  Array[String](
    "title = Comparison of linearizability testers on a queue",
    "xlabel = Number of operations per run",
    "ylabel = Time (s)",
    "log basis x=2", "log basis y = 10",
    "legend pos = north west",
    "height = 0.9\\textheight", "width = 0.9\\textwidth"
  )
val graphString =
  Graphs.makeLogXGraph(options, testersNames, opsNumbers, results)
Graphs.writeStandAloneFile("queue.tex", graphString)
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Graphs
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. def makeGraph[A](axisType: String)(extraOptions: Array[String], plotNames: Array[String], xLabels: Array[A], data: Array[Array[(Double, Double)]]): String

    Make plots (for pgfplots).

    Make plots (for pgfplots).

    axisType

    the type of axes to use, e.g. "semilogxaxis", "loglogaxis"

    extraOptions

    options to be added to the graph; examples might include "title=...", "width=...", "height=...", "xlabel=...", "ylabel=...", "log basis x=2", "legend pos=..."; see the pgfplots manual.

    plotNames

    the names of labels for the plots

    xLabels

    the labels for the x-axis

    data

    the actual data: data(pi)(xi) gives data for plot plotNames(pi) and x-axis label xLabels(xi), namely the value to plot and the confidence level; if the value to plot is Experiments.ErrorSignal then it is taken to represent an error and this item is omitted.

  15. def makeLinearGraph[A](extraOptions: Array[String], plotNames: Array[String], xLabels: Array[A], data: Array[Array[(Double, Double)]]): String

    Make a linear graph (i.

    Make a linear graph (i.e. linear in both axes). Parameters as for makeGraph

  16. def makeLogLogGraph[A](extraOptions: Array[String], plotNames: Array[String], xLabels: Array[A], data: Array[Array[(Double, Double)]]): String

    Make a log-log graph (i.

    Make a log-log graph (i.e. logarithmic in both axes). Parameters as for makeGraph

  17. def makeLogXGraph[A](extraOptions: Array[String], plotNames: Array[String], xLabels: Array[A], data: Array[Array[(Double, Double)]]): String

    Make a log-X graph (i.

    Make a log-X graph (i.e. logarithmic in the x-axis, and linear in the y-axis). Parameters as for makeGraph

  18. def makeSwappedGraph[A](extraOptions: Array[String], plotNames: Array[String], labels: Array[A], data: Array[Array[(Double, Double)]]): String

    Make a graph with axes swapped.

    Make a graph with axes swapped. Parameters as for makeGraph.

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. def writeFile(fname: String, output: String): Unit

    Write file fname with contents output

  28. def writeStandAloneFile(fname: String, body: String): Unit

    Write a LaTeX file fname enclosing body

Inherited from AnyRef

Inherited from Any

Ungrouped