Menu

#291 Using a single data file is not clear (possible manual issue)

None
closed
nobody
5.4.5 (1)
5
2 days ago
2023-11-21
Anonymous
No

Maybe I'm overlooking something, but it does not seem to be clear how to use, if possible, one large file to create many graphs. Including the data, that is. A single plot file with different settings per graph works, but that requires a data file per graps (plot "datafileXXX.pNG"...". It's not always clear if that's possible, nor is it always clear if and how any setting can be overwritten/modified for a next graph (in some loop).

Discussion

  • Ethan Merritt

    Ethan Merritt - 2023-11-21

    I do not understand the question. plot "datafile.png" would never be a correct command, since the plot command wants the name of an input file but the png file is presumeably an output file.

    Are you looking for something like this?

    set term pngcairo
    do for [i=1:N] {
        outfile = sprintf("graph_%03d.png",i)
        set output outfile
        ... change some settings based on i ...
        plot DATAFILE
    }
    
     
  • Ethan Merritt

    Ethan Merritt - 2023-12-07

    Ticket moved from /p/gnuplot/bugs/2668/

    Can't be converted:

    • _milestone:
    • _priority:
     
  • Ethan Merritt

    Ethan Merritt - 2 days ago
    • status: open --> closed
    • Group: -->
    • Priority: --> 5
     

Log in to post a comment.