Often I include graphics with the trim option. Everytime I have to start a trial and error search for the right values. Is it possible to do it more straight forward?
Sometimes the grid in the corner is to far away, when cropping to axis labels. So I made an update, where I add rectangles over the whole image. And I add an optional parameter to control how deep the rectangles are drawn.
The thick lines have a distance of 10mm, the thin ones of 2mm. This is independent of the image if no
Call the macro with
On images it is still necessary to put the
To speed up the trimming process when including an image I build a little script with the help of
One can call the script by
In the second call, one has to shift the width from
The thick lines in the grids stand for 1cm, the thin ones for 2mm. These units are independent from the width of the graphic, because it is scaled after the grids are added. This is the reason why the argument of
How to use: