- Notifications
You must be signed in to change notification settings - Fork 258
feat: align_layout() #841
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
feat: align_layout() #841
Conversation
@ntamas, I need help here. How do I pass a graph object to a free function? I'm getting this error from
|
Never mind, I figured it out. |
f25ee95
to 1236f42
Compare @ntamas It seems that the default layout on my system is not I suspect that @BeaMarton13's difficulties with Cairo being the default plot backend have to do with a saved configuration as well. |
One of the gallery examples changes and saves the layout: https://python.igraph.org/en/stable/tutorials/configuration.html#sphx-glr-tutorials-configuration-py Does building the docs on our system, and this building gallery examples, permanently change the config? That would be a problem. |
Yes, it probably does, and indeed it's a problem, but to be honest the whole idea of having a configuration file for a library is the root cause of the problem here. This was a mistake from the early days and I deeply regret it, but it's probably here to stay with this version of the Python interface. It won't happen with the new Python interface. Are you sure you don't have an >>> from igraph.configuration import get_user_config_file >>> get_user_config_file() '/Users/tamas/.igraphrc' |
@ntamas, some questions regarding this PR:
My preference is to:
|
Regarding configuration,
|
1236f42
to cb7dc69
Compare
Oh so we do have an Bottom like: use
Agreed.
Yes. That's another reason why it's a terrible idea in the first place.
AFAIK it's still "plotting.backend": {"default": "cairo"} Again, if I were to do this today (assuming that I still wouldn't be convinced that a configuration system for a library is a bad idea), I would do it with a dedicated library like
The default should be "whatever is available on the user's machine and whatever fits the current environment (notebooks or not), preferring To be honest, with the plans for the new Python interface I don't really feel like changing the defaults right now. There are two options: either there will be funding for the project in the future (in which case I'd rather focus my efforts on the new Python interface instead of changing things in the old Python interface and potentially breaking things for the end users), or there won't be any funding, in which case I will not have the resources to deal with people coming to complain about a unilateral breaking change (especially because the two backends do not have feature parity). There has always been an option to change the plotting backend and people who needed
Sounds good - please send a PR and I'll merge it. |
Alright, then let's use the config system to change the default to matplotlib for the community detection tutorial, but not save the config. @BeaMarton13, can you please do this? See https://python.igraph.org/en/stable/tutorials/configuration.html#sphx-glr-tutorials-configuration-py for an example. |
and bounded FR and KK
cb7dc69
to 1f48b47
Compare @ntamas, once again, I have to ask if you can help update the few failing tests ... I expect these must somehow hard-code properties of specific layouts. Unfortunately I wasn't able to run these specific tests locally due to missing dependencies. Running Python tests is extremely painful as it keeps accessing online resourcs, which keep timing out and barely give me 10 kB / s ... |
e4c18e6
to 183e6a4
Compare Thanks! |
No description provided.