Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimising layout defaults #11

Open
BazilSansom opened this issue Mar 30, 2021 · 3 comments
Open

Optimising layout defaults #11

BazilSansom opened this issue Mar 30, 2021 · 3 comments
Assignees

Comments

@BazilSansom
Copy link

Could default parameters for layout plugin be set as a function of network dimensions/properties to generate more satisfactory layouts with less manual input from users?

@WouterSpekkink WouterSpekkink self-assigned this Mar 30, 2021
@WouterSpekkink
Copy link
Owner

I will explore this. We need to take into account that the layout plugin can be used for different purposes, and that the values that are used as input for these different purposes may differ widely. Having default settings that work equally well for all purposes is impossible. However, maybe I can make the plugin choose defaults after the user chooses the variable that is to be used as the order variable.

@WouterSpekkink
Copy link
Owner

Okay, so I made a first attempt at this, but it will require more tweaking probably. What I did now is to automatically make the ordered layout plugin recognize the Trophic_Levels variable as a candidate for the order variable. Once it finds this variable in the data laboratory, it calculates the range of the values of thiis variable. If this range is less than 10, it will set the order scaling to 1000. If it is less than 100, it will set the order scaling to 100. If it is less than 1000, it will set the order scaling to 10. If it less than 10.000, it wills et the order scaling to 1. I am not sure yet that these orders of magnitude and their corresponding scaling values actually make most sense. That is something we need to try out.

I also set the default force scale to 4. I think we actually might want this to very with network size. This also requiers some testing.

@WouterSpekkink
Copy link
Owner

Oh, and I should also point out that you can make presets for layouts in the bottom-left panel. I didn't know myself, but I saw that today. This also helps to deal with this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants