[NTG-context] Buffered metapost function freezes random numbers

DesdeChaves desdechaves at gmail.com
Wed May 25 19:44:52 CEST 2016


I found this solution in a old Hans post  (
http://ntg-context.ntg.narkive.com/g0lT1D2A/scaling-mpgraphics)

2016-05-25 18:30 GMT+01:00 Wolfgang Schuster <schuster.wolfgang at gmail.com>:

> DesdeChaves <desdechaves at gmail.com>
> 25. Mai 2016 um 19:09
> For educational purposes I try to simulate a ammeter for reading practice.
> I would like create six or more ammeter with different readings, but i'm
> not able to do that because metapost create the same random number every
> time I call the buffer that defines my ammeter.
>
> How can I fix that?
>
> Is there a reason why you use \externalfigure because the width can be set
> with \scale, e.g.
>
>     \scale[width=8cm]{\getbuffer[ammeter]}
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>



-- 
Atentamente

DesdeChaves
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160525/043eea5a/attachment.html>


More information about the ntg-context mailing list