Forgot password?
 Create new account
View 128|Reply 0

fit picture

[Copy link]

3148

Threads

8489

Posts

610K

Credits

Credits
66148
QQ

Show all posts

hbghlyj Posted at 2023-3-5 05:08:47 |Read mode
右边的竖线被南移了一点, 这是由add(pic2,pic.fit(),(1/4,0),N);引起的, 因为align参数N是放在北边

如果改成add(pic2,pic.fit(),(0,1/2),E);, 放在东边, 发现右边的竖线被西移了一点

如果改成 居中对齐add(pic2,pic.fit(),(1/4,1/2),(0,0)); 就没有问题了:

另外需注意: 源picture和目标picture应设定相同的unitsize防止被重新缩放.
设定相同的size不能防止被重新缩放.
若将unitsize改为size就都乱套了:


Related
6.5 Frames and pictures
How can I have Asymptote rescale a drawing automatically to fit a width

手机版Mobile version|Leisure Math Forum

2025-4-20 11:54 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list