In a larger diagram I'm trying to improve layout of like classes using together blocks. The together blocks and other code are inside of a namespace. The problem I'm running into is that relationships defined outside of the together block (but still inside of the namespace) create new classes, rather than using the ones already defined in the together blocks. Here's a snippet of code:
@startuml
namespace Observation {
together {
abstract class BadPix {
}
class Role::BadPix <<role>> {
}
}
class Base {
}
BadPix *-- Role::BadPix
Base <|-- Role::BadPix
}
@enduml
and here's what it looks like:
http://www.plantuml.com/plantuml/png/PKzT2i8m37xlAV8ix0AZZE4556-GTM4EkbQIACBqxYkaGzIy95--dv1U55dlItG95v8R1eBJ8CGFr3adM9q30CqJwPMuGB32GPGnA8I88d34yJm_F_JRxPFnbnofRQlAUowmw_xarlP4eNhTrjLyQ9glDAEArhz-6LUCFQMnVBS1
If I remove the namespace, things work:
http://www.plantuml.com/plantuml/png/SoWkIImgAStDuU9IK50eoKzFBSb8BLAe1l50836fkAGeCRb48JadiRXOmIan9I2p0Y5TomLZGUI3ydDIhQoWgcniYe1SEpiCvH0APc9nAb015rmOgbbBLnV5D8WKKArD3ReC5vT3QbuAq0y0