boxes.display

boxes.display.display(filename, figure, boxes, dots_per_unit=30)

Output a figure showing the location of the given boxes to filename. This function calls figure.solve() and uses the size of figure as the size of the image. This function is meant for quick visualization.

Parameters:
  • filename (string) – The output file. Must end in .svg or .png.
  • figure (Box) – Defines the size of the figure.
  • boxes (An iterable of Box instances) – The boxes to draw.
  • dots_per_unit (float) – Scaling factor.