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)
- Alphabetic
- By Inheritance
- Graphs
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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.
- 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
- 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
- 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
- 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.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def writeFile(fname: String, output: String): Unit
Write file fname with contents output
- def writeStandAloneFile(fname: String, body: String): Unit
Write a LaTeX file fname enclosing body