[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [cantor/KDE/4.13] src/backends/octave: force octave to use gnuplot as plotting backend
From: Alexander Rieder <alexanderrieder () gmail ! com>
Date: 2014-03-19 22:45:58
Message-ID: E1WQPFG-0008A8-Qq () scm ! kde ! org
[Download RAW message or body]
Git commit 79e08c35f6caa3e1f57531a918bb397cdf0bfde5 by Alexander Rieder.
Committed on 19/03/2014 at 22:39.
Pushed by arieder into branch 'KDE/4.13'.
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
M +2 -0 src/backends/octave/octavesession.cpp
http://commits.kde.org/cantor/79e08c35f6caa3e1f57531a918bb397cdf0bfde5
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