Skip to content

module myna.core.utils.downsample_to_image


function downsample_to_image

downsample_to_image(
    data_x,
    data_y,
    values,
    image_size,
    plate_size,
    bottom_left=[0, 0],
    mode='max'
)

Downsample a 2D numpy array to a specified image size

Args:

  • data_x: x-axis values
  • data_y: y-axis values
  • values: array of values to plot
  • image_size: size of the image to output
  • plate_size: size of the build plate (meters)
  • bottom_left: [X,Y] coordinate (meters) associated with bottom-left of image
  • mode: method for downsampling (default "max")

This file was automatically generated via lazydocs.