Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Histogram figures thin bars error #57

Open
snirlugassy-imagry opened this issue Jun 21, 2023 · 0 comments
Open

Histogram figures thin bars error #57

snirlugassy-imagry opened this issue Jun 21, 2023 · 0 comments

Comments

@snirlugassy-imagry
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant