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

 
 

bug #49333: Plot with Sixel Graphics outputs nothing

Submitted by:  None
Submitted on:  Thu 13 Oct 2016 12:57:59 PM UTC  
 
Category: Plotting with gnuplotSeverity: 1 - Wish
Priority: 3 - LowItem Group: Feature Request
Status: DuplicateAssigned to: None
Originator Name: AbinsiumOriginator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Administrator
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 File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 24 Nov 2016 12:31:26 AM UTCmtmillerStatusNeed Info=>Duplicate
      Open/ClosedOpen=>Closed
      Dependencies-=>Depends on bugs #44932
    Thu 13 Oct 2016 08:21:22 PM UTCmtmillerSeverity3 - 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.1-cleanup1