Created
October 24, 2011 14:35
-
-
Save mjul/1309178 to your computer and use it in GitHub Desktop.
Incanter: Customize scatter-plot to have single-pixel points
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; 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