org.nlogo.plot

package org.nlogo.plot

This package contains classes for plotting.

The lowest level class is PlotPoint. Each point has x and y coordinates, a color, and a boolean for whether the pen was down when the point was plotted.

The next class up is PlotPen. A PlotPen has a name. The pen has a bunch of state variables (with both default and current values) and remembers all the PlotPoints it has plotted. The pen's mode (e.g. line or bar) applies to all of its points. A pen may be temporary or permanent; temporary pens go away when the plot is cleared.

A collection of PlotPens is a PlotPensList. The pens are ordered, so they show up in a consistent order in the legend.

The main class is Plot. A Plot has a name and a PlotPensList, and keeps track of which pen in the PlotPensList is the current pen. A Plot has both default and current values for its ranges (x min and max, y min and max). "Auto plot" (whether the range expands automatically to the fit the data) is a boolean with both default and current values.

CorePlotExporter is used to export the plot data in CSV format.

Many classes are serializable in order to support HubNet plot mirroring.

Attributes

Members list

Type members

Classlikes

class CorePlotExporter(plot: PlotInterface, csv: CSV)

Attributes

Source
CorePlotExporter.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class PlotExporter

Attributes

Source
PlotManagerInterface.scala
Supertypes
class Object
trait Matchable
class Any
class Histogram(xMin: Double, interval: Double, val bars: Array[Int])

Attributes

Source
Histogram.scala
Supertypes
class Object
trait Matchable
class Any
class Plot extends PlotInterface, Serializable

Attributes

Companion
object
Source
Plot.scala
Supertypes
trait Serializable
class Object
trait Matchable
class Any
object Plot

Attributes

Companion
class
Source
Plot.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Plot.type
object PlotHelper

Attributes

Source
PlotHelper.scala
Supertypes
class Object
trait Matchable
class Any
Self type
PlotHelper.type
trait PlotListener

Attributes

Source
PlotListener.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object PlotLoader

Attributes

Source
PlotLoader.scala
Supertypes
class Object
trait Matchable
class Any
Self type
PlotLoader.type
class PlotManager(factory: LogoThunkFactory, random: MersenneTwisterFast) extends PlotManagerInterface

Attributes

Source
PlotManager.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
PlotManagerInterface.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class PlotPainter(plot: Plot)

Attributes

Source
PlotPainter.scala
Supertypes
class Object
trait Matchable
class Any
object PlotPen

Attributes

Companion
class
Source
PlotPen.scala
Supertypes
class Object
trait Matchable
class Any
Self type
PlotPen.type
class PlotPen(var plot: Plot, var name: String, var temporary: Boolean, var setupCode: String, var updateCode: String, var x: Double, var defaultColor: Int, var _color: Int, var inLegend: Boolean, var defaultInterval: Double, var _interval: Double, var defaultMode: Int, var _mode: Int, var penModeChanged: Boolean, var _isDown: Boolean, var _hidden: Boolean) extends PlotPenInterface, Serializable

Attributes

Companion
object
Source
PlotPen.scala
Supertypes
trait Serializable
class Object
trait Matchable
class Any
case class PlotPoint(x: Double, y: Double, isDown: Boolean, color: Int) extends PlotPointInterface

Attributes

Source
PlotPoint.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Deprecated classlikes

class PlotExporter(plot: Plot, csv: CSV) extends CorePlotExporter

Attributes

Deprecated
[Since version 6.1.2] Use `CorePlotExporter`
Source
PlotExporter.scala
Supertypes
class Object
trait Matchable
class Any