[metapost] How to use a thinner pen?

Taco Hoekwater taco at elvenkind.com
Mon Jun 16 16:34:34 CEST 2008



Rodolfo Medina wrote:
> 
> This is a simple test file, let's call it test.mp:
> 
> beginfig(1);
> numeric u;
> u = 1cm;
> draw (0,-u)--(0,0)--(0,4u);
> pickup pencircle scaled 2pt;
> draw (-2u,0)--(0,0)--(4u,0);
> pickup pencircle scaled 0.0000000000000001pt;
> draw (0,u)--(u,u);
> endfig;
> 
> end
> 
> 
> .  I view it giving the following commands:
> 
>  $ mpost test

Try running

   $ gv test.1

here (test.1 is a valid EPS so long as you don't use labels),
and see if you have different linewidths after zooming in.

I suspect that your dvips printer (www) has a resolution that
is so low that every line width below 1pt becomes one pixel.

Best wishes,
Taco


More information about the metapost mailing list