Commit a7a1a83b authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix transposed correlation plots in the documentation

parent 26fdc3b7
......@@ -274,7 +274,7 @@ def corr_hist(g, deg_source, deg_target, bins=[[0, 1], [0, 1]], weight=None,
<...>
>>> ylabel("Target out-degree")
<...>
>>> imshow(h[0], interpolation="nearest")
>>> imshow(h[0].T, interpolation="nearest", origin="lower")
<...>
>>> colorbar()
<...>
......@@ -360,7 +360,7 @@ def combined_corr_hist(g, deg1, deg2, bins=[[0, 1], [0, 1]], float_count=True):
<...>
>>> ylabel("Out-degree")
<...>
>>> imshow(h[0], interpolation="nearest")
>>> imshow(h[0].T, interpolation="nearest", origin="lower")
<...>
>>> colorbar()
<...>
......
......@@ -225,7 +225,7 @@ def random_graph(N, deg_sampler, deg_corr=None, cache_probs=True, directed=True,
>>> hist = gt.combined_corr_hist(g, "in", "out")
>>>
>>> clf()
>>> imshow(hist[0], interpolation="nearest")
>>> imshow(hist[0].T, interpolation="nearest", origin="lower")
<...>
>>> colorbar()
<...>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment