Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
PGF Backend: Support interpolation='none'#6792
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -508,30 +508,34 @@ def get_image_magnification(self): | ||
| """ | ||
| return 1.0 | ||
| def draw_image(self, gc, x, y, im,transform=None): | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Please do not change kwarg name, it is a (subtle) api break for anyone who is using ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. The point is that if anybody passes The base class isthe only one calling it Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. That is fun. attn@mdboom I am inclined to accept this change and an API change entry for it. Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Agreed. Let's fix this to be consistent ( ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more.
If I see correctly, it's already covered byhttps://github.com/matplotlib/matplotlib/blob/master/doc/api/api_changes/2015-12-30_draw_image.rst -- if I added another note, there would be two API changes for Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. eh, yeah there is an entry for it, but just amend it to note this particular issue, as it isn't obvious from the current item that there is this change as well. ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Well, from the current item it isn't obvious at all what has changed:
Both sentences apply to my PR as well, which just changes the changed interface. Sorry, I'm not trying to be a nuisance, but I cannot come up with a way that explicitly mentions my change without sounding silly (and confusing). Also note that the interface change in that note belongs to#5718, which added the I'm just changing this to correctly call it So this is not actually an API change. Nobody can have used Is this convincing? Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Ah, I see your point about | ||
| """ | ||
| Drawan RGBA image. | ||
ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Explanation: It's not an "image instance", and the renderer does not have any notion of axes (as far as I can see). | ||
| *gc* | ||
| a:class:`GraphicsContextBase` instance withclipping information. | ||
| *x* | ||
| the distance in physical units (i.e., dots or pixels) from the left | ||
| hand side of the canvas. | ||
| *y* | ||
| the distance in physical units (i.e., dots or pixels) from the | ||
| bottom side of the canvas. | ||
| *im* | ||
| An NxMx4 array of RGBA pixels (of dtype uint8). | ||
| *transform* | ||
| If and only if the concrete backend is written such that | ||
| :meth:`option_scale_image` returns ``True``, an affine | ||
| transformation *may* be passed to :meth:`draw_image`. It takes the | ||
| form of a :class:`~matplotlib.transforms.Affine2DBase` instance. | ||
| The translation vector of the transformation is given in physical | ||
| units (i.e., dots or pixels). Note that the transformation does not | ||
| override `x` and `y`, and has to be applied *before* translating | ||
| the result by `x` and `y` (this can be accomplished by adding `x` | ||
| and `y` to the translation vector defined by `transform`). | ||
| """ | ||
| raise NotImplementedError | ||
| @@ -544,8 +548,8 @@ def option_image_nocomposite(self): | ||
| def option_scale_image(self): | ||
| """ | ||
| override this method for renderers that support arbitrary affine | ||
| transformations in :meth:`draw_image` (most vectorbackends). | ||
| """ | ||
| return False | ||