Skip to content

Instantly share code, notes, and snippets.

@dlwh
Created September 2, 2012 22:18
Show Gist options
  • Save dlwh/3605128 to your computer and use it in GitHub Desktop.
Save dlwh/3605128 to your computer and use it in GitHub Desktop.
plot option
val f = Figure()
val plot = f.plot(0)
// Option A
plot.hold = true
plot.scatter(...)
plot.scatter(...)
f.visible = true
plot.hold = false
plot.scatter(...)
// Option B
plot += scatter(...)
plot += scatter(...)
plot.clear()
plot += scatter(...)
f.visible = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment