[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [cantor] src/backends/octave: force octave to use gnuplot as plotting backend
From: Alexander Rieder <alexanderrieder () gmail ! com>
Date: 2014-03-19 22:49:26
Message-ID: E1WQPIc-0000al-Lj () scm ! kde ! org
[Download RAW message or body]
Git commit 07de393c85271303ad546eed85e16bc202fa1de3 by Alexander Rieder.
Committed on 19/03/2014 at 22:39.
Pushed by arieder into branch 'master'.
force octave to use gnuplot as plotting backend
In the latest releases of octave it stopped using gnuplot as the default pl=
otting backend,
but the new plotting backend doesn't support to generate a file without sho=
wing the plotter window.
So to retain this the cantor feature of being able to show the plot output =
in the cantor window it's needed to set the graphics_toolkit explicitly.
Patch by Maximiliano Curia, thanks.
REVIEW: 116630
(cherry picked from commit 79e08c35f6caa3e1f57531a918bb397cdf0bfde5)
M +2 -0 src/backends/octave/octavesession.cpp
http://commits.kde.org/cantor/07de393c85271303ad546eed85e16bc202fa1de3
diff --git a/src/backends/octave/octavesession.cpp b/src/backends/octave/oc=
tavesession.cpp
index ebb156a..e7fa54a 100644
--- a/src/backends/octave/octavesession.cpp
+++ b/src/backends/octave/octavesession.cpp
@@ -70,6 +70,8 @@ void OctaveSession::login()
{
// Do not show the popup when plotting, rather only print to a file
args << "--eval";
+ args << "graphics_toolkit gnuplot;";
+ args << "--eval";
args << "set (0, \"defaultfigurevisible\",\"off\");";
}
else
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic