Bug 308505

Summary: the "hist" command for octave backend does not display anything
Product: [Applications] cantor Reporter: Antonio <jamedrano>
Component: generalAssignee: Alexander Rieder <alexanderrieder>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.9.3

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