How can I set the width & height of rectangle?

0 votes
asked Aug 4, 2021 in Question / help by phil

Hi,

I use plantUML to draw a hardware architecture. I want "CFG" module should be located at bottom and be a narrow rectangle. How can I get this result?

@startuml

skinparam handwritten true

rectangle "APB"  as APB

rectangle "POOL" {

    rectangle "SRAM" as SRAM

    rectangle "PROC" as PROC 

    rectangle "CFG"  as CFG

}

SRAM <--> CFG 

PROC <--> CFG 

PROC <--> SRAM

APB  <--> CFG 

@enduml

1 Answer

0 votes
answered Aug 11, 2021 by The-Lu (89,080 points)

Hello,

What is your request?

 I want "CFG" module should be located at bottom and be a narrow rectangle.

Here is a proposal, but without big change:

@startuml
skinparam handwritten true
rectangle "APB"  as APB
rectangle "POOL" {
    rectangle "SRAM" as SRAM
    rectangle "PROC" as PROC 
    card "CFG"  as CFG
}

SRAM <--> CFG 
PROC <--> CFG 
PROC <--> SRAM
APB  <-> CFG
@enduml

Or just add '\t' as:


Regards,
Th.

...