Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

DotWriter

The DotWriter class is a helper utility in GTSAM used to customize the generation of Graphviz .dot file strings for visualizing factor graphs, Bayes nets, and Bayes trees.

It allows you to control aspects like figure size, whether factors are plotted as points, how edges are drawn, and specify explicit positions for variables and factors.

Open In Colab

Creating and Configuring a DotWriter

You create a DotWriter object and can then modify its public member variables to change the output format.

Usage with Graph Objects

The configured DotWriter object is passed as an argument to the .dot() method of FactorGraph, BayesNet, or BayesTree.

Loading...