Skip to content

How to use time data as input? #10

Description

@MaxGyver83

How can I tell eplot that my first column contains timestamps?

I have tried this:

echo '2022-12-15T12:18:26 104.8
2022-12-16T12:36:16 81.36
2022-12-17T14:06:25 79.875' | eplot -d -x 'xdata time; timefmt "%Y-%m-%dT%H:%M:%S"'

and

echo '2022-12-15T12:18:26 104.8
2022-12-16T12:36:16 81.36
2022-12-17T14:06:25 79.875' | eplot -d -x 'xdata time' -x 'timefmt "%Y-%m-%dT%H:%M:%S"'

(and without -x).

But it's still wrong.

(Sorry if my approach is completely wrong. I don't have experience with gnuplot. I just found eplot and thought it would be great if it's really that easy!)

This is the corresponding gnuplot script:

set terminal dumb
set xdata time
set timefmt "%Y-%m-%dT%H:%M:%S"
set grid
plot 'data.txt' using 1:2 with lines

EDIT: Simplify tested eplot commands. Add working gnuplot script.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions