-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
don't fill plain shaped nodes #10172
base: master
Are you sure you want to change the base?
Conversation
The gray fill color is to indicate a special feature (see the explanation with the legend graph).
So when using this it would also be necessary to adjust the first line of text.
|
I've updated the patch and the description. Fill is allowed for shapes in Graphviz. Boxes can be removed for aesthetic purposes accordingly subjective taste with my accepted PR: #9463 |
for configuration with DOT_NODE_ATTR = shape=plaintext because filling is intended for record or box shaped Graphviz nodes. Plain shaped root node is already highlighted with bold font and Truncated is already marked woth italic font in function DotNode::writeLabel. Mark `Undefined` with dark gray color.
@albert-github , would you like please to review? |
"For the default configuration, " | ||
"the boxes in the above graph have the following meaning:\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean that the "legend" is in the "old" stile even when using "shape=plain" and thus having an inconsistent "legend" with the images?
The "legend" should follow the current status (there might also be some places already where the color description doesn't fit).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean legend text? For default configuration the legend image is consistent with legend text. For another style configuration legend images are inconsistent with the hard-coded legend text.
What do you suggest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the legend (and its texts) should express the the way the graphs are generated (i.e. colors, shapes and texts).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have contradiction between flexible graph generation rigid text description on many languages.
Hypothetically it is possible to translate arbitrary graph style to description to all languages with help of AI.
I already expressed my opinion before and now placed a, small, review as well. |
for configuration with
DOT_NODE_ATTR = shape=plaintext
because filling is intended for record or box shaped Graphviz nodes.
Plain shaped root node is already highlighted with bold font
and Truncated is already marked with italic font
in function DotNode::writeLabel.
Mark
Undefined
with dark gray color.The legend before:
The legend after:
This PR continues #9463