Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to plot an empty Plot?

1,044 views
Skip to first unread message

Christian Hesse

unread,
Nov 20, 2009, 8:49:42 AM11/20/09
to
Hi folks,

i have a data-file like this:

datafile----
date time y1 y2 y3
22.02.2007 15:51:58 20.72 19.36 21.08 20.69 22.37 20 31.8 32.1 954.7
22.02.2007 15:52:02 20.71 19.36 21.08 20.69 22.36 20 31.8 32.1 954.7
22.02.2007 15:52:06 20.71 19.36 21.08 20.69 22.36 20 31.8 32.1 954.7
----/datafile

i now want to plot a graph with date/time as x-axis and one of the other
y-rows. It works so far so good if i set xrange to a date/time which is
included in the data-file. If i try to set a time, which isn't included i
don't get an empty graph as suggested i get only the message that a y-value
is needed in this timespan.
Can i somehow plot an empty graph with gnuplot where only the time-line as
x-axis is included?

Thanks for help, Christian


Zoltan

unread,
Nov 21, 2009, 6:48:47 AM11/21/09
to
> i now want to plot a graph with date/time as x-axis and one of the other
> y-rows. It works so far so good if i set xrange to a date/time which is
> included in the data-file. If i try to set a time, which isn't included i
> don't get an empty graph as suggested i get only the message that a y-value
> is needed in this timespan.
> Can i somehow plot an empty graph with gnuplot where only the time-line as
> x-axis is included?

I am not sure of whether I have understood your question, but I think
you have to set both the x and y range, if you just want to have an
empty plot. This, e.g., would do that
set xrange [0:1]
set yrange [0:1]
plot 1/0

If you don't force a yrange, gnuplot tries to be smart, and not do the
work:)
Cheers,
Zoltán

Christian Hesse

unread,
Nov 21, 2009, 7:31:05 AM11/21/09
to
>I am not sure of whether I have understood your question, but I think
>you have to set both the x and y range, if you just want to have an
>empty plot. This, e.g., would do that
>set xrange [0:1]
>set yrange [0:1]
>plot 1/0
>
>If you don't force a yrange, gnuplot tries to be smart, and not do the
>work:)
>Cheers,
>Zolt�n

I'll try this, thanks :)

Cya, Chrisitan


0 new messages