bugGNU Octave - Bugs: bug #49333, Plot with Sixel Graphics outputs...

 
 

bug #49333: Plot with Sixel Graphics outputs nothing

Submitter:  None
Submitted:  Thu 13 Oct 2016 12:57:59 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  Duplicate Assigned to:  None
Originator Name:  Abinsium Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 13 Oct 2016 08:21:22 PM UTC, comment #1: 

You might want to look at bug #44932, which has a patch that supposedly enables support for the "xterm" gnuplot terminal. Maybe you can adapt this patch to work with the "sixel" terminal as well. Are you able to work on this and contribute a patch suitable for inclusion in Octave?

(Possible duplicate of bug #44932 if the symptom and changes needed seem similar, I'm assuming "sixel" is a terminal that prints control sequences to the terminal emulator similar to the "xterm" terminal.)

Mike Miller <mtmiller>
Group Member
Thu 13 Oct 2016 12:57:59 PM UTC, original submission:  

I do in Octave in a terminal with Sixel Graphics:
t=[0:0.1:6.28];
plot(t,sin(t))

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 --with-texdir=/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
cd
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 --with-texdir=/home/pi/gnuplot-4.6.6/docs
make
#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:
cd
./gnuplot-4.6.6/src/gnuplot
set term sixel
plot sin(x)
exit

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.

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

https://www.youtube.com/watch?v=r3XOrW8tVSY

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-24 mtmiller StatusNeed Info Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #44932
    2016-10-13 mtmiller Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low
        Item GroupIncorrect Result Feature Request
        StatusNone Need Info
        Release4.0.0 dev

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code