Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1530

Re: Trying to plot temperature & humidity

From Karl <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Trying to plot temperature & humidity
Date 2012-12-07 12:52 +0100
Organization University of Karlsruhe, Germany
Message-ID <k9sleo$e9f$1@news.rz.uni-karlsruhe.de> (permalink)
References <3dae2403-f9f2-42cf-beb0-68d8fb2baffe@googlegroups.com>

Show all headers | View raw


Am 07.12.2012 07:51, schrieb Erik Zweigle:
> Hello,
> 
> I am trying to plot temperature and humidity on the same graph using multiple axes.  My data is formatted as so:
> 
> Date	Time	Temp °C	Relative humidity
> 2012/12/01	12:42:00	64.5	90
> 2012/12/01	12:43:00	64.7	91
> 2012/12/01	12:44:00	64.6	92
> 
> My commands are below.  But all I get are vertically stacked points.
> 
> set datafile separator ','
> set timefmt "%Y/%m/%d %H:%M:%S"
> set format x "%T"
> set xdata time
> set ytics nomirror
> set y2tics
> set ylabel "Temperature (Celsius)"
> set y2label "Relative Humidity (%)"
> set key autotitle columnhead
> plot ["2012/12/01":] "chamber.csv" u 1:3 t "Temperature" axes x1y1 w p,"chamber.csv" u 1:4 axes x1y2 t "Humidity" w p
> 
> Any hints?
> 

You´ve omitted the \t between date and time in your timefmt string.
And why the datafile separator "," ?


  Karl

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

Trying to plot temperature & humidity Erik Zweigle <erikzweigle@gmail.com> - 2012-12-06 22:51 -0800
  Re: Trying to plot temperature & humidity Erik Zweigle <erikzweigle@gmail.com> - 2012-12-07 00:01 -0800
  Re: Trying to plot temperature & humidity Karl <mail.kfr@gmx.net> - 2012-12-07 12:52 +0100

csiph-web