8000 Histogram figures thin bars error · Issue #57 · clearml/clearml-web · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Histogram figures thin bars error #57
Open
@snirlugassy-imagry

Description

@snirlugassy-imagry

Hi,
When using logger.report_matplotlib_figure to plot a histogram with large number of bins, the UI plot is displaying the histogram with very thin bars, making the visualization not usable.

Example code:

for metric in evaluator.metrics:
    plt.figure()
    plt.hist(results[_metric].dropna(), bins=HISTOGRAM_BINS)
    fig = plt.gcf()
    task.logger.report_matplotlib_figure(title=metric, series=metric, figure=fig)

Using HISTOGRAM_BINS=60 shows the following plot:
image

While using HISTOGRAM_BINS=25 seems reasonable:
image

The issue is also relevant for comparison between 2 histograms, when comparing 2 histograms with 25 bins, the following is displayed:
image

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

      0