Packages

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
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. 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.

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

    Make a linear graph (i.e.

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

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

    Make a log-log graph (i.e.

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

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

    Make a log-X graph (i.e.

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

  16. 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.

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. def writeFile(fname: String, output: String): Unit

    Write file fname with contents output

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

    Write a LaTeX file fname enclosing body

Inherited from AnyRef

Inherited from Any

Ungrouped