Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2703 plotting option legend causes an error

None
closed
Yasuaki Honda
5
2014-03-22
2014-03-15
Yasuaki Honda
No

plot3d(Bxt(x,r),[x,0,L],[r,0,R],[legend,"Axial field"]); causes an error related to legend.

Discussion

  • Yasuaki Honda
    Yasuaki Honda
    2014-03-22

    • status: open --> closed
    • assigned_to: Yasuaki Honda
     
  • Yasuaki Honda
    Yasuaki Honda
    2014-03-22

    There is a bug in gnuplot_def.lisp which causes this error.
    The code is to detect if [legend,false] is set or not, and if set,
    unset is output as gnuplot command.
    If [legend,"something"] is set, (getf plot-option :legend) returns
    "something" instead of ("something"). But the code assumes the
    return value is always a list, and #'first is used to the return
    value, causing this error.
    The fix is to check if the return value is null, which happens
    only when [legend,false] is set.

    The fix is already committed as [3d73ea].

     

    Related

    Commit: [3d73ea]