Commit Graph
116 Commits
Author SHA1 Message Date
Tony S Yu 2532c659ec BUG: Fix error when matplotlib is not available 2012-12-13 23:40:33 -05:00
Tony S Yu 829479512f BUG: Update measure for change in line_tool API 2012-12-13 22:26:26 -05:00
Tony S Yu 1a199b4405 ENH: Improve end_points setter 2012-12-13 22:25:53 -05:00
Tony S Yu 78e1efefcb ENH: Add setter for extents property 2012-12-13 21:52:32 -05:00
Tony S Yu 2e7e92f536 STY: Simplify imports 2012-12-13 21:31:54 -05:00
Tony S Yu 34de6d323a BUG: Fix line thickness change call back 2012-12-13 21:21:36 -05:00
Tony S Yu 25b9f5d5aa BUG: Fix LineTool example after change to call signature
x, y parameters were removed for simplicity, but example wasn't updated
2012-12-13 21:12:35 -05:00
Tony S Yu 260984c018 DOC: Add parameters to docstring 2012-12-13 21:11:53 -05:00
Tony S Yu e5dfb8c7ac STY: Remove linewidth parameter to simplify API 2012-12-13 20:56:27 -05:00
Tony S Yu 3fab96fb09 STY: Rename end_pts to end_points 2012-12-13 20:49:58 -05:00
Tony S Yu 3d631eadc3 Remove x, y parameters from line tool to simplify API 2012-12-13 20:40:47 -05:00
Tony S Yu e98476ea41 ENH: Handle redraw edge case.
You can call redraw before the first draw event so that the background never gets saved. In this case, skip blitting so we don't need the background image.
2012-12-13 19:11:08 -05:00
Tony S Yu 8e4f24af00 ENH: Add color histogram plugin 2012-12-13 18:02:40 -05:00
Tony S Yu cfe9e7def9 Fix typo 2012-12-13 17:58:08 -05:00
Tony S Yu 43fecd0cb8 BUG: Fix renamed parameter 2012-12-13 17:47:27 -05:00
Tony S Yu 70461b4bc9 STY: Rename parameters for clarity 2012-12-13 17:26:37 -05:00
Tony S Yu 6fee0fbcfe BUG: Fix line visibility
Line gets cleared when "enter" key is pressed. Make sure it's visible on a mouse press.
2012-12-13 14:30:02 -05:00
Tony S Yu 7dcb2df3fc STY: Switch order of callback parameters 2012-12-13 14:29:14 -05:00
Tony S Yu 19e86ed661 BUG: Fix matplotlib import for compatibility 2012-12-13 13:51:29 -05:00
Tony S Yu 04434b008f BUG: Fix image viewer for RGB images 2012-12-13 10:39:11 -05:00
Tony S Yu 1aafdeb7d4 ENH: Overhaul callback system.
Remove `on_update` callback and add `on_move` and `on_release` callbacks arguments. Also, prefix callback functions with `callback_` for clarity.
2012-12-13 00:23:30 -05:00
Tony S Yu 631e97d973 ENH: Add rectangle tool and crop plugin example 2012-12-12 23:59:40 -05:00
Tony S Yu 36bc6da757 STY: Refactors general parts of line tool to base tool 2012-12-12 23:42:15 -05:00
Tony S Yu cb30c24427 ENH: Add measure tool plugin 2012-12-12 21:46:08 -05:00
Tony S Yu d06c7bcb34 STY: Rename line_tool module to linetool 2012-12-12 16:01:06 -05:00
Tony S Yu 67aada9adc ENH: Increase default selection threshold for ease of use 2012-12-12 15:58:10 -05:00
Tony S Yu ece045790e STY: Remove reset functionality in line tool
Since a line can be draw without selecting handles, the reset functionality doesn't seem necessary.
2012-12-12 15:54:12 -05:00
Tony S Yu bacc12e00a ENH: Draw new line when click is far from handle 2012-12-12 15:50:49 -05:00
Tony S Yu 9f70148f08 STY: Minor code clean up 2012-12-12 15:48:45 -05:00
Tony S Yu 16a720770a STY: Clean up unused blitting-related code 2012-12-12 13:34:53 -05:00
Tony S Yu 866e7d7d60 BUG: Fix blitting behavior 2012-12-12 11:45:02 -05:00
Tony S Yu 15b1ad4929 STY: Remove commented out code 2012-12-10 21:30:25 -05:00
Tony S Yu 0428f821e5 BUG: Fix background update when canvas resized 2012-12-10 21:18:50 -05:00
Tony S Yu 211bba0195 ENH: Default to blitting
Since the Qt4 Agg backend is always used, it's always safe to use blitting.
2012-12-09 21:11:06 -05:00
Tony S Yu 588fe29b57 BUG: Allow slider to accept key press events 2012-12-09 20:54:10 -05:00
Tony S Yu ef2bb54c45 Fix figure canvas creation.
Avoid use of matplotlib's pyplot functions for creating figure canvases. In particular, key press events were ignored by the canvas.
2012-12-09 20:51:18 -05:00
Tony S Yu 9d653fec78 BUG: Clean up imports 2012-11-15 23:53:47 -05:00
Tony S Yu 0d411e21dc STY: Refactor parts of LineTool to CanvasToolBase 2012-11-15 22:04:02 -05:00
Tony S Yu d219a76f58 BUG: Fix blitting behavior in canvastools 2012-11-15 21:56:51 -05:00
Tony S Yu 5be5813070 STY: Reuse ThickLineTool in LineProfile 2012-11-15 00:16:19 -05:00
Tony S Yu 2ff3e78c52 BUG: Move callback connection to parent class 2012-11-15 00:16:19 -05:00
Tony S Yu 4f6f25efe9 ENH: Add canvastools subpckages with base class and line tools 2012-11-15 00:16:19 -05:00
Andreas Mueller 6c59e04714 MISC remove unused imports, some pep8 corrections. 2012-09-27 20:01:45 +01:00
Tony S Yu fcf2a9bc97 DOC: Fix doctests in viewer subpackage
The doctests in the viewer subpackage weren't originally written as proper doctests.
2012-09-11 23:38:00 -04:00
Tony S Yu d98a92a603 ENH: Set viewer min-intensity to zero when possible.
Some image dtypes allow negative values, but these are typically not used. If an dtype allows negative values, but no negative values are present in the image, set the minimum value to 0 so that the image doesn't look washed out.
2012-09-05 10:12:49 -04:00
Tony S Yu d1e012ea30 BUG: Initialize QApplication when creating Plugin.
QWidgets cannot be initialized unless QApplication has been created. In cases where the Plugin is created before the ImageViewer, ensure that QApplication exists.
2012-09-04 22:07:59 -04:00
Tony S Yu fe41023370 STY: Refactor initialization of QApplication. 2012-09-04 22:07:25 -04:00
Stefan van der Walt c47e230847 Merge pull request #289 from tonysyu/qtmpl-collection-viewer
ENH: Add CollectionViewer.
2012-09-02 04:39:23 -07:00
Tony S Yu 41ea3ba7fd Add line profile plugin back in.
I saved a copy of the line profile plugin in a branch and then deleted the plugin from the main qtmpl-viewer branch. Unfortunately, I forgot that rebasing off the main branch would erase the plugin. This commit just adds the plugin back.
2012-09-01 15:42:52 -04:00
Tony S Yu 7d858a8ba9 ENH: Add CollectionViewer 2012-09-01 15:31:34 -04:00