Thanks for the reply. I don't think that there is any issue with graph
tool. It simply looks like ignorance on my part because I have seen some
figures in Tiago's papers which contain many network papers.

On Sat, Jul 29, 2017 at 8:36 PM, Alexandre Hannud Abdo <[email protected]>
wrote:

> Funny thing, messing around with your example I find that graph_draw seems
> to be drawing onto the wrong axis: when you pass axis 3 it draws inside
> aixs 1, passing axis 4 draws inside axis 2, and what you pass as axes 1 and
> 2 is likely being drawn outside the canvas. Also, if you exapnd to 8 axes,
> it plots only 4 of them, so it seems things are being shifted halfway
> updards before drawing. I looked at the code but having never played with
> Cairo it is not evident what could be wrong, but hopefully this will help.
>
> .~ยด
>
>
> On Sat, Jul 29, 2017 at 6:25 AM, Snehal Shekatkar <
> [email protected]> wrote:
>
>> Can somebody kindly help me with this? I am completely stuck.
>>
>> Thank you
>>
>>
>> On Thu, Jul 27, 2017 at 2:12 PM, Snehal Shekatkar <
>> [email protected]> wrote:
>>
>>> Hello all,
>>>
>>> I am trying to use mplfig parameter of the graph_draw to draw 4 graphs
>>> on the same plot. My code is given below. However, this only produces
>>> graphs in first and second subplots. What am I missing?
>>>
>>> import graph_tool.all as gt
>>> import matplotlib.pyplot as plt
>>> plt.switch_backend('cairo')
>>>
>>> '''Load a graph'''
>>> g = gt.collection.data['karate']
>>>
>>> for ind in range(4):
>>>
>>>     ax = plt.subplot(2, 2, ind+1)
>>>     gt.graph_draw(g, mplfig = ax)
>>>
>>> plt.savefig('karate4states.pdf')
>>>
>>>
>>> Thank you
>>>
>>> --
>>> Snehal M. Shekatkar
>>> Pune
>>> India
>>>
>>
>>
>>
>> --
>> Snehal M. Shekatkar
>> Pune
>> India
>>
>> _______________________________________________
>> graph-tool mailing list
>> [email protected]
>> https://lists.skewed.de/mailman/listinfo/graph-tool
>>
>>
>
> _______________________________________________
> graph-tool mailing list
> [email protected]
> https://lists.skewed.de/mailman/listinfo/graph-tool
>
>


-- 
Snehal M. Shekatkar
Pune
India
_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to