Is there a way to visually view in one diagram, the difference between the two versions of the same diagram?

0 votes
asked Mar 15, 2021 in Question / help by Roger
For example, if I have a design that includes some sequence diagram. In my CM tool I release the diagram at V1. Then, the design evolves and I add lines and/or subtract lines from the diagram. I release the new version of the diagram as V2. Since the diagrams are essentially text, I can certainly diff them in my CM tool. But is there a way to render those differences in a single diagram?

1 Answer

0 votes
answered Mar 16, 2021 by chris (1,900 points)
"A picture speaks a thousand words"
Images are fundamentally more information dense than text. As plantuml renders images of different sizes based on the content, you're not going to be able to easily diff two images. If you have two images of exactly the same size, you can do things like "diff", which show up where pixels have a different colour, but these don't look great and will be very hard to do - in general.

In my opinion, if you are trying to communicate the change then you'll get the best results by manually highlighting the changes (either changing the colour of the elements, or just a hand drawn red circle!). If you're just trying to keep track of changes, stick with the text - that's why I like plantuml, as it's text and not a picture and is therefore a lot easier to track the changes.