Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1527 > unrolled thread
| Started by | Erik Zweigle <erikzweigle@gmail.com> |
|---|---|
| First post | 2012-12-06 22:51 -0800 |
| Last post | 2012-12-07 12:52 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
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
| From | Erik Zweigle <erikzweigle@gmail.com> |
|---|---|
| Date | 2012-12-06 22:51 -0800 |
| Subject | Trying to plot temperature & humidity |
| Message-ID | <3dae2403-f9f2-42cf-beb0-68d8fb2baffe@googlegroups.com> |
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?
[toc] | [next] | [standalone]
| From | Erik Zweigle <erikzweigle@gmail.com> |
|---|---|
| Date | 2012-12-07 00:01 -0800 |
| Message-ID | <b060e8b9-b2dc-4237-8eb3-995111b6471c@googlegroups.com> |
| In reply to | #1527 |
The command below outputs the data in a format I expect but the axes are all wrong. plot for [i=3:5] "chamber.csv" using i w l
[toc] | [prev] | [next] | [standalone]
| From | Karl <mail.kfr@gmx.net> |
|---|---|
| Date | 2012-12-07 12:52 +0100 |
| Message-ID | <k9sleo$e9f$1@news.rz.uni-karlsruhe.de> |
| In reply to | #1527 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web