Skip to content

Instantly share code, notes, and snippets.

@featalion
Last active June 15, 2016 16:09
Show Gist options
  • Select an option

  • Save featalion/f5e5d1f0515b5a9577b05a189ad886c0 to your computer and use it in GitHub Desktop.

Select an option

Save featalion/f5e5d1f0515b5a9577b05a189ad886c0 to your computer and use it in GitHub Desktop.
Show Incanter chart on top of the screen
(use '(incanter core stats charts))
;; unfortunately, this solution does not focus chart window (at least, on MacOSX)
;; it means, that you should use mouse to close a window
(defn view-on-top [obj & opts]
(doto (apply view obj opts)
(.setAlwaysOnTop true)
(.requestFocus)
(.setAlwaysOnTop false)))
(view-on-top (histogram (sample-normal 1000) :nbins 20)
:width 700 :height 700)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment