Co-occurrence Matrix NetworkΒΆ
>>> from techminer2.co_occurrence_matrix import co_occurrence_matrix_network
>>> plot = co_occurrence_matrix_network(
... #
... # FUNCTION PARAMS:
... columns='author_keywords',
... rows='authors',
... retain_counters=True,
... #
... # COLUMN PARAMS:
... col_top_n=10,
... col_occ_range=(None, None),
... col_gc_range=(None, None),
... col_custom_terms=None,
... #
... # ROW PARAMS:
... row_top_n=10,
... row_occ_range=(None, None),
... row_gc_range=(None, None),
... row_custom_terms=None,
... #
... # LAYOUT:
... nx_k=None,
... nx_iterations=30,
... nx_random_state=0,
... #
... # NODES AND EDGES:
... node_size_range=(30, 70),
... textfont_size_range=(10, 20),
... textfont_opacity_range=(0.35, 1.00),
... edge_color="#b8c6d0",
... edge_width_range=(0.8, 4.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/co_occurrence_matrix/co_occurrence_matrix_network_0.html")
>>> plot = co_occurrence_matrix_network(
... #
... # FUNCTION PARAMS:
... columns='author_keywords',
... rows=None,
... retain_counters=True,
... #
... # COLUMN PARAMS:
... col_top_n=10,
... col_occ_range=(None, None),
... col_gc_range=(None, None),
... col_custom_terms=None,
... #
... # ROW PARAMS:
... row_top_n=None,
... row_occ_range=(None, None),
... row_gc_range=(None, None),
... row_custom_terms=None,
... #
... # LAYOUT:
... nx_k=None,
... nx_iterations=30,
... nx_random_state=0,
... #
... # NODES AND EDGES:
... node_size_range=(30, 70),
... textfont_size_range=(10, 20),
... textfont_opacity_range=(0.35, 1.00),
... edge_color="#b8c6d0",
... edge_width_range=(0.8, 4.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/co_occurrence_matrix/co_occurrence_matrix_network_1.html")