diff options
Diffstat (limited to 'networkx/drawing/nx_latex.py')
-rw-r--r-- | networkx/drawing/nx_latex.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/networkx/drawing/nx_latex.py b/networkx/drawing/nx_latex.py index 359d0ed1..6312f715 100644 --- a/networkx/drawing/nx_latex.py +++ b/networkx/drawing/nx_latex.py @@ -8,7 +8,7 @@ Usually, you will want the drawing to appear in a figure environment so you use ``to_latex(G, caption="A caption")``. If you want the raw drawing commands without a figure environment use :func:`to_latex_raw`. And if you want to write to a file instead of just returning the latex -code as a string, use ``write_latex(G, "filname.tex", caption="A caption")``. +code as a string, use ``write_latex(G, "filename.tex", caption="A caption")``. To construct a figure with subfigures for each graph to be shown, provide ``to_latex`` or ``write_latex`` a list of graphs, a list of subcaptions, @@ -334,7 +334,7 @@ def to_latex( The TikZ drawing utility in LaTeX is used to draw the graph(s). If `Gbunch` is a graph, it is drawn in a figure environment. - If `Gbunch` is an iterable of graphs, each is drawn in a subfigure envionment + If `Gbunch` is an iterable of graphs, each is drawn in a subfigure environment within a single figure environment. If `as_document` is True, the figure is wrapped inside a document environment @@ -397,7 +397,7 @@ def to_latex( n_rows : int The number of rows of subfigures to arrange for multiple graphs as_document : bool - Whether to wrap the latex code in a document envionment for compiling + Whether to wrap the latex code in a document environment for compiling document_wrapper : formatted text string with variable ``content``. This text is called to evaluate the content embedded in a document environment with a preamble setting up TikZ. @@ -494,7 +494,7 @@ def write_latex(Gbunch, path, **options): Gbunch : NetworkX graph or iterable of NetworkX graphs If Gbunch is a graph, it is drawn in a figure environment. If Gbunch is an iterable of graphs, each is drawn in a subfigure - envionment within a single figure environment. + environment within a single figure environment. path : filename Filename or file handle to write to options : dict @@ -550,7 +550,7 @@ def write_latex(Gbunch, path, **options): n_rows : int The number of rows of subfigures to arrange for multiple graphs as_document : bool - Whether to wrap the latex code in a document envionment for compiling + Whether to wrap the latex code in a document environment for compiling document_wrapper : formatted text string with variable ``content``. This text is called to evaluate the content embedded in a document environment with a preamble setting up the TikZ syntax. |