Skip to content

Negative values in the plot (ra.get_plot_utilization) #175

@mtitov

Description

@mtitov

If small number of resources was used then it is obvious that the Y axis has negative values

Example of the resource utilization plot:

Screen Shot 2023-05-09 at 3 48 08 PM

p.s. in my tests, I've had the following correction

correction = 0.5
...
    legend, patches, x, y = ra.get_plot_utilization(
        METRICS, {sid: consumed}, p_zeros[sid][pid], sid)
    for patch in patches:
        patch.set_y(patch.get_y() + correction)
        axarr[idx].add_patch(patch)
...
    axarr[idx].set_ylim([int(y['min'] + correction), int(y['max'] + correction)])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions