Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

[ENH]: contour at discontinuities: add max_jump parameter #21348

Open
@nschloe

Description

@nschloe

Problem

Follow up on#21309.

The problem iscontour on discontinuous functions. Mpl makes the (sane) assumption that, if a quad's corners have the values 0.0 and 0.78, the level contour of 0.51 (for example) has to pass somewhere through the quad, and draws it. This is incorrect where the function isactually discontinuous, but of course mpl has no way of knowing that.

Seethis stackoverflow post orhere.

Proposed solution

A simple solution for this would be to allow for a user-supplied float parameter,max_jump ordiscontinuity_threshold or something like that, defaulting tonp.inf. If within a quad the function values differ bymore than this threshold, a discontinuity is assumed and the level contour is assumednot to pass through the quad.

Additional context and prior art

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp