Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
__init__ (self, sizex, sizey, scaling=20.0) | |
Display (self) | |
AddRectangle (self, x, y, dx, dy, fill, stroke="black", label=None) | |
AddText (self, x, y, label) | |
AddXScale (self, step=1) | |
AddYScale (self, step=1) | |
AddTitle (self, title) | |
Simple SVG wrapper to use in colab.
Definition at line 108 of file visualization.py.
ortools.sat.colab.visualization.SvgWrapper.__init__ | ( | self, | |
sizex, | |||
sizey, | |||
scaling = 20.0 ) |
Definition at line 111 of file visualization.py.
ortools.sat.colab.visualization.SvgWrapper.AddRectangle | ( | self, | |
x, | |||
y, | |||
dx, | |||
dy, | |||
fill, | |||
stroke = "black", | |||
label = None ) |
Draw a rectangle, dx and dy must be >= 0.
Definition at line 126 of file visualization.py.
ortools.sat.colab.visualization.SvgWrapper.AddText | ( | self, | |
x, | |||
y, | |||
label ) |
Definition at line 137 of file visualization.py.
ortools.sat.colab.visualization.SvgWrapper.AddTitle | ( | self, | |
title ) |
Add a title to the drawing.
Definition at line 182 of file visualization.py.
ortools.sat.colab.visualization.SvgWrapper.AddXScale | ( | self, | |
step = 1 ) |
Add an scale on the x axis.
Definition at line 150 of file visualization.py.
ortools.sat.colab.visualization.SvgWrapper.AddYScale | ( | self, | |
step = 1 ) |
Add an scale on the y axis.
Definition at line 166 of file visualization.py.
ortools.sat.colab.visualization.SvgWrapper.Display | ( | self | ) |
Definition at line 123 of file visualization.py.