Tony S Yu
9c4eb3a6fc
Use print function for python 3 compatibility
2012-12-26 22:21:24 -08:00
Tony S Yu
df916713f5
ENH: Add PaintTool and LabelPlugin
2012-12-26 22:03:59 -08:00
Tony S Yu
6c1b969b21
BUG: Fix clean up of canvastools
...
NOTE: The rectangle tool doesn't seem to clean up properly.
2012-12-26 21:39:39 -08:00
Tony S Yu
ea0821ff93
BUG: Validate mouse interaction
...
Fixes error messages when mouse moved out of axes, plus a few other issues
2012-12-15 09:28:41 -05:00
Tony S Yu
244e68c232
BUG: fix end_points setter when given a tuple
...
Dragging of end points was broken.
2012-12-15 09:27:07 -05:00
Tony S Yu
6704285859
BUG: Fix MRO bug when matplotlib not installed
2012-12-14 10:01:52 -05:00
Tony S Yu
2532c659ec
BUG: Fix error when matplotlib is not available
2012-12-13 23:40:33 -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
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
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
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
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
d06c7bcb34
STY: Rename line_tool module to linetool
2012-12-12 16:01:06 -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
866e7d7d60
BUG: Fix blitting behavior
2012-12-12 11:45:02 -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
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
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