pacwall icon indicating copy to clipboard operation
pacwall copied to clipboard

Center the image

Open Naheel-Azawy opened this issue 4 years ago • 8 comments

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

Naheel-Azawy avatar Apr 03 '20 19:04 Naheel-Azawy

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 avatar Apr 03 '20 19:04 Kharacternyk

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

Kharacternyk avatar Apr 03 '20 19:04 Kharacternyk

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

Naheel-Azawy avatar Apr 04 '20 00:04 Naheel-Azawy

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?

Kharacternyk avatar Apr 05 '20 14:04 Kharacternyk

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

Naheel-Azawy avatar Apr 05 '20 17:04 Naheel-Azawy

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

I'm still looking for a proper solution.

Kharacternyk avatar Apr 05 '20 17:04 Kharacternyk

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.

Z2h-A6n avatar Sep 07 '20 15:09 Z2h-A6n

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

Kharacternyk avatar Sep 10 '20 20:09 Kharacternyk