Menu ▾ ▴

#598 Documentation to exisiting feature: Inline data accessible via []

None
closed-fixed
nobody
None
5
2026-10-25
2026-09-03
No

Hey,

I just figured out that inline data rows are accessible via [ ] (in gnuplot v6.0.5), for both data defined within a script using "$data << EOD", as well as using "set table $data" (and columns can be accessed via word($data[i],j)).
While being potentially very useful, I did not find any information about this in the documentation and I suggest to add it in the entries "inline data and datablocks" and "table".
Thanks!

Discussion

  • Ethan Merritt

    Ethan Merritt - 2026-09-03

    Good catch. The documentation for 6.1 includes the text:

    A data block acts like an array of strings. Any single line can be accessed
    or replaced. For example to replace the first line of an existing data block
    with a comment
    $Mydata[1] = "# Last plotted " . time("%d-%m-%Y %H:%M:%S")

    but I guess that bit of text did not get taken back into the docs for 6.0

     
  • Ethan Merritt

    Ethan Merritt - 2026-10-25
    • status: open --> closed-fixed
    • Group: -->
     

Log in to post a comment.