maksim2042 / SNABook

Code for "Social Networks for Startups"
242 stars 200 forks source link

No network image produced #2

Open GraphGrailAi opened 10 years ago

GraphGrailAi commented 10 years ago

When i run hijackers.py file in Pycharm i dont see any image. Here is output:

D:\WinPython-32bit-2.7.5.1\python-2.7.5\python.exe "F:/Python/Graph packages/SNABook-master/chapter4/hijackers.py" drawing nodes... {'93_Penn': 'g', '175_WTC South': 'r', 'None': 'b', '77_Pentagon': 'm', '11_WTC North': 'c'} drawing edges... drawing labels...

Process finished with exit code 0

maksim2042 commented 10 years ago

This is due to settings in matplotlib.

Do the following:

import matplotlib.pyplot as plt plt.show()

This should resolve your problem

Max

On Fri, Sep 20, 2013 at 12:05 PM, GraphGrail notifications@github.comwrote:

When i run hijackers.py file in Pycharm i dont see any image. Here is output:

D:\WinPython-32bit-2.7.5.1\python-2.7.5\python.exe "F:/Python/Graph packages/SNABook-master/chapter4/hijackers.py" drawing nodes... {'93_Penn': 'g', '175_WTC South': 'r', 'None': 'b', '77_Pentagon': 'm', '11_WTC North': 'c'} drawing edges... drawing labels...

Process finished with exit code 0

— Reply to this email directly or view it on GitHubhttps://github.com/maksim2042/SNABook/issues/2 .

GraphGrailAi commented 10 years ago

It works, thanks. Would you recommend to make this auto-behavior, without editing file? P.S. by the way, russian main tv channel 1tv.ru published recently unofficial version of 9/11, including 3rd tower demolition etc - so i am not sure the network science are able to bare with such facts (known before but closed from public).

maksim2042 commented 10 years ago

I'm not sure which I like better. Having auto makes things quicker; not having it allows me to choose if I want to display or save programmatically.

Re: 1tv.ru -- their truth to propaganda ration is asymptotically approaching zero, and so is the amount of time and attention I devote to them ;)

On Fri, Sep 20, 2013 at 12:29 PM, GraphGrail notifications@github.comwrote:

It works, thanks. Would you recommend to make this auto-behavior, without editing file? P.S. by the way, russian main tv channel 1tv.ru published recently unofficial version of 9/11, including 3rd tower demolition etc - so i am not sure the network science are able to bare with such facts (known before but closed from public).

— Reply to this email directly or view it on GitHubhttps://github.com/maksim2042/SNABook/issues/2#issuecomment-24822879 .

GraphGrailAi commented 10 years ago

The reason i post about 1tv.ru is that in this particular case it is better than american channels, undoubtedly. Maybe you know about unofficial version by Michael Moore - Fahrenheit 9 11 Movie. It was out in 2004 and till now american government not answering questions. So, that propaganda problem is not only in Russia. Coming back to SNA: when we analyze terrorist networks, we should not forbid to look at the other side: is there any known network of corruption bankers, congressmans, businessmans that are involved in 3d tower demolition and twin towers destroy?