Menu

#2793 Example in "Complex values" section doesn't work as presented in text

None
pending-fixed
nobody
None
2025-11-05
2025-05-01
Anonymous
No

Page http://gnuplot.info/docs_6.0/loc1215.html contains following code example

     set palette model HSV start 0.3 defined (0 0 1 1, 1 1 1 1)
     set cbrange [-pi:pi]
     set cbtics ("-π" -pi, "π" pi)
     set pm3d corners2color c1
     E0(z) = exp(-z)/z
     I = {0,1}
     splot '++' using 1:2:(abs(E0(x+I*y))):(arg(E0(x+I*y))) with pm3d

that must result in that graph, but with default labels
Intended figure, however actual graph looks way different (see attachment)

Version: 6.0 patchlevel 0
OS: Ubuntu 24.04
Terminal type: qt

Thank you,

1 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2025-11-05
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2025-11-05

    The example text in the manual is not intended to reproduce the full state of the program at the point the illustration was generated; the idea is usually to show the commands directly relevant to the point being made in the text it accompanies. But sure, for this one we can add two additional lines that reproduce the sampling and layout shown.

     

Log in to post a comment.