Dear Taco,
I thank you very much for your time.
It works perfectly and I will emulate these modifications in my other figures. I have no ideas about the problem, I just figured out that it came from El Capitan because I updated the OS yesterday, however I also had to reinstall MacTex, so it may also come from a different version of ConText?

Dear Hans,
I would like to thank you for all your work on Metafun, as it is the tool I use now exclusively for all my scientific figures.

Best regards,
Louis-Solal 

2016-09-01 11:43 GMT+02:00 Taco Hoekwater <taco@elvenkind.com>:
Hi,

I am on El Capitan as well (10.11.6).

ConTeXt  ver: 2016.08.29 22:53 MKIV beta

Attached is an altered input file that works for me. No idea how much of the problem
is actually related to El Capitan, but:

* \usemodule[graph] defines a special MP instance called ‘graph’. You need to
  use that because otherwise the metapost graph macros will not load (that is why
  I added the “graph::” prefix twice)

* Something is wrong with the file closing, so I added an extra definition for
  'graph_close_file' (no idea why it does not work out of the box. Sorry to you and Hans).

Best wishes,
Taco




___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________