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


Groups > comp.graphics.apps.gnuplot > #4031 > unrolled thread

Plot histogram like diagram with time series data on x axis

Started byjoerg.kastning@gmail.com
First post2018-08-12 05:18 -0700
Last post2018-08-13 04:39 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Plot histogram like diagram with time series data on x axis joerg.kastning@gmail.com - 2018-08-12 05:18 -0700
    Re: Plot histogram like diagram with time series data on x axis Ethan Merritt <eamerritt@gmail.com> - 2018-08-13 04:39 +0000

#4031 — Plot histogram like diagram with time series data on x axis

Fromjoerg.kastning@gmail.com
Date2018-08-12 05:18 -0700
SubjectPlot histogram like diagram with time series data on x axis
Message-ID<0e95caaf-161b-44bf-a6b9-3a840778bf9b@googlegroups.com>
Hello @all,

I'm still a gnuplot beginner and could use some help plotting my data in a histogram like chart.

Here is my datafile sample:

~~~
#date,0-6,6-12,12-18,18-24
2018-07-17,2,4,6,4
2018-07-18,1,5,5,2
2018-07-19,0,8,4,3
~~~

The first column contains the date of a specific day, followed by a number of events per timeframe.

I would like to plot these data in a histogram like chart with bars containing the boxes for the different values of a row per day. I looked up the documentation for histograms but I don't understand it. :-(

Could someone give me an example how to plot the data as described above? If you do not understand what I'm trying to accomplish, please ask. I'll try to make it clear.

Best regards,
Joerg

[toc] | [next] | [standalone]


#4032

FromEthan Merritt <eamerritt@gmail.com>
Date2018-08-13 04:39 +0000
Message-ID<pkr21h$677$1@dont-email.me>
In reply to#4031
On Sun, 12 Aug 2018 05:18:56 -0700, joerg.kastning wrote:

> Hello @all,
> 
> I'm still a gnuplot beginner and could use some help plotting my data in a histogram like chart.
> 
> Here is my datafile sample:
> 
> ~~~
> #date,0-6,6-12,12-18,18-24
> 2018-07-17,2,4,6,4
> 2018-07-18,1,5,5,2
> 2018-07-19,0,8,4,3
> ~~~
> 
> The first column contains the date of a specific day, followed by a number of events per timeframe.
> 
> I would like to plot these data in a histogram like chart with bars containing the boxes for the different values of a row per day. I looked up the documentation for histograms but I don't understand it. :-(
> 
> Could someone give me an example how to plot the data as described above? If you do not understand what I'm trying to accomplish, please ask. I'll try to make it clear.
> Best regards,
> Joerg


set style data histogram
set style histogram rowstacked
set style fill solid border linecolor "black"
set datafile separator ","
unset key

plot for [column=2:5] 'foo.dat' using column:xticlabel(1)


	Ethan

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web