Menu

#1592 legend does not work

closed
5
2022-03-07
2009-02-16
No

Here's a simple example:
plot3d(x+y,[x,-3,3],[y,-4,4],[legend,"Line"]);
I get "y+x ___________" instead of "Line" for a title/legend?
I cannot get the title to use legend? If I have an expression name instead of a function, I get the generic title of "Function _________". At least [legend, false] works, but I'd like to put titles in my graphs.

Thanks.

Lester

Discussion

  • Lester Ingber

    Lester Ingber - 2009-02-16

    P.S. I'm using Maxima under Cygwin on a Thinkpad with XP Pro. This seems to be a gnuplot option. I could not get legend to work with other gnuplot options which do work fine. E.g.:

    plot__smni_Lag:if abs(smni_Lag) > 1.0 then 0 else smni_Lag$
    plot3d(plot__smni_Lag,[ze,-80,80],[zi,-30,30],[gnuplot_term, ps],[gnuplot_out_file,"c:/cygwin/home/ingber/smni_Lag.ps"],[xlabel, "M_E"],[ylabel,"M_I"],[zlabel,"L"],[legend,"smni_Lag"],['grid,40,15])$

    Lester

     
  • Robert Dodier

    Robert Dodier - 2009-02-25
    • labels: 460523 --> Lisp Core - Plotting
    • assigned_to: nobody --> villate
     
  • Robert Dodier

    Robert Dodier - 2009-02-25

    Appears that legend works OK for plot2d but not for plot3d. I'm assigning this report to the person who was last working on the plot options.

     
  • Jaime E. Villate

    The problem is that legend was implemented only for plot2d and not for plot3d. I'll try to make it work in plot3d before the next release or if I can't I will then make a note in the documentation to alert to that fact. Thank you for your report.

     
  • Jaime E. Villate

    The reported bug is not present in the current cvs version of
    Maxima.

    Thank you for your report. If you see this bug in a later version
    of Maxima, please submit a new bug report.

     
  • Jaime E. Villate

    • status: open --> closed
     
  • Jaime E. Villate

    option "legend" now works in plot3d.

     
  • Robert Dodier

    Robert Dodier - 2022-03-07
    • Labels: Lisp Core - Plotting --> Lisp Core - Plotting, plotting
     

Log in to post a comment.

MongoDB Logo MongoDB