Skip to main content

Module utils

Module utils 

Source
Expand description

Shared utilities for chart calculations

Functions§

calculate_price_levels
Calculate nice price levels for grid and axis
compare_image_mse
Compute the mean squared error (MSE) between generated RGBA image data and a reference PNG file. A lower MSE indicates the generated image is more similar to the reference.
find_nice_number
Find a “nice” round number for price steps