You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(2) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(22) |
May
(52) |
Jun
(43) |
Jul
(36) |
Aug
(59) |
Sep
(37) |
Oct
(55) |
Nov
(39) |
Dec
(36) |
| 2005 |
Jan
(64) |
Feb
(40) |
Mar
(62) |
Apr
(58) |
May
(256) |
Jun
(77) |
Jul
(80) |
Aug
(39) |
Sep
(56) |
Oct
(36) |
Nov
(113) |
Dec
(68) |
| 2006 |
Jan
(43) |
Feb
(64) |
Mar
(69) |
Apr
(60) |
May
(71) |
Jun
(53) |
Jul
(63) |
Aug
(63) |
Sep
(76) |
Oct
(85) |
Nov
(82) |
Dec
(73) |
| 2007 |
Jan
(75) |
Feb
(82) |
Mar
(84) |
Apr
(104) |
May
(67) |
Jun
(101) |
Jul
(107) |
Aug
(138) |
Sep
(128) |
Oct
(106) |
Nov
(112) |
Dec
(112) |
| 2008 |
Jan
(94) |
Feb
(87) |
Mar
(146) |
Apr
(169) |
May
(75) |
Jun
(26) |
Jul
(26) |
Aug
(7) |
Sep
(18) |
Oct
(53) |
Nov
(42) |
Dec
(19) |
| 2009 |
Jan
(43) |
Feb
(39) |
Mar
(18) |
Apr
(45) |
May
(66) |
Jun
(87) |
Jul
(56) |
Aug
(41) |
Sep
(56) |
Oct
(139) |
Nov
(98) |
Dec
(88) |
| 2010 |
Jan
(81) |
Feb
(79) |
Mar
(83) |
Apr
(97) |
May
(124) |
Jun
(84) |
Jul
(53) |
Aug
(85) |
Sep
(89) |
Oct
(50) |
Nov
(98) |
Dec
(78) |
| 2011 |
Jan
(97) |
Feb
(74) |
Mar
(68) |
Apr
(54) |
May
(63) |
Jun
(59) |
Jul
(65) |
Aug
(58) |
Sep
(37) |
Oct
(40) |
Nov
(59) |
Dec
(35) |
| 2012 |
Jan
(16) |
Feb
(56) |
Mar
(63) |
Apr
(25) |
May
(48) |
Jun
(58) |
Jul
(20) |
Aug
(13) |
Sep
(43) |
Oct
(35) |
Nov
(20) |
Dec
(17) |
| 2013 |
Jan
(22) |
Feb
(11) |
Mar
(51) |
Apr
(34) |
May
(57) |
Jun
(27) |
Jul
(70) |
Aug
(30) |
Sep
(38) |
Oct
(53) |
Nov
(40) |
Dec
(25) |
| 2014 |
Jan
(26) |
Feb
(35) |
Mar
(60) |
Apr
(12) |
May
(17) |
Jun
(15) |
Jul
(9) |
Aug
(18) |
Sep
(46) |
Oct
(18) |
Nov
(19) |
Dec
(15) |
| 2015 |
Jan
(17) |
Feb
(28) |
Mar
(21) |
Apr
(54) |
May
(36) |
Jun
(8) |
Jul
(30) |
Aug
(13) |
Sep
(3) |
Oct
(28) |
Nov
(3) |
Dec
(3) |
| 2016 |
Jan
(11) |
Feb
(9) |
Mar
(29) |
Apr
(10) |
May
(8) |
Jun
(5) |
Jul
(50) |
Aug
(57) |
Sep
(13) |
Oct
(5) |
Nov
(17) |
Dec
(11) |
| 2017 |
Jan
(3) |
Feb
(23) |
Mar
(16) |
Apr
(7) |
May
(15) |
Jun
(12) |
Jul
(48) |
Aug
(15) |
Sep
(3) |
Oct
(20) |
Nov
(28) |
Dec
(21) |
| 2018 |
Jan
(13) |
Feb
(21) |
Mar
(21) |
Apr
(7) |
May
(3) |
Jun
(7) |
Jul
(27) |
Aug
(38) |
Sep
(4) |
Oct
(30) |
Nov
(22) |
Dec
|
| 2019 |
Jan
(5) |
Feb
(16) |
Mar
(1) |
Apr
(9) |
May
(7) |
Jun
(20) |
Jul
(13) |
Aug
(3) |
Sep
(2) |
Oct
(2) |
Nov
(2) |
Dec
(4) |
| 2020 |
Jan
(6) |
Feb
(11) |
Mar
(1) |
Apr
(18) |
May
(4) |
Jun
(5) |
Jul
(12) |
Aug
(1) |
Sep
(3) |
Oct
(7) |
Nov
(1) |
Dec
(17) |
| 2021 |
Jan
(1) |
Feb
(11) |
Mar
(16) |
Apr
(6) |
May
(5) |
Jun
(1) |
Jul
(1) |
Aug
(2) |
Sep
(8) |
Oct
(10) |
Nov
(4) |
Dec
(4) |
| 2022 |
Jan
(9) |
Feb
(35) |
Mar
(4) |
Apr
|
May
(3) |
Jun
(49) |
Jul
(11) |
Aug
|
Sep
(5) |
Oct
(2) |
Nov
(16) |
Dec
(13) |
| 2023 |
Jan
|
Feb
(8) |
Mar
(3) |
Apr
|
May
(8) |
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
| 2024 |
Jan
(6) |
Feb
(9) |
Mar
|
Apr
(26) |
May
(24) |
Jun
|
Jul
(4) |
Aug
(2) |
Sep
(1) |
Oct
(10) |
Nov
(9) |
Dec
|
| 2025 |
Jan
|
Feb
(22) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
|
From: Vahid A. <vh2...@da...> - 2021-05-30 22:03:52
|
Dear Gnuplot Community,
The following script combines 4 subplots into one single plot with no spacing between subplots. The y-axis is log scale.
set term pdf size 4,3 enhanced font 'Times New Roman,16’
# Physical constants and conversion factors
PI = 3.14159
h_bar = 6.582119e-16
c = 2.9987e8
rad_ps_to_meV = 1E12*h_bar*1000
inv_cm_to_meV = 100*2*PI*c*h_bar*1000
set output "./scatter-rate/comparison.pdf"
set ylabel "Three-phonon scattering rate [ps^{-1}]"
set xlabel "Phonon energy [meV]"
set logscale y
set multiplot
PS = 0.1
MBOT = 0.15
MTOP = 0.98
MLEFT = 0.15
MRIGHT = 0.95
MMIDY = (MBOT + MTOP) / 2
MMIDX = (MLEFT + MRIGHT) / 2
unset key
set yrange [1e-3:10]
# top left subplot
unset ylabel
set format y '10^{%T}'
unset xlabel
set format x ‘ '
set lmargin at screen MLEFT
set rmargin at screen MMIDX
set tmargin at screen MTOP
set bmargin at screen MMIDY
set xrange [0:100]
plot "./data/1.00/collected-data.dat" u ($4*rad_ps_to_meV):9 w p ps PS pt 7 lc ‘black’
#top right subplot
set format y ‘ '
set lmargin at screen MMIDX
set rmargin at screen MRIGHT
plot "./data/1.05/collected-data.dat" u ($4*rad_ps_to_meV):9 w p ps PS pt 7 lc ‘black'
#bottom left subplot
unset ylabel
set format y '10^{%T}'
set format x '%g'
set xtics 0,20,80
set lmargin at screen MLEFT
set rmargin at screen MMIDX
set tmargin at screen MMIDY
set bmargin at screen MBOT
plot "./data/1.10/collected-data.dat" u ($4*rad_ps_to_meV):9 w p ps PS pt 7 lc ‘black’
#bottom right subplot
set xtics 20
set format y ‘ '
set rmargin at screen MRIGHT
set lmargin at screen MMIDX
plot "./data/graphene/collected-data.dat" u ($4*rad_ps_to_meV):9 w p ps PS pt 7 lc ‘black'
Here, the y-axis major tick label 10^1 from the bottom left subplot overlaps with the 10^-3 label from the top left subplot.
I would like to avoid printing the 10^1 label on the y-axis of the bottom left subplot. So I used the following for the bottom left y-axis:
set yrange [1e-3:10]
set ytics 1e-3, 1e-1, 1
set mytics 10
However now I am missing the 10 minor ticks between 1 and 10 in the bottom subplots. Below 1, all minor ticks are there. Is there a way to preserve the minor ticks between 1 and 10 in the above example?
Thank you,
Vahid |
|
From: Michael S. <Mic...@bo...> - 2021-04-25 10:55:21
|
Is there any reason the native SVG terminal type does not work for you? It
creates interactive plots.
michael@jenkins:~$ gnuplot
G N U P L O T
Version 5.2 patchlevel 6 last modified 2019-01-01
Copyright (C) 1986-1993, 1998, 2004, 2007-2018
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type is now 'unknown'
gnuplot> help set term svg
This terminal produces files in the W3C Scalable Vector Graphics format.
Syntax:
set terminal svg {size <x>,<y> {|fixed|dynamic}}
{mouse} {standalone | jsdir <dirname>}
{name <plotname>}
{font "<fontname>{,<fontsize>}"} {{no}enhanced}
{fontscale <multiplier>}
{rounded|butt|square} {solid|dashed} {linewidth
<lw>}
{background <rgb_color>}
where <x> and <y> are the size of the SVG plot to generate,
`dynamic` allows a svg-viewer to resize plot, whereas the default
setting, `fixed`, will request an absolute size.
`linewidth <w>` increases the width of all lines used in the figure
by a factor of <w>.
<font> is the name of the default font to use (default Arial) and
<fontsize> is the font size (in points, default 12). SVG viewing
programs may substitute other fonts when the file is displayed.
The enhanced text mode syntax is shared with other gnuplot terminal types.
See `enhanced` for more details.
The `mouse` option tells gnuplot to add support for mouse tracking and for
toggling individual plots on/off by clicking on the corresponding key
entry.
By default this is done by including a link that points to a script in a
local directory, usually /usr/local/share/gnuplot/<version>/js.
You can change this by using the `jsdir` option to specify either a
different local directory or a general URL. The latter is usually
appropriate if you are embedding the svg into a web page.
Alternatively, the `standalone` option embeds the mousing code in the svg
document itself rather than linking to an external resource.
When an SVG file will be used in conjunction with external files,
e.g. if it is referenced by javascript code in a web page or parent
document,
then a unique name is required to avoid potential conflicting references
to other SVG plots. Use the `name` option to ensure uniqueness.
On Thu, Apr 22, 2021 at 4:21 PM Jeff Nova via gnuplot-info <
gnu...@li...> wrote:
> We have a bash script that uses gnuplot via its CLI to output simple
> histograms in GIF format. We would like to change that output in SVG or
> HTML5 format, so there is mouse interactivity. We're hoping to just hire
> someone to knock this out for us! But if no one is interested, any
> guidance would be appreciated.
>
> Here's an example of the code:
>
> /usr/local/bin/gnuplot << EOF
> # set terminal size and background color and medium font size
> set terminal gif medium size $width,$height background rgb "$bgcolor"
> unset key
> unset tics
> unset border
> set bmargin 0
> set lmargin 0
> set rmargin 0
> set tmargin 0
> set output "${outdir}/${inname}_histogram_${colormode}.gif"
> set xrange [0:255]
> set yrange [0:$ymax]
> plot "tmpT.txt" using 1:2 with filledcurves below x1 linecolor
> "$linecolor"
> # EOF must not have any white space before it or does not work
> EOF
>
>
> --
> Jeff NovaChief Executive Officer
> Colorhythmhttps://colorhythm.com
> jn...@co...
> Main: +1 415-399-9921Direct: +1 415-399-9921 x407Mobile: +1
> 510-710-9590Fax: +1 415-399-9928
> Pronouns: he / his
> This electronic mail and the documents accompanying it are considered
> trade secret, confidential and/or proprietary by Colorhythm LLC. This
> information is intended for use by the individual or entity to whom this
> e-mail is addressed. If you are not the intended recipient, be aware that
> any disclosure, copying, distribution or use of the contents of this
> information is prohibited.
>
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via:
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|
|
From: Jeff N. <jn...@co...> - 2021-04-22 23:21:38
|
We have a bash script that uses gnuplot via its CLI to output simple histograms in GIF format. We would like to change that output in SVG or HTML5 format, so there is mouse interactivity. We're hoping to just hire someone to knock this out for us! But if no one is interested, any guidance would be appreciated.
Here's an example of the code:
/usr/local/bin/gnuplot << EOF
# set terminal size and background color and medium font size
set terminal gif medium size $width,$height background rgb "$bgcolor"
unset key
unset tics
unset border
set bmargin 0
set lmargin 0
set rmargin 0
set tmargin 0
set output "${outdir}/${inname}_histogram_${colormode}.gif"
set xrange [0:255]
set yrange [0:$ymax]
plot "tmpT.txt" using 1:2 with filledcurves below x1 linecolor "$linecolor"
# EOF must not have any white space before it or does not work
EOF
--
Jeff NovaChief Executive Officer
Colorhythmhttps://colorhythm.com
jn...@co...
Main: +1 415-399-9921Direct: +1 415-399-9921 x407Mobile: +1 510-710-9590Fax: +1 415-399-9928
Pronouns: he / his
This electronic mail and the documents accompanying it are considered trade secret, confidential and/or proprietary by Colorhythm LLC. This information is intended for use by the individual or entity to whom this e-mail is addressed. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.
|
|
From: t.sefzick <t.s...@gm...> - 2021-04-17 20:44:36
|
3D heatmaps: http://gnuplot.sourceforge.net/demo_5.4/heatmaps.html On Sat, Apr 17, 2021 at 08:17:31PM +0000, Reginald Beardsley via gnuplot-info wrote: > Can gnuplot do this? I didn't find anything relevant searching. The system I built 5.4.1 on is currently inaccessible so I can't review the demos. > > As an example use case: > > Plot ground topography in 3D with an overlay of rainfall or snowpack to show the relationship between topography, wind direction and precipitation. > > There are a lot of geoscience applications for such a graphics presentation. > > Thanks, > Reg |
|
From: Reginald B. <pul...@ya...> - 2021-04-17 20:17:55
|
Can gnuplot do this? I didn't find anything relevant searching. The system I built 5.4.1 on is currently inaccessible so I can't review the demos. As an example use case: Plot ground topography in 3D with an overlay of rainfall or snowpack to show the relationship between topography, wind direction and precipitation. There are a lot of geoscience applications for such a graphics presentation. Thanks, Reg |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2021-04-14 12:41:32
|
Am 12.04.2021 um 01:12 schrieb Helmut Haberzettl: > I've googled around, but all the info I could find on how to plot > discontinuities seem to assume that the function F(x,y) is explicitly > given. That would be because the entire concept of "continuity" is effectively meaningless for discrete data. Let's recall the definition of the term "continuity": for any epsilon > 0 there is a delta > 0 such that for all x with ||x - x0|| < delta, ||f(x) - f(x0)|| < epsilon with x and x0 in the definition set of `f. In simpler words: no jumps in the interior (maximal open subset) of the definition set of f. On discrete data sets you can always select delta smaller than the smallest distance of any two points in the data set, and thus force x=x0 as the only choice. I.e. since the definition set consists of isolated positions only, there is no interior for the definition to attach to. Discrete data are thus, by definition, _always_ continuous. That renders the concept tautological on them, and robs it of any meaning. |
|
From: Helmut H. <he...@ha...> - 2021-04-11 23:32:11
|
Hi, I'd like produce a surface plot with splot of a function F(x,y) that is only given as a discrete data set read from a file. One of the corners of the function's (x,y) support is (0,0) and I know the function is discontinuous at F(0,0) depending on how one approaches (0,0), with a discontinuous jump for F(x,0) for x going to 0. Is there a specific way to treat the (0,0) input point in splot to reflect the discontinuity? I've googled around, but all the info I could find on how to plot discontinuities seem to assume that the function F(x,y) is explicitly given. Thank you. --Helmut PS: I use gnuplot 5.4.1 on Windows 10 Pro. |
|
From: Ethan M. <eam...@gm...> - 2021-03-25 17:59:28
|
On Thursday, 25 March 2021 09:50:52 PDT Ethan Merritt wrote: > [some stuff about modifying /etc/ld.so.conf] Correction: Please ignore that particular suggestion. It is relevant to installing support libraries, but not to installing the program itself. If you need to add "/usr/local/bin" to your path permanently it goes in your personal profile file (probably $HOME/.bashrc) or somewhere in the /etc/profile.d/* system templates. Ethan |
|
From: Alan C. <ala...@gm...> - 2021-03-25 17:44:57
|
If you want to manually remove files installed by apt/dpkg look in /var/lib/dpkg/info/gnuplot*.list Except if Ubuntu uses Debian's alternatives system of symlinks gnuplot is tangled up in that. galternatives is the GUI tool for dealing with it, or update-alternatives for command line. And the binary here at least (Raspbian) is /usr/bin/gnuplot-qt and the list is in gnuplot-qt.list On 3/25/21, Ethan Merritt <eam...@gm...> wrote: > On Thursday, 25 March 2021 06:45:45 PDT Eliezer Richmond wrote: >> Ethan, >> >> I followed your instructions. Since I downloaded and unzipped the file >> with gunzip and extracted the file with tar xvf into the directory >> $HOME/gnuplot/gnuplot-5.4.1, >> I started with "./configure --prefix=$HOME/gnuplot/gnuplot-5.4.1". > > That configures it in such a way that the final "install" command > will put it in $HOME/gnuplot/gnuplot-5.4.1/bin. > > That would make sense if you were building it on someone else's > machine where you did not have permission to change anything outside > of your own login directory. > It doesn't make much sense on your own machine - if it's in your > own directory you can run it even without the "install" step. > > >> I then issued the "make" command and then the "make check" command. Next, >> I issued "sudo make install". I tested gnuplot and obtained the same >> result as before, i.e. gnuplot-5.0.3 opened. In desperation, I issued >> "make install" but obtained the same gnuplot version. > >> Then I thought that maybe it was a PATH problem so I issued "export >> PATH=$HOME/gnuplot/gnuplot-5..6.1/bin:$PATH". > > Do you mean "export PATH=$HOME/gnuplot/gnuplot-5.4.1/bin:$PATH"? > That should work, at least for the terminal session you are in at that > moment. > > To make it permanent you would have to add that directory to > /etc/ld.so.conf.d > But that would be crazy. If you have root permission to modify the > system load path then you would be better off using that permission > to install the program in the normal place - /usr/bin (or /usr/local/bin) > >> I checked and the addition was included in the PATH. I tested gnuplot >> again and got gnuplo-5.0.3. Next, I examined the contents of the >> directory "/usr/bin", and found three entries - gnuplot, gnuplot5, and >> gnuplot5-nox. I looked at these files with the editor to find that they >> each had a long list of alphanumeric characters. I tried to remove them >> with a response that "permission denied". > > That is the purpose of using the "sudo" command wrapper. > It lets you add/remove/modify files that require system privilege. > >> Could you direct me as to what I am doing wrong? > > ./configure > # Inspect output to make sure it is building all the pieces you want > # e.g. if the summary at the end says something like > # airo-based terminals: no (requires cairo>=1.2, pango>=1.22, > glib>=2.28 > # it is telling you that you need to install those support packages before > # configuring gnuplot to use them > > make >& make.log > # Inspect log file for warnings or errors > > make check > # The new gnuplot that you just built should run through a bunch of demos > > sudo make install > # At this point the new gnuplot should be in /usr/local/bin > # The new qt and x11 terminals should be in /usr/local/libexec/ > # And lots of documentation and support files should be in > /usr/local/share/gnuplot/5.4 > > If your system doesn't normally use the /usr/local directories > (I don't know about Ubuntu), then you can either > > (a) > add /usr/local to /etc/ld.so.conf.d > (b) > make /usr/local be a symlink to /usr before doing "make install" !! > (c) > modify the configure at step #1 to be > ./configure --prefix=/usr > > There might still be some error messages from "make install" > if your system uses a different convention than the gnuplot > configure script expects for certain things. > For example it might well be that Ubuntu keeps TeX support files > in a different place than gnuplot's default. > > cheers, > > Ethan > > >> Thank you in advance for your help >> >> Eliezer >> >> -----Original Message----- >> From: Ethan Merritt <eam...@gm...> >> Sent: Wednesday, March 24, 2021 10:33 PM >> To: gnu...@li... >> Cc: Eliezer Richmond <eli...@gm...> >> Subject: Re: [Gnuplot-info] Not able to install gnuplot succesfully >> >> On Wednesday, 24 March 2021 18:37:37 PDT Eliezer Richmond wrote: >> > I am trying to install gnuplot-5.4.1 in Linux OS using Ubuntu 64 bit >> > 16.04.3 >> > >> > I have tried to install gnuplot-5.4.1 without success. I have read >> > the faq "How do I compile gnuplot on my system" and the INSTALL file >> > in the >> > gnuplot-5.4.1 folder. >> > >> > I downloaded gnuplot-5.4.1.tar.gz and unzipped the file into >> > $HOME/gnuplot/gunuplot-5.4.1. >> >> You are mixing up two very different things. >> #1 is building and installing gnuplot from source files. >> #2 is downloading and installing whatever gnuplot package your >> distribution provides. >> >> Pick one or the other. >> >> >> > >> > >> > I then entered the commands >> > >> > ./configure >> > make >> >> Good so far. Assuming that you were happy with the output it shows about >> what optional components are being built, you should now have a runnable >> gnuplot sitting in the directory where you built it. >> >> > sudo apt install gnuplot >> >> But now you go completely wrong. >> "apt install" ignores the thing you just built. >> It goes out and looks for a package named "gnuplot" on some Ubuntu web >> site somewhere. Then installs it. >> Not the one you built. >> >> > make check >> >> That is checking the copy you built at step 1. >> >> > make install >> >> That is trying to insall the copy you just checked, but it will probably >> fail because you don't have the right permissions. Probably you need >> >> sudo make install >> >> >> > The 'sudo' command ran returning >> > Reading package lists... Done >> > Building dependency tree >> > Reading state information... Done >> > gnuplot is already the newest version (4.6.6-3ubuntu0.1). >> >> Now you are back in camp #2. It is reporting on installation of the Ubuntu >> package rather than the newer gnuplot you just built. >> Don't do this. Do _not_ run "apt". >> >> hope that helps, >> >> Ethan >> >> [snip] >> > I hope you can resolve my problem. >> > >> > Eliezer Richmond >> >> >> >> >> > > > > > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > -- ------------- Education is contagious. |
|
From: Ethan M. <eam...@gm...> - 2021-03-25 16:51:10
|
On Thursday, 25 March 2021 06:45:45 PDT Eliezer Richmond wrote: > Ethan, > > I followed your instructions. Since I downloaded and unzipped the file with gunzip and extracted the file with tar xvf into the directory $HOME/gnuplot/gnuplot-5.4.1, > I started with "./configure --prefix=$HOME/gnuplot/gnuplot-5.4.1". That configures it in such a way that the final "install" command will put it in $HOME/gnuplot/gnuplot-5.4.1/bin. That would make sense if you were building it on someone else's machine where you did not have permission to change anything outside of your own login directory. It doesn't make much sense on your own machine - if it's in your own directory you can run it even without the "install" step. > I then issued the "make" command and then the "make check" command. Next, I issued "sudo make install". I tested gnuplot and obtained the same result as before, i.e. gnuplot-5.0.3 opened. In desperation, I issued "make install" but obtained the same gnuplot version. > Then I thought that maybe it was a PATH problem so I issued "export PATH=$HOME/gnuplot/gnuplot-5..6.1/bin:$PATH". Do you mean "export PATH=$HOME/gnuplot/gnuplot-5.4.1/bin:$PATH"? That should work, at least for the terminal session you are in at that moment. To make it permanent you would have to add that directory to /etc/ld.so.conf.d But that would be crazy. If you have root permission to modify the system load path then you would be better off using that permission to install the program in the normal place - /usr/bin (or /usr/local/bin) > I checked and the addition was included in the PATH. I tested gnuplot again and got gnuplo-5.0.3. Next, I examined the contents of the directory "/usr/bin", and found three entries - gnuplot, gnuplot5, and gnuplot5-nox. I looked at these files with the editor to find that they each had a long list of alphanumeric characters. I tried to remove them with a response that "permission denied". That is the purpose of using the "sudo" command wrapper. It lets you add/remove/modify files that require system privilege. > Could you direct me as to what I am doing wrong? ./configure # Inspect output to make sure it is building all the pieces you want # e.g. if the summary at the end says something like # airo-based terminals: no (requires cairo>=1.2, pango>=1.22, glib>=2.28 # it is telling you that you need to install those support packages before # configuring gnuplot to use them make >& make.log # Inspect log file for warnings or errors make check # The new gnuplot that you just built should run through a bunch of demos sudo make install # At this point the new gnuplot should be in /usr/local/bin # The new qt and x11 terminals should be in /usr/local/libexec/ # And lots of documentation and support files should be in /usr/local/share/gnuplot/5.4 If your system doesn't normally use the /usr/local directories (I don't know about Ubuntu), then you can either (a) add /usr/local to /etc/ld.so.conf.d (b) make /usr/local be a symlink to /usr before doing "make install" !! (c) modify the configure at step #1 to be ./configure --prefix=/usr There might still be some error messages from "make install" if your system uses a different convention than the gnuplot configure script expects for certain things. For example it might well be that Ubuntu keeps TeX support files in a different place than gnuplot's default. cheers, Ethan > Thank you in advance for your help > > Eliezer > > -----Original Message----- > From: Ethan Merritt <eam...@gm...> > Sent: Wednesday, March 24, 2021 10:33 PM > To: gnu...@li... > Cc: Eliezer Richmond <eli...@gm...> > Subject: Re: [Gnuplot-info] Not able to install gnuplot succesfully > > On Wednesday, 24 March 2021 18:37:37 PDT Eliezer Richmond wrote: > > I am trying to install gnuplot-5.4.1 in Linux OS using Ubuntu 64 bit > > 16.04.3 > > > > I have tried to install gnuplot-5.4.1 without success. I have read > > the faq "How do I compile gnuplot on my system" and the INSTALL file > > in the > > gnuplot-5.4.1 folder. > > > > I downloaded gnuplot-5.4.1.tar.gz and unzipped the file into > > $HOME/gnuplot/gunuplot-5.4.1. > > You are mixing up two very different things. > #1 is building and installing gnuplot from source files. > #2 is downloading and installing whatever gnuplot package your distribution provides. > > Pick one or the other. > > > > > > > > I then entered the commands > > > > ./configure > > make > > Good so far. Assuming that you were happy with the output it shows about what optional components are being built, you should now have a runnable gnuplot sitting in the directory where you built it. > > > sudo apt install gnuplot > > But now you go completely wrong. > "apt install" ignores the thing you just built. > It goes out and looks for a package named "gnuplot" on some Ubuntu web site somewhere. Then installs it. > Not the one you built. > > > make check > > That is checking the copy you built at step 1. > > > make install > > That is trying to insall the copy you just checked, but it will probably fail because you don't have the right permissions. Probably you need > > sudo make install > > > > The 'sudo' command ran returning > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > gnuplot is already the newest version (4.6.6-3ubuntu0.1). > > Now you are back in camp #2. It is reporting on installation of the Ubuntu package rather than the newer gnuplot you just built. > Don't do this. Do _not_ run "apt". > > hope that helps, > > Ethan > > [snip] > > I hope you can resolve my problem. > > > > Eliezer Richmond > > > > > |
|
From: Alan C. <ala...@gm...> - 2021-03-25 13:22:05
|
Yeah, don't mix building from source with using debs. Do a dpkg purge gnuplot, then make uninstall it. Unless you really need the latest version apt-get install gnuplot should work. But the debs can be a year or more old by the time they trickle through the stages of testing so it's almost always a different version. On Wed, Mar 24, 2021, 10:33 PM Ethan Merritt <eam...@gm...> wrote: > On Wednesday, 24 March 2021 18:37:37 PDT Eliezer Richmond wrote: > > I am trying to install gnuplot-5.4.1 in Linux OS using Ubuntu 64 bit > 16.04.3 > > > > I have tried to install gnuplot-5.4.1 without success. I have read the > faq > > "How do I compile gnuplot on my system" and the INSTALL file in the > > gnuplot-5.4.1 folder. > > > > I downloaded gnuplot-5.4.1.tar.gz and unzipped the file into > > $HOME/gnuplot/gunuplot-5.4.1. > > You are mixing up two very different things. > #1 is building and installing gnuplot from source files. > #2 is downloading and installing whatever gnuplot > package your distribution provides. > > Pick one or the other. > > > > > > > > I then entered the commands > > > > ./configure > > make > > Good so far. Assuming that you were happy with the > output it shows about what optional components are > being built, you should now have a runnable gnuplot > sitting in the directory where you built it. > > > sudo apt install gnuplot > > But now you go completely wrong. > "apt install" ignores the thing you just built. > It goes out and looks for a package named "gnuplot" on > some Ubuntu web site somewhere. Then installs it. > Not the one you built. > > > make check > > That is checking the copy you built at step 1. > > > make install > > That is trying to insall the copy you just checked, > but it will probably fail because you don't have the > right permissions. Probably you need > > sudo make install > > > > The 'sudo' command ran returning > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > gnuplot is already the newest version (4.6.6-3ubuntu0.1). > > Now you are back in camp #2. It is reporting on installation > of the Ubuntu package rather than the newer gnuplot you just built. > Don't do this. Do _not_ run "apt". > > hope that helps, > > Ethan > > [snip] > > I hope you can resolve my problem. > > > > Eliezer Richmond > > > > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: Ethan M. <eam...@gm...> - 2021-03-25 02:32:41
|
On Wednesday, 24 March 2021 18:37:37 PDT Eliezer Richmond wrote:
> I am trying to install gnuplot-5.4.1 in Linux OS using Ubuntu 64 bit 16.04.3
>
> I have tried to install gnuplot-5.4.1 without success. I have read the faq
> "How do I compile gnuplot on my system" and the INSTALL file in the
> gnuplot-5.4.1 folder.
>
> I downloaded gnuplot-5.4.1.tar.gz and unzipped the file into
> $HOME/gnuplot/gunuplot-5.4.1.
You are mixing up two very different things.
#1 is building and installing gnuplot from source files.
#2 is downloading and installing whatever gnuplot
package your distribution provides.
Pick one or the other.
>
>
> I then entered the commands
>
> ./configure
> make
Good so far. Assuming that you were happy with the
output it shows about what optional components are
being built, you should now have a runnable gnuplot
sitting in the directory where you built it.
> sudo apt install gnuplot
But now you go completely wrong.
"apt install" ignores the thing you just built.
It goes out and looks for a package named "gnuplot" on
some Ubuntu web site somewhere. Then installs it.
Not the one you built.
> make check
That is checking the copy you built at step 1.
> make install
That is trying to insall the copy you just checked,
but it will probably fail because you don't have the
right permissions. Probably you need
sudo make install
> The 'sudo' command ran returning
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> gnuplot is already the newest version (4.6.6-3ubuntu0.1).
Now you are back in camp #2. It is reporting on installation
of the Ubuntu package rather than the newer gnuplot you just built.
Don't do this. Do _not_ run "apt".
hope that helps,
Ethan
[snip]
> I hope you can resolve my problem.
>
> Eliezer Richmond
|
|
From: Eliezer R. <eli...@gm...> - 2021-03-25 01:37:55
|
I am trying to install gnuplot-5.4.1 in Linux OS using Ubuntu 64 bit 16.04.3
I want to use gnuplot to plot the bandstructure of Pd using the ABINIT code.
I have tried to install gnuplot-5.4.1 without success. I have read the faq
"How do I compile gnuplot on my system" and the INSTALL file in the
gnuplot-5.4.1 folder.
I downloaded gnuplot-5.4.1.tar.gz and unzipped the file into
$HOME/gnuplot/gunuplot-5.4.1.
I then entered the commands
./configure
make
sudo apt install gnuplot
make check
make install
The 'sudo' command ran returning
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnuplot is already the newest version (4.6.6-3ubuntu0.1).
The following packages were automatically installed and are no longer
required:
libdumbnet1 libgtkmm-2.4-1v5 libllvm5.0 libmspack0 libxmlsec1
libxmlsec1-openssl snapd-login-service
The make install command ran and returned at the end
/bin/mkdir -p '/usr/local/share/gnuplot/5.4/js'
/bin/mkdir: cannot create directory '/usr/local/share/gnuplot': Permission
denied
Makefile:374: recipe for target 'install-jsDATA' failed
make[2]: *** [install-jsDATA] Error 1
make[2]: Leaving directory '/home/eliezer/gnuplot/gnuplot-5.4.1/term'
Makefile:489: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/home/eliezer/gnuplot/gnuplot-5.4.1/term'
Makefile:426: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
The 'make check' command ran returning for most of it 'WARNING: plotting
with an 'unknown' terminal. No output will be generated. Please select a
terminal with 'set terminal'. ' At the end of the output the command
returned
/bin/mkdir -p '/usr/local/share/gnuplot/5.4/js'
/bin/mkdir: cannot create directory '/usr/local/share/gnuplot': Permission
denied
Makefile:374: recipe for target 'install-jsDATA' failed
make[2]: *** [install-jsDATA] Error 1
make[2]: Leaving directory '/home/eliezer/gnuplot/gnuplot-5.4.1/term'
Makefile:489: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/home/eliezer/gnuplot/gnuplot-5.4.1/term'
Makefile:426: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
About 5 years ago, I installed gnuplot-5.0.3, and every time I give the
command 'gnuplot', gnuplot-5.0.3 opens. I listened to 2 youtube tutorials
given with gnuplot-5.5 and terminal 'wxt'. Gnuplot-5.0.3 does not have
this terminal. Does gnuplot-5.4.1?
I hope you can resolve my problem.
Eliezer Richmond
|
|
From: Eduardo L. de Sa <ed...@uf...> - 2021-03-24 23:59:37
|
Dear Eliezer Sorry by top-posting (I couldn´t fix this in my Microsoft email provider). So, I think that certainly, you are a member now because you could send a question to the list. My suggestion is that you retry to send your original email (where your problem is described in detail) because there are very kind people offering support. My best wishes Eduardo Eduardo Lemos de Sá Professor Titular Departamento de Química (http://www.quimica.ufpr.br/paginas/edulsa) Universidade Federal do Paraná R. Cel Francisco H. dos Santos, s/n Centro Politécnico - Cx. Postal 19032 Jardim das Américas - CEP: 81531-980-Curitiba - PR -Brasil fone: +55(41)3361-3300 fax: +55(41)3361-3186 ________________________________________ From: Eliezer Richmond <eli...@gm...> Sent: Wednesday, March 24, 2021 8:02 PM To: Eduardo Lemos de Sa Subject: RE: [Gnuplot-info] How do I become a member of gnuplot Eduardo, I sent a detailed question to the email address, gnu...@li..., regarding a problem that I am having installing gnuplot-5.4.1. The response was that only members could address questions to this email address. Consequently, I wanted to investigate how to become a member. Your response, therefore, has me in a quandary. Does gnuplot have a resource for getting problems with gnuplot answered? Yours truly, Eliezer -----Original Message----- From: Eduardo Lemos de Sa <ed...@uf...> Sent: Wednesday, March 24, 2021 6:23 PM To: Eliezer Richmond <eli...@gm...> Subject: Re: [Gnuplot-info] How do I become a member of gnuplot Dear Eliezer Sorry, but what are you meaning about "become a member"? If you are referring to gnuplot users list, I think that you got it: you were able to send an email for. My best wishes Eduardo Eduardo Lemos de Sá Professor Titular Departamento de Química (http://www.quimica.ufpr.br/paginas/edulsa) Universidade Federal do Paraná R. Cel Francisco H. dos Santos, s/n Centro Politécnico - Cx. Postal 19032 Jardim das Américas - CEP: 81531-980-Curitiba - PR -Brasil fone: +55(41)3361-3300 fax: +55(41)3361-3186 ________________________________________ From: Eliezer Richmond <eli...@gm...> Sent: Wednesday, March 24, 2021 5:57 PM To: gnu...@li... Subject: [Gnuplot-info] How do I become a member of gnuplot How do I become a member of gnuplot? Eliezer Richmond _______________________________________________ gnuplot-info mailing list gnu...@li... Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Eliezer R. <eli...@gm...> - 2021-03-24 20:57:43
|
How do I become a member of gnuplot? Eliezer Richmond |
|
From: Ethan M. <eam...@gm...> - 2021-03-17 16:48:58
|
On Tuesday, 16 March 2021 06:34:49 PDT Roderick Stewart wrote:
> Ethan,
>
> We have a number of active volcanoes here, and some potentially-active. Keeps us busy. We actually work with the USGS, who are based in Vancouver, Washington.
Oh well, "potentially active" is another story.
We have Mt Rainier, and Mt St Helens, and I suppose Mt Hood for that matter.
I was at school back East when St Helens last blew, but I have seen
a small jokulhaups at Rainier.
> Can I ask one more gnuplot favour?
>
> The attached plot is what I am doing using the attached script.
>
> The top two plots are histograms of data that ends today.
>
> The bottom plot is the time series data for the whole year that you helped me with.
>
> I want to make the time-series plot end at the same time as the middle histogram plot, ie xrange should finish at the end of today.
today = strftime("%d-%b-%Y", time(0))
almost_midnight = " 23:59"
t_max = strptime("%d-%b-%Y %H:%M", today.almost_midnight)
set xrange [t_min : t_max]
cheers,
Ethan
>
> How do I do that?
>
> Rod
>
>
>
>
> --
> Roderick Stewart
> Research Fellow (Volcano-Seismology), Montserrat Volcano Observatory
> www.mvo.ms <http://www.mvo.ms/>
> email: ro...@mv... <mailto:ro...@mv...>, rod...@gm... <mailto:rod...@gm...>, rst...@my... <mailto:rst...@my...>
>
> phone: (+1-664) 491-5647
> fax: (+1-664) 491-2423
> direct line: (+1-664) 491-5726
> mobile: (+1-664) 495-0743
> home: (+1-664) 491-3139
> roaming: +44 7452 023889
> trinidad: +1 (868) 780-4296
>
>
>
>
>
>
>
> > On 17 Mar 2021, at 03:06, Ethan Merritt <eam...@gm...> wrote:
> >
> > On Tuesday, 16 March 2021 06:43:08 PDT Roderick Stewart wrote:
> >> Ethan,
> >>
> >> This is fantastic and has saved me a lot of time.
> >>
> >> I’m currently in St Vincent trying to set up a real-time volcano monitoring system
> >
> > Lucky you!
> > I'm stuck here in cold and rainy Seattle, still in Covid lock-down so no travel escape.
> >
> >> on Windows, and I have very little experience in Windows.
> >>
> >> I would like to offer you a Montserrat Volcano Observatory T-shirt in thanks for your help.
> >
> > You are very kind, and I appreciate your offer.
> > But my T-shirt draw is totally overflowing, mostly due to 30 years of support
> > for the Northwest Folklife Festival, so I won't impose on your kindness.
> >
> > I have to admit that before this I did not know there was an active volcano
> > in the Caribbean.
> >
> > best regards,
> >
> > Ethan
> >
> >
> >
> >> Just give me your size, an approximate colour you want, and an address that a courier can deliver to. I can send it next week when I get back, but have no idea how long it takes to deliver in these Covid times.
> >>
> >>
> >> Rod
> >>
> >>
> >>
> >>
> >> --
> >> Roderick Stewart
> >> Research Fellow (Volcano-Seismology), Montserrat Volcano Observatory
> >> www.mvo.ms <http://www.mvo.ms/>
> >> email: ro...@mv... <mailto:ro...@mv...>, rod...@gm... <mailto:rod...@gm...>, rst...@my... <mailto:rst...@my...>
> >>
> >> phone: (+1-664) 491-5647
> >> fax: (+1-664) 491-2423
> >> direct line: (+1-664) 491-5726
> >> mobile: (+1-664) 495-0743
> >> home: (+1-664) 491-3139
> >> roaming: +44 7452 023889
> >> trinidad: +1 (868) 780-4296
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>> On 15 Mar 2021, at 18:10, Ethan Merritt <eam...@gm...> wrote:
> >>>
> >>> On Monday, 15 March 2021 13:20:14 PDT Roderick Stewart wrote:
> >>>> I’m new to gnuplot (love it!) but can’t work out how to plot time series data from a file when the file contains no time information, just equally-spaced data values.
> >>>>
> >>>> I have a binary file which has one year’s worth of data at 1-minute intervals.
> >>>>
> >>>> I can plot it using:
> >>>>
> >>>> plot ‘2021.dat’ binary format=“%int32” using 0:1
> >>>>
> >>>> But I want the X axis to be a date axis so I can, for example, set xrange.
> >>>>
> >>>> How do I get the timestamps into the plot?
> >>>
> >>> The units of time in gnuplot are seconds.
> >>> A date corresponds to the number of seconds elapsed since the start of the
> >>> epoch (1 Jan 1970).
> >>>
> >>> Each record in your data adds 60 seconds to the date.
> >>> So the task is
> >>> 1) Determine the canonical date (number of seconds since 1970) of the start time.
> >>> 2) Add 60 seconds for each data point
> >>>
> >>> Suppose your data starts with the first minute of 2021.
> >>>
> >>> timefmt = "%d-%b-%Y"
> >>> time0 = strptime( timefmt, "01-Jan-2021" )
> >>>
> >>> # the xrange and tic placement will use the timefmt we just set
> >>> set xdata time
> >>> set xrange [time0 : *]
> >>> set xtics ("01-Jan-2021", "01-Feb-2021", "01-Mar-2021")
> >>>
> >>> # the actual tic labels will only use the month name
> >>> set xtics format "%b" # Only the month names
> >>>
> >>> plot '2021.dat' binary format=%int32" using (time0 + $0 * 60.) : 1 with lines
> >>>
> >>>
> >>> Ethan
> >>>
> >>>
> >>>>
> >>>> Thanks in advance.
> >>>> Roderick Stewart
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
> >
>
>
|
|
From: Roderick S. <rod...@gm...> - 2021-03-16 13:35:03
|
thanks to all for your help. Ethan’s suggestion works great. Rod -- Roderick Stewart Research Fellow (Volcano-Seismology), Montserrat Volcano Observatory www.mvo.ms <http://www.mvo.ms/> email: ro...@mv... <mailto:ro...@mv...>, rod...@gm... <mailto:rod...@gm...>, rst...@my... <mailto:rst...@my...> phone: (+1-664) 491-5647 fax: (+1-664) 491-2423 direct line: (+1-664) 491-5726 mobile: (+1-664) 495-0743 home: (+1-664) 491-3139 roaming: +44 7452 023889 trinidad: +1 (868) 780-4296 > On 15 Mar 2021, at 18:10, Ethan Merritt <eam...@gm...> wrote: > > On Monday, 15 March 2021 13:20:14 PDT Roderick Stewart wrote: >> I’m new to gnuplot (love it!) but can’t work out how to plot time series data from a file when the file contains no time information, just equally-spaced data values. >> >> I have a binary file which has one year’s worth of data at 1-minute intervals. >> >> I can plot it using: >> >> plot ‘2021.dat’ binary format=“%int32” using 0:1 >> >> But I want the X axis to be a date axis so I can, for example, set xrange. >> >> How do I get the timestamps into the plot? > > The units of time in gnuplot are seconds. > A date corresponds to the number of seconds elapsed since the start of the > epoch (1 Jan 1970). > > Each record in your data adds 60 seconds to the date. > So the task is > 1) Determine the canonical date (number of seconds since 1970) of the start time. > 2) Add 60 seconds for each data point > > Suppose your data starts with the first minute of 2021. > > timefmt = "%d-%b-%Y" > time0 = strptime( timefmt, "01-Jan-2021" ) > > # the xrange and tic placement will use the timefmt we just set > set xdata time > set xrange [time0 : *] > set xtics ("01-Jan-2021", "01-Feb-2021", "01-Mar-2021") > > # the actual tic labels will only use the month name > set xtics format "%b" # Only the month names > > plot '2021.dat' binary format=%int32" using (time0 + $0 * 60.) : 1 with lines > > > Ethan > > >> >> Thanks in advance. >> Roderick Stewart > > > |
|
From: Ethan M. <eam...@gm...> - 2021-03-15 23:45:08
|
On Monday, 15 March 2021 15:14:39 PDT Craig DeForest wrote:
> Careful with long intervals and seconds-counting. UNIX time, somewhat notoriously, is a transfer standard only! It follows UTC but ignores leap seconds, so after every leap second times in the past shift by one second. So the current UNIX epoch occurred on 1970-01-01 12:00:27 UTC, and in another couple of years it will have occurred later.
Not relevant here.
The only time information in the data is "number of minutes since start of series",
which comes from the line number.
The calendar/clock time at the start of the series comes from external knowledge.
Ethan
>
> > On Mar 15, 2021, at 4:10 PM, Ethan Merritt <eam...@gm...> wrote:
> >
> > On Monday, 15 March 2021 13:20:14 PDT Roderick Stewart wrote:
> >> I’m new to gnuplot (love it!) but can’t work out how to plot time series data from a file when the file contains no time information, just equally-spaced data values.
> >>
> >> I have a binary file which has one year’s worth of data at 1-minute intervals.
> >>
> >> I can plot it using:
> >>
> >> plot ‘2021.dat’ binary format=“%int32” using 0:1
> >>
> >> But I want the X axis to be a date axis so I can, for example, set xrange.
> >>
> >> How do I get the timestamps into the plot?
> >
> > The units of time in gnuplot are seconds.
> > A date corresponds to the number of seconds elapsed since the start of the
> > epoch (1 Jan 1970).
> >
> > Each record in your data adds 60 seconds to the date.
> > So the task is
> > 1) Determine the canonical date (number of seconds since 1970) of the start time.
> > 2) Add 60 seconds for each data point
> >
> > Suppose your data starts with the first minute of 2021.
> >
> > timefmt = "%d-%b-%Y"
> > time0 = strptime( timefmt, "01-Jan-2021" )
> >
> > # the xrange and tic placement will use the timefmt we just set
> > set xdata time
> > set xrange [time0 : *]
> > set xtics ("01-Jan-2021", "01-Feb-2021", "01-Mar-2021")
> >
> > # the actual tic labels will only use the month name
> > set xtics format "%b" # Only the month names
> >
> > plot '2021.dat' binary format=%int32" using (time0 + $0 * 60.) : 1 with lines
> >
> >
> > Ethan
> >
> >
> >>
> >> Thanks in advance.
> >> Roderick Stewart
> >
> >
> >
> >
> >
> > _______________________________________________
> > gnuplot-info mailing list
> > gnu...@li...
> > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >
>
>
|
|
From: Craig D. <def...@bo...> - 2021-03-15 22:14:56
|
Careful with long intervals and seconds-counting. UNIX time, somewhat notoriously, is a transfer standard only! It follows UTC but ignores leap seconds, so after every leap second times in the past shift by one second. So the current UNIX epoch occurred on 1970-01-01 12:00:27 UTC, and in another couple of years it will have occurred later.
> On Mar 15, 2021, at 4:10 PM, Ethan Merritt <eam...@gm...> wrote:
>
> On Monday, 15 March 2021 13:20:14 PDT Roderick Stewart wrote:
>> I’m new to gnuplot (love it!) but can’t work out how to plot time series data from a file when the file contains no time information, just equally-spaced data values.
>>
>> I have a binary file which has one year’s worth of data at 1-minute intervals.
>>
>> I can plot it using:
>>
>> plot ‘2021.dat’ binary format=“%int32” using 0:1
>>
>> But I want the X axis to be a date axis so I can, for example, set xrange.
>>
>> How do I get the timestamps into the plot?
>
> The units of time in gnuplot are seconds.
> A date corresponds to the number of seconds elapsed since the start of the
> epoch (1 Jan 1970).
>
> Each record in your data adds 60 seconds to the date.
> So the task is
> 1) Determine the canonical date (number of seconds since 1970) of the start time.
> 2) Add 60 seconds for each data point
>
> Suppose your data starts with the first minute of 2021.
>
> timefmt = "%d-%b-%Y"
> time0 = strptime( timefmt, "01-Jan-2021" )
>
> # the xrange and tic placement will use the timefmt we just set
> set xdata time
> set xrange [time0 : *]
> set xtics ("01-Jan-2021", "01-Feb-2021", "01-Mar-2021")
>
> # the actual tic labels will only use the month name
> set xtics format "%b" # Only the month names
>
> plot '2021.dat' binary format=%int32" using (time0 + $0 * 60.) : 1 with lines
>
>
> Ethan
>
>
>>
>> Thanks in advance.
>> Roderick Stewart
>
>
>
>
>
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|
|
From: Ethan M. <eam...@gm...> - 2021-03-15 22:10:23
|
On Monday, 15 March 2021 13:20:14 PDT Roderick Stewart wrote:
> I’m new to gnuplot (love it!) but can’t work out how to plot time series data from a file when the file contains no time information, just equally-spaced data values.
>
> I have a binary file which has one year’s worth of data at 1-minute intervals.
>
> I can plot it using:
>
> plot ‘2021.dat’ binary format=“%int32” using 0:1
>
> But I want the X axis to be a date axis so I can, for example, set xrange.
>
> How do I get the timestamps into the plot?
The units of time in gnuplot are seconds.
A date corresponds to the number of seconds elapsed since the start of the
epoch (1 Jan 1970).
Each record in your data adds 60 seconds to the date.
So the task is
1) Determine the canonical date (number of seconds since 1970) of the start time.
2) Add 60 seconds for each data point
Suppose your data starts with the first minute of 2021.
timefmt = "%d-%b-%Y"
time0 = strptime( timefmt, "01-Jan-2021" )
# the xrange and tic placement will use the timefmt we just set
set xdata time
set xrange [time0 : *]
set xtics ("01-Jan-2021", "01-Feb-2021", "01-Mar-2021")
# the actual tic labels will only use the month name
set xtics format "%b" # Only the month names
plot '2021.dat' binary format=%int32" using (time0 + $0 * 60.) : 1 with lines
Ethan
>
> Thanks in advance.
> Roderick Stewart
|
|
From: Roderick S. <rod...@gm...> - 2021-03-15 20:20:35
|
I’m new to gnuplot (love it!) but can’t work out how to plot time series data from a file when the file contains no time information, just equally-spaced data values. I have a binary file which has one year’s worth of data at 1-minute intervals. I can plot it using: plot ‘2021.dat’ binary format=“%int32” using 0:1 But I want the X axis to be a date axis so I can, for example, set xrange. How do I get the timestamps into the plot? Thanks in advance. -- Roderick Stewart Research Fellow (Volcano-Seismology), Montserrat Volcano Observatory www.mvo.ms <http://www.mvo.ms/> email: ro...@mv... <mailto:ro...@mv...>, rod...@gm... <mailto:rod...@gm...>, rst...@my... <mailto:rst...@my...> phone: (+1-664) 491-5647 fax: (+1-664) 491-2423 direct line: (+1-664) 491-5726 mobile: (+1-664) 495-0743 home: (+1-664) 491-3139 roaming: +44 7452 023889 trinidad: +1 (868) 780-4296 |
|
From: Alan C. <ala...@gm...> - 2021-03-12 12:34:49
|
Absolutely, I've never used the GUI. I had used some scientific
plotting packages in the 1980s and Gnuplot reminds me a little of
those. Full docs on their web site, there's even a PDF which is
searchable.
I use rxvt as a terminal and Joe as an editor, just to show that you
can use about anything. You learn to make little files like this.
You call them like gnuplot somefile and the output goes into the file
you specify inside it.
I'm not happy with this multiplot layout but it's an example here.
----
# blood pressure plotting format for manually recorded (on paper) points
# this (bpp) does pulse via multiplot too
# columns are date, time, systolic, diastolic, pulse
reset
set xdata time
set terminal gif giant size 1024,768
set output "bpp_1024.gif"
set multiplot layout 2,1
# This is the format in the input file, not the output:
set timefmt "%m/%d/%Y\t%H:%M"
set style data linespoints
set xtics auto
set xrange ['11/1/2020':]
plot '2020.tab' using 1:3 lt -1 title 'Systolic', \
'2020.tab' using 1:4 lt -1 title 'Diastolic'
plot '2020.tab' using 1:5 lt -1 title 'Pulse'
On 3/12/21, Aleksey Tsalolikhin <ats...@gm...> wrote:
> Hi Eduardo,
>
> Gnuplot is a command-line utility. See http://www.gnuplot.info/ which
> starts with, "Gnuplot is a portable command-line driven graphing utility".
>
> Are you using it on the command-line? I've only ever used it on UNIX and
> Linux systems...
>
> I use the "pngcairo" terminal, as per
> https://stackoverflow.com/questions/9080832/output-png-from-gnuplot-is-not-as-good-as-the-figure-from-prompt-shell
>
> Hope this helps!
>
> Best,
> Aleksey
>
> On Mon, Nov 30, 2020 at 12:51 AM edulsa <ed...@qu...> wrote:
>
>> Dear
>>
>> I have used Gnuplot (win and BSD versions) in my Physical Chemistry
>> classes since January. I have learned a lot about it and I got
>> encouraged my students to use this beautiful free program.
>> However, I have a problem with my interface that I couldn´t solve even
>> reading tutorials and manuals: I start a document, inserting constants,
>> writing functions and plotting graphs without problems. I save the
>> document (.plt document type) and close Gnuplot. But, when I reopened
>> the same document (loading in a clean start), only the last plot save is
>> showed. I would like to reopen the document to show to my students line
>> by line, how to insert constants, define functions and not get only the
>> last graph. Of course, I always can edit it using vim or another editor
>> but I think that it should be a more cleaver way to do this directly in
>> Gnuplot plot.
>>
>> My terminal is wxt. Is this caused by the terminal type that I choose?
>> Please, could you give suggestions?
>>
>> I wish to thank you in advance for your attention
>>
>> My best regards
>>
>> Eduardo
>>
>> --
>> Eduardo Lemos de Sa
>> Professor Titular
>> Dep. Quimica da Universidade Federal do Paraná
>> fone: +55(41)3361-3300
>> fax: +55(41)3361-3186
>> Voip Number 10531185
>>
>>
>> _______________________________________________
>> gnuplot-info mailing list
>> gnu...@li...
>> Membership management via:
>> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>
>
>
> --
> Achieve real learning. Email tra...@ve....
>
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via:
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
--
-------------
Education is contagious.
|
|
From: Aleksey T. <ats...@gm...> - 2021-03-12 11:00:51
|
Hi Eduardo, Gnuplot is a command-line utility. See http://www.gnuplot.info/ which starts with, "Gnuplot is a portable command-line driven graphing utility". Are you using it on the command-line? I've only ever used it on UNIX and Linux systems... I use the "pngcairo" terminal, as per https://stackoverflow.com/questions/9080832/output-png-from-gnuplot-is-not-as-good-as-the-figure-from-prompt-shell Hope this helps! Best, Aleksey On Mon, Nov 30, 2020 at 12:51 AM edulsa <ed...@qu...> wrote: > Dear > > I have used Gnuplot (win and BSD versions) in my Physical Chemistry > classes since January. I have learned a lot about it and I got > encouraged my students to use this beautiful free program. > However, I have a problem with my interface that I couldn´t solve even > reading tutorials and manuals: I start a document, inserting constants, > writing functions and plotting graphs without problems. I save the > document (.plt document type) and close Gnuplot. But, when I reopened > the same document (loading in a clean start), only the last plot save is > showed. I would like to reopen the document to show to my students line > by line, how to insert constants, define functions and not get only the > last graph. Of course, I always can edit it using vim or another editor > but I think that it should be a more cleaver way to do this directly in > Gnuplot plot. > > My terminal is wxt. Is this caused by the terminal type that I choose? > Please, could you give suggestions? > > I wish to thank you in advance for your attention > > My best regards > > Eduardo > > -- > Eduardo Lemos de Sa > Professor Titular > Dep. Quimica da Universidade Federal do Paraná > fone: +55(41)3361-3300 > fax: +55(41)3361-3186 > Voip Number 10531185 > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > -- Achieve real learning. Email tra...@ve.... |
|
From: Norwid B. <nb...@ya...> - 2021-02-26 14:16:04
|
Sorry, I thought the question was answered because NASA does document CDF and offers tools around this format. Subsequent communication with the OP indeed pointed to NASA, e.g. to map magnetic data. For example, at the MMS Science Data Center https://lasp.colorado.edu/mms/sdc/public/about/how-to/ the second of the three examples "Download a single science file" mentions this format with https://lasp.colorado.edu/mms/sdc/public/files/api/v1/download/science?file=mms2_scm_fast_l1a_scf_20150410_v3.2.0.cdf A random walk along the tree-like structure of the database conveys the perception these data are the result of an established protocol to process recorded data; e.g. https://lasp.colorado.edu/mms/sdc/public/data/mms1/epd-eis/srvy/l2/electronenergy/2020/12/ Since then, I did not follow up this thread because I assumed the OP was able to established a contact with NASA to either a) obtain the data in a format suitable for him (maybe as low level as .csv), possibly just by the addition of a few lines of code in the processing protocol by NASA. Or b), potentially for the benefit of Gnuplot .or. Gnuplot users, identify programmatic access to the content of the files (e.g., modern Fortran, Julia; Python). vim reveals some of the file's content is clear text (space mission, instruments), including this piece of information ---- 8>< ---- begin snippet Common Data Format (CDF) (C) Copyright 1990-2016 NASA/GSFC Space Physics Data Facility NASA/Goddard Space Flight Center Greenbelt, Maryland 20771 USA (Internet -- GSF...@LI...) --- 8>< ---- end snippet which indeed (eventually) leads to the file's documentation and APIs offered by NASA at https://cdf.gsfc.nasa.gov/html/cdf_docs.html |
|
From: Dan H. <dan...@ph...> - 2021-02-26 13:03:11
|
On Wed, 17 Feb 2021, Norwid Behrnd via gnuplot-info wrote: > If your refer to CDF format is about "Computable Document Format" by > Wolfram Research, chances gnuplot will adopt this as an output format > will be low. According to Wikipedia's entry, it is not an open > format (contrast to, e.g., .pdf or .png): On the other hand, OP might mean NASA's Common Data Format (or one of its descendants like NetCDF). If so, I'm mildly interested in the answer. |