Forgot password
 Register account
View 249|Reply 0

fit picture

[Copy link]

3226

Threads

7843

Posts

52

Reputation

Show all posts

hbghlyj posted 2023-3-5 05:08 |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

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-23 09:43 GMT+8

Powered by Discuz!

Processed in 0.013900 seconds, 25 queries