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

Center the image #26

Open
Naheel-Azawy opened this issue Apr 3, 2020 · 8 comments
Open

Center the image #26

Naheel-Azawy opened this issue Apr 3, 2020 · 8 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Naheel-Azawy
Copy link

The picture is a bit off from the center... Not sure if that's normal or wrong but it annoys me a lot for some reason... Is it possible to automatically center it?

image

Awesome work btw!
And yes I know I have tons of packages and I need serious cleanups

@Kharacternyk
Copy link
Owner

The reason is that one package on the far left.

We need somehow to force the center of the image to be where the central dot is. Can't say I see an obvious solution.

@Kharacternyk Kharacternyk added enhancement New feature or request help wanted Extra attention is needed labels Apr 3, 2020
@Kharacternyk
Copy link
Owner

Btw, that barely visible blue dots are potential orphans. I should consider to use a somewhat brighter color.

@Naheel-Azawy
Copy link
Author

@Kharacternyk probably because of the black background. I guess it looks fine with the gray background. My packages are pure mess...

@Kharacternyk
Copy link
Owner

I added -c option in 01fe701. It allows to change the package that will be put into the center of the circles. It tends to change the appearance of the graph dramatically. Maybe you could try to guess a package that will work for you?

@Naheel-Azawy
Copy link
Author

That's nice thanks! I tried with glibc... Here's what I got...
image

@Kharacternyk
Copy link
Owner

Yeah, some guesswork is required and it isn't even guaranteed to work.

I'm still looking for a proper solution.

@Z2h-A6n Z2h-A6n mentioned this issue Sep 7, 2020
@Z2h-A6n
Copy link
Contributor

Z2h-A6n commented Sep 7, 2020

Hi, made a pull request that centers the image when a root package is specified with -c ROOT. See #44 . It relies on having twopi also make a plain-text representation of the graph, and grep-ing for the root node in that text. I don't know how to do something like this if -c is not used, since it's not clear how to get the name of the root node in that case.

@Kharacternyk
Copy link
Owner

@Z2h-A6n fixed this in v1.5 but I let the issue hang around because v2.* doesn't have a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants