diff options
Diffstat (limited to 'graphics/circuit_macros/examples/dpv/RotboxDPV.m4')
-rw-r--r-- | graphics/circuit_macros/examples/dpv/RotboxDPV.m4 | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/graphics/circuit_macros/examples/dpv/RotboxDPV.m4 b/graphics/circuit_macros/examples/dpv/RotboxDPV.m4 index fba198a669..c64971f048 100644 --- a/graphics/circuit_macros/examples/dpv/RotboxDPV.m4 +++ b/graphics/circuit_macros/examples/dpv/RotboxDPV.m4 @@ -8,14 +8,12 @@ gen_init rotbox(boxwid/2,,thick 2) Point_(30) rotbox(,,shaded "yellow" outlined "blue" thick 3,r=0.1) \ - at last []+vec_(boxwid,0) + at last [].se+vec_(boxwid,0) "r=0.1" at last [] - move to last [].ne Point_(0) - [[]; for_(2,8,2, `rotbox(,,dashed,t=m4x/10) at last []+vec_(boxwid*1.1,0) - sprintf("t=%g",m4x/10) at last [] ') ] with .nw at last [].ne+(0.1,0) - [[]; for_(10,16,2, `rotbox(,,dashed,t=m4x/10) at last []+vec_(boxwid*1.1,0) - sprintf("t=%g",m4x/10) at last [] ') ] with .nw at last [].sw+(0,-0.1) + [[]; for_(2,16,2, `rotbox(,,dashed,t=m4x/10) with .nw at \ + ifelse(m4x,10,`2nd [].sw+(0,-0.1)',`last [].ne+(boxwid*0.1,0)') + sprintf("t=%g",m4x/10) at last []') ] with .sw at last [].se+(0.1,0) ] .PE |