Skip to content
Snippets Groups Projects
Commit 8db9c2a9 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

restore graph dialog

parent 02386a74
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ class CPlot {
CPlot( uint _iPlot, bool _logx, bool _logy );
void gp_write( string );
void clearFrame();
void plotFrame( string xlabel, string ylabel );
void addSpec( bool as_line, int style_no,
......@@ -53,7 +54,6 @@ class CPlot {
private:
int gp_fifo;
void gp_write( string );
int gp_fno;
string gp_fnames;
......
......@@ -14,8 +14,10 @@
#include "mystd.h"
#include "olm.h"
#include "expr.h" // for NCalc
#include <ask_simple_value.h>
#include "readln.h"
#include <readln.h>
#include "dualplot.h"
#include "opr.h"
#include "edif.h"
......@@ -285,6 +287,7 @@ int main()
" gp plot to complete .ps file\n"
" gf plot to short .psX file\n"
" gw list of plot windows\n"
" gd graphic dialog (feed commands to gnuplot)\n"
" g<n> switch to plot window <n>\n"
" p plot\n"
" pp plot with new autoranges\n"
......@@ -332,6 +335,15 @@ int main()
Plots.push_back( new CPlot( nPlot++, false, false ) );
} else
throw string( "invalid graphic window number" );
} else if (cmd == "gd") { // graph dialog
string cmd;
cout << "entering mygnuplot - to leave, type q\n";
while(1) {
cmd = sask("mygnuplot> ");
if (cmd.substr(0,1)=="q")
break;
Plots[iPlot]->gp_write(cmd);
}
} else if (cmd == "p") {
NPlot::Plot( Plots[iPlot], 0);
} else if (cmd == "pp") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment