Closed galenseilis closed 1 year ago
I don't know pymc
, but from the API I understand you can modify the result of model_to_graphviz()
(a graphviz.Digraph
).
See https://graphviz.org/doc/info/attrs.html#d:bgcolor (I did not verify the transparency):
import graphviz
dot = graphviz.Digraph()
dot.edge('hello', 'world')
dot
dot.attr(bgcolor='transparent')
dot
dot.attr(bgcolor='green')
dot
For my blog I would like to render graphviz diagrams in PNG format of models I've trained in PyMc. Is there a way to make the background canvas transparent?
Here is an example from pymc