Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Doc]: A few problems on Image resampling page #29541

Copy link
Copy link
Open
@svank

Description

@svank
Issue body actions

Documentation Link

https://matplotlib.org/devdocs/gallery/images_contours_and_fields/image_antialiasing.html

Problem

I was reading this docs page to better understand the changes in #28061, and I noticed a few things I think need fixing:

  • Just before the "Down-sampling and modest up-sampling" header, it says "For both keyword arguments, Matplotlib has a default "antialiased"...", but that default is now auto.

  • Just before the "Up-sampling" header, the example is discussing how in the first panel, "floating point imprecision makes some of the data values just a bit less than zero or a bit more than 2.0, and they get assigned the under- or over- colors". I don't see that occurring in the first panel of the plot. I see this:

Image

but I wonder if it's supposed to look more like this plot from #28061:

Image

What I see currently in the docs is also what I get running the example locally, though. If what I see in the docs is intended,

  • In that same example, it says "In the following, the data in the upper 100 rows is exactly 0.0, and data in the inner circle is exactly 2.0." Aren't the values of exactly 0.0 in the outer circle, not the upper 100 rows?

  • Lastly, again in that example, "(interpolation set set to 'nearest')" has an extra "set".

Suggested improvement

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.