uni-courses / snncompare

Runs networkx graphs representing spiking neural networks of LIF-neurons on lava-nc or networkx.
GNU Affero General Public License v3.0
2 stars 0 forks source link

Change degree_receiver vertical spacing. #197

Closed a-t-0 closed 1 year ago

a-t-0 commented 1 year ago

Refactor

class Plot_config:
    """Stores the configuration for the plots."""

    # pylint: disable=R0903
    # pylint: disable=R0913
    # pylint: disable=R0914
    @typechecked
    def __init__(
        self,
        base_pixel_width: int,
        base_pixel_height: int,
        dx_redundant_factor: float,
        dy_redundant_factor: float,
        edge_width_factor: float,
        edge_label_size_factor: float,
        neuron_text_size_factor: float,
        node_size: float,
        recursive_edge_radius_factor: float,
        show_nodes: bool,
        show_node_colours: bool,
        show_node_labels: bool,
        show_node_opacity: bool,
        show_edge_colours: bool,
        show_edge_labels: bool,
        show_edge_opacity: bool,
        show_x_ticks: bool,
        show_y_ticks: bool,
        redundant_curve_factor: float,
        update_node_colours: bool,
        update_node_labels: bool,
        update_node_opacity: bool,
        update_edge_colours: bool,
        update_edge_labels: bool,
        update_edge_opacity: bool,
        x_node_spacer_factor: float,
        x_tick_size_factor: float,
        y_node_spacer_factor: float,
        y_tick_size_factor: float,
    ) -> None:
        """Creates the plot configuration to generate the svg files."""

to:

a-t-0 commented 1 year ago

Done.