@@ -705,11 +705,12 @@ from the ``label`` attribute by default and vertex colors are determined by the
705705 >>> color_dict = {"m": "blue", "f": "pink"}
706706 >>> g.vs["color"] = [color_dict[gender] for gender in g.vs["gender"]]
707707 >>> ig.plot(g, layout=layout, bbox=(300, 300), margin=20) # Cairo backend
708- >>> ig.plot(g, layout=layout, bbox=(300, 300), margin=20, target=ax) # matplotlib backend
708+ >>> ig.plot(g, layout=layout, target=ax) # matplotlib backend
709709
710- Note that we are simply re-using the previous layout object here, but we also specified
711- that we need a smaller plot (300 x 300 pixels) and a larger margin around the graph
712- to fit the labels (20 pixels). The result is:
710+ Note that we are simply re-using the previous layout object here, but for the Cairo backend
711+ we also specified that we need a smaller plot (300 x 300 pixels) and a larger margin around
712+ the graph to fit the labels (20 pixels). These settings would be ignored for the Matplotlib
713+ backend. The result is:
713714
714715.. figure :: figures/tutorial_social_network_2.png
715716 :alt: The visual representation of our social network - with names and genders
@@ -869,7 +870,8 @@ Keyword argument Purpose
869870---------------- ----------------------------------------------------------------
870871``bbox `` The bounding box of the plot. This must be a tuple containing
871872 the desired width and height of the plot. The default plot is
872- 600 pixels wide and 600 pixels high.
873+ 600 pixels wide and 600 pixels high. Ignored for the
874+ Matplotlib backend.
873875---------------- ----------------------------------------------------------------
874876``layout `` The layout to be used. It can be an instance of
875877 :class: `~layout.Layout `,
@@ -881,7 +883,7 @@ Keyword argument Purpose
881883``margin `` The top, right, bottom and left margins of the plot in pixels.
882884 This argument must be a list or tuple and its elements will be
883885 re-used if you specify a list or tuple with less than four
884- elements.
886+ elements. Ignored for the Matplotlib backend.
885887================ ================================================================
886888
887889Specifying colors in plots
0 commit comments