You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to be able to customize the graph attributes using the django settings for more advanced controls (cf. http://www.graphviz.org/doc/info/attrs.html), some very general ones are for example size (size of the output height,width in inches), resolution in DPI for a better control over what one wants as output.
It would be useful to be able to customize the graph attributes using the django settings for more advanced controls (cf. http://www.graphviz.org/doc/info/attrs.html), some very general ones are for example
size
(size of the outputheight,width
in inches),resolution
in DPI for a better control over what one wants as output.This is achievable by customizing this part of pygraphiz integration, like so:
graph = pygraphviz.AGraph(dotdata) graph.layout(prog=kwargs['layout']) # args="-Ln16" + graph.graph_attr.update(**any_custom_settings) graph.draw(kwargs['outputfile'])
For this, we could extend the current setting key
GRAPH_MODELS
.We could also allow users to provide custom options per layout and general options for the drawing execution. It would be achievable like so:
This would also allow the users to use other layouts requiring additional arguments.
The text was updated successfully, but these errors were encountered: