Network PlotΒΆ
>>> # authors, countries, organizations, sources:
>>> from techminer2.coupling_network import network_plot
>>> plot = network_plot(
... unit_of_analysis='authors', # article
... # authors
... # countries
... # organizations
... # sources
... #
... # FILTERS:
... top_n=20,
... citations_threshold=0,
... #
... # FILTERS NOT VALID FOR 'article' UNIT OF ANALYSIS:
... occurrence_threshold=2,
... custom_terms=None,
... #
... # NETWORK PARAMS:
... algorithm_or_dict="louvain",
... #
... # LAYOUT:
... nx_k=None,
... nx_iterations=30,
... nx_random_state=0,
... #
... # NODES:
... node_size_range=(30, 70),
... textfont_size_range=(10, 20),
... textfont_opacity_range=(0.35, 1.00),
... #
... # EDGES:
... edge_color="#7793a5",
... edge_width_range=(0.8, 3.0),
... #
... # AXES:
... xaxes_range=None,
... yaxes_range=None,
... show_axes=False,
... #
... # DATABASE PARAMS:
... root_dir="example/",
... database="main",
... year_filter=(None, None),
... cited_by_filter=(None, None),
... )
>>> # plot.write_html("sphinx/_static/coupling_network/others_network_plot.html")
>>> # article:
>>> from techminer2.coupling_network import network_plot
>>> plot = network_plot(
... unit_of_analysis='article', # article
... # authors
... # countries,
... # organizations
... # sources
... #
... # FILTERS:
... top_n=20,
... citations_threshold=0,
... #
... # NOT VALID FOR 'article' UNIT OF ANALYSIS:
... occurrence_threshold=2,
... custom_terms=None,
... #
... # NETWORK PARAMS:
... algorithm_or_dict="louvain",
... #
... # LAYOUT:
... nx_k=None,
... nx_iterations=30,
... nx_random_state=0,
... #
... #
... # NODES:
... node_size_range=(30, 70),
... textfont_size_range=(10, 20),
... textfont_opacity_range=(0.35, 1.00),
... #
... # EDGES:
... edge_color="#7793a5",
... edge_width_range=(0.8, 3.0),
... #
... # AXES:
... xaxes_range=None,
... yaxes_range=None,
... show_axes=False,
... #
... # DATABASE PARAMS:
... root_dir="example/",
... database="main",
... year_filter=(None, None),
... cited_by_filter=(None, None),
... )
>>> # plot.write_html("sphinx/_static/coupling_network/docs_network_plot.html")