Skip to content

Inaccurate docstring for the 'auto_update' argument of QtInteractor, BackgroundPlotter, and MultiPlotter #141

@p-j-smith

Description

@p-j-smith

The docstrings for these classes states:

    auto_update :
        Automatic update rate in seconds.  Useful for automatically
        updating the render window when actors are change without
        being automatically ``Modified``.

However, in the implementation of auto_update, the value of auto_update is raised to the power of -1:

twait = int((auto_update ** -1) * 1000.0)

meaning that auto_update actually specifies the number of updates per second (larger values = more updates), rather than the update rate in seconds (larger values = fewer updates).

I'm not sure if this is an issue with the docs or with the implementation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions