Skip to content

Missing f-string in logger warning #912

@keziah55

Description

@keziah55

In chaco/axis.py, PlotAxis._compute_tick_positions() the logger.warning message written if datalow > datahigh is using regular strings instead of f-strings, so the warning message is not formatted correctly.

It should be:

if datalow > datahigh:
    logger.warning(
        f"{self.mapper} has an invalid data range with "
        f"low={datalow} > high={datahigh}; unable to compute axis "
        "ticks."
    )

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