Bug 308505 - the "hist" command for octave backend does not display anything
Summary: the "hist" command for octave backend does not display anything
Status: RESOLVED FIXED
Alias: None
Product: cantor
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Rieder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-16 18:10 UTC by Antonio
Modified: 2012-10-18 23:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.9.3
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio 2012-10-16 18:10:25 UTC
I try to create a histogram using the "hist" command with the octave backend but nothing happens.

Reproducible: Always

Steps to Reproduce:
1. a =  normrnd(50,3,100,1)
2.hist(a)
3.
Actual Results:  
Nothing is displayed

Expected Results:  
Display a histogram.
Comment 1 Alexander Rieder 2012-10-18 22:22:42 UTC
the bug happens, because "hist" is, at the moment, not recognized as a plotting command. I will fix that soon. Until a fixed version is released (and if you hit similar problems with other commands) as a workaround you can manually call cantor_print() after the hist call, and that will give you the plot in the worksheet.
Comment 2 Alexander Rieder 2012-10-18 22:26:11 UTC
Git commit 0b0c00606238e22ee47868c3d8d80ec190d50f66 by Alexander Rieder.
Committed on 20/10/2012 at 00:29.
Pushed by arieder into branch 'master'.

add "hist" to the list of known plotting commands in the octave backend

M  +1    -1    src/backends/octave/octaveexpression.cpp

http://commits.kde.org/cantor/0b0c00606238e22ee47868c3d8d80ec190d50f66
Comment 3 Alexander Rieder 2012-10-18 22:35:01 UTC
Git commit 31d64592cb9bfad4e012b69372348bc32be6d759 by Alexander Rieder.
Committed on 20/10/2012 at 00:29.
Pushed by arieder into branch 'KDE/4.9'.

backport of "add "hist" to the list of known plotting commands in the octave backend"
(cherry picked from commit 0b0c00606238e22ee47868c3d8d80ec190d50f66)

M  +1    -1    src/backends/octave/octaveexpression.cpp

http://commits.kde.org/cantor/31d64592cb9bfad4e012b69372348bc32be6d759