Skip to content

Image plot: coordinates/positions do not update #485

@nvaytet

Description

@nvaytet

Doing

import plopp as pp

%matplotlib widget

n = pp.Node(pp.data.data2d())
f = pp.plot(n)
f

and then

new = pp.data.data2d() * 2.0
new.coords['x'] *= 0.5
n.func = lambda: new
n.notify_children("")

updates the colors but not the positions of the points.

Note that for pcolormesh, if the number of points have changed, we probably need to remove the mesh and create a bew one, as in #484

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions