Last active
June 15, 2016 16:09
-
-
Save featalion/f5e5d1f0515b5a9577b05a189ad886c0 to your computer and use it in GitHub Desktop.
Show Incanter chart on top of the screen
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
| (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