Menu

thin() and Arrow

Help
Anonymous
2012-09-12
2013-05-30
  • Anonymous

    Anonymous - 2012-09-12

    Hello,

    an interesting question was filed today on the following forum:

    http://asy.gmaths.net/forum/les-demandes-d-aide-f15/thin-et-arrow-t227.html

    The two images show what seems strange: how can we explain the size of the arrowhead in the first case?

    Thanks

     
  • John Bowman

    John Bowman - 2012-09-12

    With both Asymptote 2.16 and the current svn development version, the code

    import graph;
    size(5cm);
    draw((0,0)--(1,1)); // juste pour donner du volume.
    xaxis("$x$", thin(), Arrow);
    

    produces the expected result:

     
  • Anonymous

    Anonymous - 2012-09-12

    I found the problem that has been reported with version 2.16 and W7 :

    import graph;
    size(5cm);
    draw((0,0)--(1,1));
    xaxis("$x$", thin(), Arrow);
    label("Asymptote "+version.VERSION,point(N),S);
    

    asy -f pdf -k asy_2012_09_12_thin_arrow_fig1.asy
    

    http://docs.gmaths.net/tempo/thin_arrow/

     
  • Anonymous

    Anonymous - 2012-09-12

    I just put the latest version of Asymptote (see picture) on my linux server (to allow compilations on the forum) and again there is the problem of the dimension arrowhead.

    http://asy.gmaths.net/forum/les-demandes-d-aide-f15/thin-et-arrow-t227.html#p1680

    :-(

     
  • John Bowman

    John Bowman - 2012-09-13

    I was able to reproduce the problem on Windows 7 (but not on linux). It is a numerical resolution issue
    and unfortunately Philippe and I broke the work around for such cases back in r2969. It is fixed now in r5491.
    I'm about to release asy 2.17 with this fix; but in the meantime one can simply obtain a new copy of

    http://asymptote.svn.sourceforge.net/viewvc/asymptote/trunk/asymptote/base/plain_arrows.asy

     
  • Anonymous

    Anonymous - 2012-09-13

    I forwarded the information to the person who submitted the problem.
    Thank you.

     
  • Olivier Guibé

    Olivier Guibé - 2012-09-13

    Hello

    I was able to reproduce the problem under Linux
    Dell Latitude D630 laptop (5 years old)
    32bits architecture with 32bits/686 linux distribution Semplice (Debian Sid)

    But with a more recent Desktop Computer (HP something)
    64bits architecture with 64 bits linux distribution Siduction (Debian Sid)
    I do not have the problem.

    Regards
    O.G.

     
  • Anonymous

    Anonymous - 2012-09-13

    I have some bad news: the new version of the file does not change anything for the problem with my setup:

    Windows 7 Professionnel - Service Pack 1
    Intel(R) - Core(TM)2 Quad CPU Q9550 2.83 GHz
    Système d'exploitation 64bits

    MikTeX 2.9 (updated)
    pdflatex -version : MiKTeX-pdfTeX 2.9.4535 (1.40.13) (MiKTeX 2.9)

     
  • John Bowman

    John Bowman - 2012-09-13

    Since it is a numerical resolution issue, the problem may appear on some architectures and not on others.
    Regarding the fix not working, probably asy is still accessing the old version of plain_arrows.asy. Can you please post the output and generated eps produced by

    asy -vv  file.asy

    where file contains the code.

     
  • Anonymous

    Anonymous - 2012-09-13

    I'm sorry for the false announcement: I asked to overwrite the old file … and I do not know what happened, but the replacement had not been executed. This time, it's done and it works.
    Thank you again.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.