I did my research, so I'm sharing what I found to make it work on a
remote terminal (ASCII, via SSH) and in a local terminal (real graph, no
ASCII, displayed inside a terminal, using Gnuplot with Sixel graphics
support).
I. On remote terminal (ASCII, via SSH)
1) On a Debian (Devuan) remote server, instead of installing gnuplot-nox
I installed gnuplot5-nox.
2) The ASCII view can be improved by changing the "size" of the output.
For example, I changed the line "set terminal dumb" to:
set terminal dumb size 150,85
And you can play around with the values. In case the graph won't fit in
your screen, you can still scroll up and down if you pipe the output to
be viewed with the "less" command:
gnuplot candlestick.gnuplot | less
II. On a local terminal (real graph, no ASCII, displayed inside a
terminal). IMPORTANT: the line with "set terminal" will need to look
like this:
set terminal sixelgd
1) Inside a terminal emulator in Xorg:
1.1) You will need Gnuplot version 5 or higher.
1.2) You will need a terminal emulator that supports Sixel graphics. For
example, mlterm can do it out of the box. Xterm can do it if compiled
with "--enable-sixel-graphics". More options can be found at the
libsixel site (see 1.3).
1.3) You will need libsixel. You can get it from:
https://github.com/saitoha/libsixel
I had to get gd first:
sudo aptitude install libgd-dev
And then I compiled libsixel like this:
./configure --with-gd --enable-tests
make
make check
sudo make install
2) With no Xorg, inside the Framebuffer:
2.1) You will need access to the framebuffer (/dev/fb0, /dev/fb1, etc.).
I didn't need to do anything special to have access to that, my Linux
box already had it by default, but I know that some systems need to
create /dev/fb0 and things like that.
2.2) You will need a Framebuffer terminal, like Yaft:
github.com/uobikiemukot/yaft
Once you install it, just get into your TTY (no X) and type:
yaft
To quit, just type "exit".
I hope it helps someone with the same problem I had.
--
Héctor Abreu