Skip to content
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

draw_image() should accept arrays, too #24

Closed
jwiggins opened this issue Feb 2, 2011 · 2 comments
Closed

draw_image() should accept arrays, too #24

jwiggins opened this issue Feb 2, 2011 · 2 comments

Comments

@jwiggins
Copy link
Member

jwiggins commented Feb 2, 2011

Currently, colorbars are drawn by initializing a separate backend_image.GraphicsContext with an array. This GraphicsContext is then drawn onto the target context. Other backends, even the GUI backends that use backend_image for its core implementation, do not accept arrays as arguments to its constructor. Instead, a GraphicsContext of the appropriate backend should be initialized as empty and then the colorbar data should be drawn onto it with draw_image().

This will help with the Mac Quartz backend as well as the noninteractive vector formats (PDF, PS, SVG).

https://svn.enthought.com/enthought/ticket/996

@jwiggins
Copy link
Member Author

jwiggins commented Feb 7, 2011

most backends (quartz, gl, pdf, cairo, qpainter) already support this

@jwiggins
Copy link
Member Author

Closed by #590

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant