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
Stefan van der Walt
ac41a4b1be
Merge pull request #269 from tonysyu/viewer-fix-doc-and-test
...
BUG: Viewer: fix autodoc and nosetest failures.
2012-08-25 10:44:26 -07:00
Tony S Yu
be33941701
Change error to warning so that autodoc doesn't fail.
2012-08-25 12:11:46 -04:00
Tony S Yu
b14514e018
BUG: Fix nosetest and autodoc errors when PyQt4 not available
...
nose and autodoc imports the viewer modules so all PyQt4 imports must be wrapped in a try-except block. In addition, any classes derived from PyQt4 must be proxied since the class definition are run on import. This is really hacky.
2012-08-25 12:06:03 -04:00
Stefan van der Walt
3c14898fda
Merge pull request #267 from tonysyu/viewer-adapt-dtype
...
BUG: Adjust pixel limits based on image data type.
2012-08-25 07:14:55 -07:00
Tony S Yu
ebf4b44a9e
BUG: Adjust pixel limits based on image data type
2012-08-24 22:44:04 -04:00
Tony S Yu
2c0ff0543c
BUG: Closing ImageViewer shouldn't quit parent program
2012-08-24 22:43:13 -04:00
Tony S Yu
2c84a2135f
Remove custom dtype range
...
Bool support was added in gh-#260
2012-08-24 22:36:20 -04:00
Stefan van der Walt
e6118a5068
BUG: Workaround to unit tests failing if PyQt4 not available.
2012-08-24 06:24:41 -07:00
Tony S Yu
ffe2ebacae
BUG: Update filter when edit-box is changed.
2012-08-22 22:47:54 -04:00
Tony S Yu
cfd0b84a9b
STY: Tweak button sizes.
2012-08-03 23:04:51 -04:00
Tony S Yu
e96aca5637
ENH: Add OK/Cancel buttons
2012-08-03 22:27:05 -04:00
Tony S Yu
398b320477
BUG: reset image when plugin is closed.
2012-08-03 22:21:59 -04:00
Tony S Yu
4ab583ba31
ENH: Add SaveButtons widget.
2012-08-03 21:50:28 -04:00
Tony S Yu
9ac42728c6
DOC: Clean up docstring for Slider
2012-08-03 20:47:42 -04:00
Tony S Yu
54af4176dd
ENH: Add RequiredAttr to raise warnings when attr not set.
2012-08-03 20:45:01 -04:00
Tony S Yu
ce017cc035
ENH: Add Slider value_type to allow int values.
2012-08-01 00:11:48 -04:00
Tony S Yu
3340d0612d
BUG: Fix scaling when setting default slider value.
2012-07-28 14:38:46 -04:00
Tony S Yu
7d533e19a4
DOC: Add explanation of add operator.
2012-07-28 11:43:20 -04:00
Tony S Yu
1000c73ceb
DOC: Explain use of callback parameter.
2012-07-28 11:40:04 -04:00
Tony S Yu
b6045a8d5f
BUG: Fix behavior when initial overlay limits are bad.
...
Intensity limits are calculated by the initial input image. If this image has, for example, all black pixels, then subsequent overlays will remain all black because of the initialized limits. Set limits based on data type to fix this issue.
2012-07-28 00:13:33 -04:00
Tony S Yu
449f3e4cbf
STY: Refactor BaseWidget from Slider and ComboBox
2012-07-27 22:58:20 -04:00
Tony S Yu
7615a856c5
Remove lineprofile temporarily (saved in a branch)
2012-07-27 22:32:42 -04:00
Tony S Yu
4620ee734e
ENH: Create new Slider with editbox.
...
Also, make the behavior more consistent between updating plugin and widget parameters.
2012-07-27 22:21:26 -04:00
Tony S Yu
539b12dc2c
STY: Refactor MatplotlibCanvas from ImageCanvas and PlotCanvas.
2012-07-27 21:57:46 -04:00
Tony S Yu
9285898d39
DOC: Add class docstring
2012-07-25 00:41:54 -04:00
Tony S Yu
f261e76ef0
DOC: cleanup docstring and reuse parameter defined by parent class
2012-07-25 00:40:36 -04:00
Tony S Yu
49bdc3ae6f
DOC: clean up docstring for PlotPlugin
2012-07-25 00:36:51 -04:00
Tony S Yu
d72baa484f
STY: reorder methods for clarity.
2012-07-25 00:32:26 -04:00
Tony S Yu
260a336eb9
ENH: allow color to be set by name
2012-07-25 00:31:08 -04:00
Tony S Yu
51e61b3e46
DOC: Improve docstrings for Plugin class.
2012-07-25 00:21:56 -04:00
Tony S Yu
86526064f2
DOC: Improve docstrings for ImageViewer.
...
Oops: also changed added leading underscore to `update_status_bar`.
2012-07-24 23:22:55 -04:00
Tony S Yu
ff98b059e7
STY: Remove unused add_artist method.
2012-07-24 23:06:53 -04:00
Tony S Yu
c2d2919bae
BUG: Don't override image_filter method if defined by subclass
2012-07-24 01:31:47 -04:00
Tony S Yu
c1a859acae
ENH: Change inplace-add to normal add to support alternate syntax
...
Widgets can be added to Plugins inline, and Plugins can be added inline to Viewers.
2012-07-24 00:58:35 -04:00
Tony S Yu
4b3f6d6c30
BUG: in-place add should return object
...
Actually, I didn't mean to add `__iadd__` a couple of commits ago, so this was supposed to be an enhancement that allows you to access `add_widget` using in place adding.
2012-07-24 00:51:31 -04:00
Tony S Yu
1ae662f712
ENH: filter image when Plugin is attached to ImageViewer
2012-07-24 00:35:26 -04:00
Tony S Yu
0e8f444fbb
ENH: Display overlay by default
2012-07-24 00:28:37 -04:00
Tony S Yu
daae405945
DOC: Add todo note
2012-07-23 21:55:30 -04:00
Tony S Yu
36b0fbd84e
Rename (dis)connect_event to (dis)connect_image_events.
...
This clarifies action since these events are on the image viewer, not the plugin.
2012-07-23 01:22:05 -04:00
Tony S Yu
92ca837471
ENH: Let Qt handle most of the window sizing.
2012-07-23 01:13:03 -04:00
Tony S Yu
977d17134d
Change image_viewer to Plugin property.
...
Raise an error when using Plugin.image_viewer before it is set. This error prevents other, more obscure, errors from getting raised.
2012-07-23 00:45:11 -04:00
Tony S Yu
df18d40290
Minor cleanup.
2012-07-23 00:18:32 -04:00