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
Proposal: automatically color modules in package diagram #4488
Comments
I like the colored solution, we could do it in two step with the configuration file for the color being a second step. I also like plantuml diagrams (it would permit to put the code into their package directly so they are already in well defined area) but this seem like a huge task. |
Yes, doing it in two steps is probably a good idea. I'm not sure if I understood the comment regarding plantuml correctly @Pierre-Sassoulas . What do you mean by "putting the code into their package directly"? Do you want more than just an additional backend beside DOT and VCG? |
I'm thinking of their class diagram, see: @startuml
package "Classic Collections" #DDDDDD {
Object <|-- ArrayList
}
package net.sourceforge.plantuml {
Object <|-- Demo1
Demo1 *- Demo2
}
@enduml The class are already in their respective package and plantuml put them close visually so the color is easy to apply to the whole package. Maybe that's too huge of a step though and coloring the current one is easier/faster. |
Thanks for the example. |
Is your feature request related to a problem? Please describe
I really like the possibility to generate package diagrams using
pyreverse
. However, a complete diagram can become very big and complex.The currently just "black and white" output makes it hard to spot modules of the same package.
This is for example the package diagram for pylint itself:
Describe the solution you'd like
By coloring modules of the same package with the same color, it is much easier to spot what parts belong together:
Additional context
I also experimented with grouping modules of the same package together, but the result is not as clear:
To discuss is the best way to implement this. The image above was generated by automatically picking colors from a list based on the first two parts of the module name.
Possible alternatives/extensions would be:
The text was updated successfully, but these errors were encountered: