-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a very basic Image component #150
Conversation
We should add some basic testing for the object initialization with contrinuous and non-continues images and the |
path = os.path.join(THIS_DIR, 'deepfield.jpg') | ||
image = Image.from_file(path) | ||
image.resist_width = 'weak' | ||
image.resist_height = 'weak' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think of adding a **traits
argument to Image.from_file
? Then this could be Image.from_file(path, resist_width='weak', resist_height='weak')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on that. I'll quickly add that to the PR.
@itziakos: Do you have time to finish this before the end of the month? I'd like to make it part of the next release. |
I'm writing up some tests now. |
@jwiggins The tests are pretty comprehensive at this point. I think that this is good to be merged. |
Sweet! Thanks for the fast turnaround @corranwebster |
Add a very basic Image component
...because using a Chaco
ImagePlot
to display a simple.png
is Wrong.