Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3171 > unrolled thread
| Started by | Janis Papanagnou <janis_papanagnou@hotmail.com> |
|---|---|
| First post | 2016-01-26 15:16 +0100 |
| Last post | 2018-02-05 16:34 -0800 |
| Articles | 7 — 5 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
Histogram sample data on gnuplot.sourceforge.net Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-01-26 15:16 +0100
Re: Histogram sample data on gnuplot.sourceforge.net Karl Ratzsch <mail.kfr@gmx.net> - 2016-01-26 15:31 +0100
Re: Histogram sample data on gnuplot.sourceforge.net Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-01-26 16:17 +0100
Re: Histogram sample data on gnuplot.sourceforge.net Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-01-26 17:35 +0100
Re: Histogram sample data on gnuplot.sourceforge.net Jörg Buchholz <bookwood4new@freenet.de> - 2016-01-27 08:57 +0100
Re: Histogram sample data on gnuplot.sourceforge.net sfeam <sfeam@users.sourceforge.net> - 2016-01-26 22:31 -0800
Re: Histogram sample data on gnuplot.sourceforge.net renato.frca@gmail.com - 2018-02-05 16:34 -0800
| From | Janis Papanagnou <janis_papanagnou@hotmail.com> |
|---|---|
| Date | 2016-01-26 15:16 +0100 |
| Subject | Histogram sample data on gnuplot.sourceforge.net |
| Message-ID | <n87v37$10db$1@gioia.aioe.org> |
I'm looking for specific histogram samples, gnuplot code with sample data. On http://gnuplot.sourceforge.net/demo/histograms.html there's the graphic plots and the code, but the used data to create the plots (immigration.dat) seems to be missing. Does someone maybe has a link to that specific data file, or knows from which (hopefully public) source it comes from? Thanks! Janis
[toc] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2016-01-26 15:31 +0100 |
| Message-ID | <n87vvm$duf$1@solani.org> |
| In reply to | #3171 |
Am 26.01.2016 um 15:16 schrieb Janis Papanagnou: > I'm looking for specific histogram samples, gnuplot code with sample data. > On http://gnuplot.sourceforge.net/demo/histograms.html there's the graphic > plots and the code, but the used data to create the plots (immigration.dat) > seems to be missing. Does someone maybe has a link to that specific data > file, or knows from which (hopefully public) source it comes from? Thanks! > > Janis > It's in your gnuplot installation, demo/immigration.dat Where it is from I have no idea. Karl
[toc] | [prev] | [next] | [standalone]
| From | Janis Papanagnou <janis_papanagnou@hotmail.com> |
|---|---|
| Date | 2016-01-26 16:17 +0100 |
| Message-ID | <n882lb$18bk$1@gioia.aioe.org> |
| In reply to | #3172 |
On 26.01.2016 15:31, Karl Ratzsch wrote:
> Am 26.01.2016 um 15:16 schrieb Janis Papanagnou:
>> I'm looking for specific histogram samples, gnuplot code with sample data.
>> On http://gnuplot.sourceforge.net/demo/histograms.html there's the graphic
>> plots and the code, but the used data to create the plots (immigration.dat)
>> seems to be missing. Does someone maybe has a link to that specific data
>> file, or knows from which (hopefully public) source it comes from? Thanks!
>
> It's in your gnuplot installation, demo/immigration.dat
Ah, great. Got it. Thanks!
Now that I see that specific data let me add a question...
That file contains comment lines, a data heading line, and the data (numbers).
Some data positions have no numbers but a dash character ('-') instead; I'd
assume that it's interpreted as 0 (zero). Will gnuplot only in such numeric
contexts, or generally interpret that dash as 0 (zero)? In other words; if I
have data like 5 6 7 - 8 , will that always be interpreted as 5 6 7 0 8 or
might the '-' be skipped in some cases to become 5 6 7 8 ? (I suppose it's
not skipped but want to be sure.) I also suppose that a '-' in the header
line, say "Austria Hungary - Belgium ..." will be taken literally as '-';
right?
Janis
[toc] | [prev] | [next] | [standalone]
| From | Janis Papanagnou <janis_papanagnou@hotmail.com> |
|---|---|
| Date | 2016-01-26 17:35 +0100 |
| Message-ID | <n8878j$1i2p$1@gioia.aioe.org> |
| In reply to | #3173 |
On 26.01.2016 16:17, Janis Papanagnou wrote:
> [ http://gnuplot.sourceforge.net/demo/histograms.html ]
> Now that I see that specific data let me add a question...
> That file contains comment lines, a data heading line, and the data (numbers).
> Some data positions have no numbers but a dash character ('-') instead; I'd
> assume that it's interpreted as 0 (zero). Will gnuplot only in such numeric
> contexts, or generally interpret that dash as 0 (zero)? In other words; if I
> have data like 5 6 7 - 8 , will that always be interpreted as 5 6 7 0 8 or
> might the '-' be skipped in some cases to become 5 6 7 8 ? (I suppose it's
> not skipped but want to be sure.) I also suppose that a '-' in the header
> line, say "Austria Hungary - Belgium ..." will be taken literally as '-';
> right?
The samples on the web-page haven't shown that piece of code, but the linked
sources did. To answer my question; it's obviously controlled by the command:
set datafile missing '-'
Janis
[toc] | [prev] | [next] | [standalone]
| From | Jörg Buchholz <bookwood4new@freenet.de> |
|---|---|
| Date | 2016-01-27 08:57 +0100 |
| Message-ID | <n89t97$8dl$1@newsserver.rrzn.uni-hannover.de> |
| In reply to | #3174 |
On 26.01.2016 17:35, Janis Papanagnou wrote:
> On 26.01.2016 16:17, Janis Papanagnou wrote:
>> [ http://gnuplot.sourceforge.net/demo/histograms.html ]
>> Now that I see that specific data let me add a question...
>> That file contains comment lines, a data heading line, and the data (numbers).
>> Some data positions have no numbers but a dash character ('-') instead; I'd
>> assume that it's interpreted as 0 (zero). Will gnuplot only in such numeric
>> contexts, or generally interpret that dash as 0 (zero)? In other words; if I
>> have data like 5 6 7 - 8 , will that always be interpreted as 5 6 7 0 8 or
>> might the '-' be skipped in some cases to become 5 6 7 8 ? (I suppose it's
>> not skipped but want to be sure.) I also suppose that a '-' in the header
>> line, say "Austria Hungary - Belgium ..." will be taken literally as '-';
>> right?
>
> The samples on the web-page haven't shown that piece of code, but the linked
> sources did. To answer my question; it's obviously controlled by the command:
>
> set datafile missing '-'
Without "set datafile missing" I found 4 different ways Gnuplot will
handle this data.
plot '-' u 1:3 w lp
0 1 2 3
1 2 3 4
2 3 XYZ 5
3 4 5 6
4 5 6 7
e
XYZ or any other character (Not a Number) will be handled as missing
data, the line on column 3 is drawing from 3 to 5.
plot '-' u 1:3 w lp
0 1 2 3
1 2 3 4
2 3 NaN 5
3 4 5 6
4 5 6 7
e
"NaN" causes a gap in the line.
plot '-' u 1:3 w lp
0 1 2 3
1 2 3 4
2 3 1/0 5
3 4 5 6
4 5 6 7
e
column 3 is 2 3 0 5 6
plot '-' u 1:3 w lp
0 1 2 3
1 2 3 4
2 3 5
3 4 5 6
4 5 6 7
e
With a blank the value from column 4 is in column 3. 2 3 5 5 6
Only "1/0" or "0" will set the value to zero. With and without "set
datafile missing"
Version 5.0 patchlevel 1 win
set datafile missing "-"
plot '-' u 1:3 w lp
0 1 2 3
1 2 3 4
2 3 - 5
3 4 5 6
4 5 6 7
e
Gives the same than the first example, the line on column 3 is drawing
from 3 to 5. The "-" is not setting to zero.
Jörg
[toc] | [prev] | [next] | [standalone]
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Date | 2016-01-26 22:31 -0800 |
| Message-ID | <n89o2s$sk5$1@dont-email.me> |
| In reply to | #3172 |
Karl Ratzsch wrote: > Am 26.01.2016 um 15:16 schrieb Janis Papanagnou: >> I'm looking for specific histogram samples, gnuplot code with sample >> data. On http://gnuplot.sourceforge.net/demo/histograms.html there's >> the graphic plots and the code, but the used data to create the plots >> (immigration.dat) seems to be missing. Does someone maybe has a link >> to that specific data file, or knows from which (hopefully public) >> source it comes from? Thanks! >> >> Janis >> > > It's in your gnuplot installation, demo/immigration.dat > > Where it is from I have no idea. Historical data from the US Census Bureau I don't have a URL for that exact file, but similar data is at https://www.census.gov/population/www/documentation/twps0029/tab04.html Ethan > > Karl
[toc] | [prev] | [next] | [standalone]
| From | renato.frca@gmail.com |
|---|---|
| Date | 2018-02-05 16:34 -0800 |
| Message-ID | <e802f0e7-a061-49f5-8313-44204967e986@googlegroups.com> |
| In reply to | #3171 |
Em terça-feira, 26 de janeiro de 2016 11:16:14 UTC-3, Janis Papanagnou escreveu: > I'm looking for specific histogram samples, gnuplot code with sample data. > On http://gnuplot.sourceforge.net/demo/histograms.html there's the graphic > plots and the code, but the used data to create the plots (immigration.dat) > seems to be missing. Does someone maybe has a link to that specific data > file, or knows from which (hopefully public) source it comes from? Thanks! > > Janis See this: https://www.apt-browse.org/browse/debian/wheezy/main/all/gnuplot-doc/4.6.0-8/file/usr/share/doc/gnuplot-doc/examples/immigration.dat
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web