#2703 plotting option legend causes an error

None
closed
5
2014-03-22
2014-03-15
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]


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks