[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49333] Plot with Sixel Graphics outputs nothi

From: anonymous
Subject: [Octave-bug-tracker] [bug #49333] Plot with Sixel Graphics outputs nothing
Date: Thu, 13 Oct 2016 12:58:02 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36


                 Summary: Plot with Sixel Graphics outputs nothing
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 13 Oct 2016 12:57:59 PM UTC
                Category: Plotting with gnuplot
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Abinsium
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: GNU/Linux



I do in Octave in a terminal with Sixel Graphics:

Nothing is output.

GnuPlot is compiled with support for Sixel Graphics and works stand-alone.
./configure --with-bitmap-terminals --with-gihdir=/home/pi/gnuplot-4.6.6/docs

Terminal sixel is used by having this in .bashrc:
export GNUTERM=sixel

I have a workaround to get a plot:
print -dgif "-S660,480" graph.gif;
system "img2sixel graph.gif"; # -P in GNU Screen

I use Bash on Ubuntu on Windows (BashOnWindows/WSL) and Bash on UoW in Mintty
(WSLTTY) as terminal.

More info:
To show Sixel graphics get WSLTTY: https://github.com/mintty/wsltty

A program to show the plot as workaround for a bug in Octave:
~$ cat myprint.m
print -dgif "-S660,480" graph.gif;
system "img2sixel graph.gif"; #-P as switch, if in Screen.

To install in Bash on Ubuntu on Windows:

sudo do-release-upgrade
sudo nano /etc/apt/sources.list
#Copy the four lines and exchange 'deb' for 'deb-src' in the copies.
sudo apt update && sudo apt -y dist-upgrade
sudo apt -y install dpkg-dev
apt source gnuplot
sudo apt -y install libgd2-dev
cd gnuplot-4.6.6
./configure --with-bitmap-terminals --with-gihdir=/home/pi/gnuplot-4.6.6/docs
#You may skip down to WSLTTY if you use it.
export DISPLAY=:0
#Start Xming
mlterm &
xterm -ti vt340 &
#Start Bash on UoW in Mintty (WSLTTY)
#In any:
set term sixel
plot sin(x)

sudo apt -y install octave octave-symbolic
sudo apt -y install libsixel-bin epstool transfig

#Stop Xming when running Bash on UoW in Mintty

#Add to .bashrc
export DISPLAY=:0
export GNUTERM=sixel
export GNUPLOT_PS_DIR=/home/pi/gnuplot-4.6.6/term/PostScript
export PATH=/home/pi/gnuplot-4.6.6/src:$PATH
#Restart Bash on UoW in Mintty.

#See video and http://wiki.octave.org/Symbolic_package



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]