Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
ortools.sat.colab.visualization.SvgWrapper Class Reference

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)
 

Detailed Description

Simple SVG wrapper to use in colab.

Definition at line 108 of file visualization.py.

Constructor & Destructor Documentation

◆ __init__()

ortools.sat.colab.visualization.SvgWrapper.__init__ ( self,
sizex,
sizey,
scaling = 20.0 )

Definition at line 111 of file visualization.py.

Member Function Documentation

◆ AddRectangle()

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.

◆ AddText()

ortools.sat.colab.visualization.SvgWrapper.AddText ( self,
x,
y,
label )

Definition at line 137 of file visualization.py.

◆ AddTitle()

ortools.sat.colab.visualization.SvgWrapper.AddTitle ( self,
title )
Add a title to the drawing.

Definition at line 182 of file visualization.py.

◆ AddXScale()

ortools.sat.colab.visualization.SvgWrapper.AddXScale ( self,
step = 1 )
Add an scale on the x axis.

Definition at line 150 of file visualization.py.

◆ AddYScale()

ortools.sat.colab.visualization.SvgWrapper.AddYScale ( self,
step = 1 )
Add an scale on the y axis.

Definition at line 166 of file visualization.py.

◆ Display()

ortools.sat.colab.visualization.SvgWrapper.Display ( self)

Definition at line 123 of file visualization.py.


The documentation for this class was generated from the following file: