Skip to content

Instantly share code, notes, and snippets.

@mjul
Created October 24, 2011 14:35
Show Gist options
  • Select an option

  • Save mjul/1309178 to your computer and use it in GitHub Desktop.

Select an option

Save mjul/1309178 to your computer and use it in GitHub Desktop.
Incanter: Customize scatter-plot to have single-pixel points
;; Customize scatter plot to have single-pixel points
(let [sp (scatter-plot (range 10) (range 10))
r (-> sp .getXYPlot .getRenderer)]
(.setSeriesShape r 0 (java.awt.Rectangle. 0 0 1 1))
(view sp))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment