diff options
Diffstat (limited to 'graphics/circuit_macros/examples/Rotbox.m4')
-rw-r--r-- | graphics/circuit_macros/examples/Rotbox.m4 | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/graphics/circuit_macros/examples/Rotbox.m4 b/graphics/circuit_macros/examples/Rotbox.m4 index 4480b8d8bd..77fd899542 100644 --- a/graphics/circuit_macros/examples/Rotbox.m4 +++ b/graphics/circuit_macros/examples/Rotbox.m4 @@ -6,13 +6,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 |