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


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

Re: Plot histogram like diagram with time series data on x axis

From Ethan Merritt <eamerritt@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Plot histogram like diagram with time series data on x axis
Date 2018-08-13 04:39 +0000
Organization A noiseless patient Spider
Message-ID <pkr21h$677$1@dont-email.me> (permalink)
References <0e95caaf-161b-44bf-a6b9-3a840778bf9b@googlegroups.com>

Show all headers | View raw


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

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


Thread

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

csiph-web