Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frida
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coenen, Joachim
Frida
Commits
934af047
Commit
934af047
authored
8 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
start modification of gp, gf. Aim: enable appending.
parent
1412fa27
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
pub/lib/commands.cpp
+9
-7
9 additions, 7 deletions
pub/lib/commands.cpp
pub/plot/dualplot.cpp
+2
-1
2 additions, 1 deletion
pub/plot/dualplot.cpp
pub/plot/dualplot.hpp
+2
-2
2 additions, 2 deletions
pub/plot/dualplot.hpp
pub/share/g3.ps
+1
-1
1 addition, 1 deletion
pub/share/g3.ps
with
14 additions
and
11 deletions
pub/lib/commands.cpp
+
9
−
7
View file @
934af047
...
@@ -303,9 +303,8 @@ bool frida_command(string cmd)
...
@@ -303,9 +303,8 @@ bool frida_command(string cmd)
" gd graphic dialog (feed commands to gnuplot)
\n
"
" gd graphic dialog (feed commands to gnuplot)
\n
"
"Save for print:
\n
"
"Save for print:
\n
"
" gp plot to complete .ps file
\n
"
" gp plot to complete .ps file
\n
"
" gP ditto, no automatic file name
\n
"
" gf plot to short .psX file
\n
"
" gf plot to short .psX file
\n
"
" g
F ditto, no automatic file nam
e
\n
"
" g
fa append plot to existing .ps or .psa fil
e
\n
"
"Change window:
\n
"
"Change window:
\n
"
" gw list of plot windows
\n
"
" gw list of plot windows
\n
"
" g<n> switch to plot window <n>
\n
"
" g<n> switch to plot window <n>
\n
"
...
@@ -351,15 +350,18 @@ bool frida_command(string cmd)
...
@@ -351,15 +350,18 @@ bool frida_command(string cmd)
SPloWin
::
instance
()
->
current
()
->
refine
=
bask
(
SPloWin
::
instance
()
->
current
()
->
refine
=
bask
(
"Allow iterative refinement for curve plotting"
,
"Allow iterative refinement for curve plotting"
,
SPloWin
::
instance
()
->
current
()
->
refine
);
SPloWin
::
instance
()
->
current
()
->
refine
);
}
else
if
(
cmd
==
"gp"
||
cmd
==
"gP"
||
cmd
==
"gf"
||
cmd
==
"g
F
"
)
{
}
else
if
(
cmd
==
"gp"
||
cmd
==
"gf"
||
cmd
==
"g
fa
"
)
{
string
ps_outdir
=
CNode
::
eval
(
"psdir"
)
->
to_s
();
string
ps_outdir
=
CNode
::
eval
(
"psdir"
)
->
to_s
();
string
ps_head
=
CNode
::
eval
(
"pshead"
)
->
to_s
();
string
ps_head
=
CNode
::
eval
(
"pshead"
)
->
to_s
();
string
ps_dict
=
(
cmd
==
"gp"
||
cmd
==
"gP"
)
?
CNode
::
eval
(
"psdict"
)
->
to_s
()
:
""
;
string
ps_dict
=
(
cmd
==
"gp"
)
?
CNode
::
eval
(
"psdict"
)
->
to_s
()
:
""
;
string
fname
=
"
&auto
"
;
static
string
fname
=
""
;
if
(
cmd
==
"gP"
||
cmd
=
=
"g
F
"
)
if
(
cmd
!
=
"g
fa
"
)
fname
=
sask
(
"Graphic file name (without extension)"
);
fname
=
sask
(
"Graphic file name (without extension)"
);
else
fname
=
sask
(
"Graphic file name"
,
fname
);
if
(
fname
!=
""
)
if
(
fname
!=
""
)
SPloWin
::
instance
()
->
current
()
->
write_postscript
(
fname
,
ps_outdir
,
ps_head
,
ps_dict
);
SPloWin
::
instance
()
->
current
()
->
write_postscript
(
cmd
==
"gfa"
,
fname
,
ps_outdir
,
ps_head
,
ps_dict
);
}
else
if
(
cmd
==
"gw"
)
{
}
else
if
(
cmd
==
"gw"
)
{
SPloWin
::
instance
()
->
display_list
();
SPloWin
::
instance
()
->
display_list
();
}
else
if
(
sscanf
(
cmd
.
c_str
(),
"g%i"
,
&
i
)
==
1
)
{
}
else
if
(
sscanf
(
cmd
.
c_str
(),
"g%i"
,
&
i
)
==
1
)
{
...
...
This diff is collapsed.
Click to expand it.
pub/plot/dualplot.cpp
+
2
−
1
View file @
934af047
...
@@ -317,7 +317,8 @@ void CPlot::doc_CvTxLine(const string& line, int num)
...
@@ -317,7 +317,8 @@ void CPlot::doc_CvTxLine(const string& line, int num)
//! Write buffered plot to postscript file.
//! Write buffered plot to postscript file.
void
CPlot
::
write_postscript
(
void
CPlot
::
write_postscript
(
const
string
&
fname
,
const
string
&
ps_outdir
,
const
string
&
ps_head
,
const
string
&
ps_dict
)
const
bool
append
,
const
string
&
fname
,
const
string
&
ps_outdir
,
const
string
&
ps_head
,
const
string
&
ps_dict
)
{
{
// construct output file name:
// construct output file name:
string
ext
=
string
(
"."
)
+
(
ps_dict
==
""
?
"psa"
:
"ps"
);
string
ext
=
string
(
"."
)
+
(
ps_dict
==
""
?
"psa"
:
"ps"
);
...
...
This diff is collapsed.
Click to expand it.
pub/plot/dualplot.hpp
+
2
−
2
View file @
934af047
...
@@ -40,8 +40,8 @@ public:
...
@@ -40,8 +40,8 @@ public:
void
doc_PtTxLine
(
const
std
::
string
&
line
,
int
num
);
void
doc_PtTxLine
(
const
std
::
string
&
line
,
int
num
);
void
doc_CvTxLine
(
const
std
::
string
&
line
,
int
num
);
void
doc_CvTxLine
(
const
std
::
string
&
line
,
int
num
);
void
write_postscript
(
void
write_postscript
(
const
std
::
string
&
fname
,
const
std
::
string
&
ps_outdir
,
const
std
::
string
&
ps_head
,
const
bool
append
,
const
std
::
string
&
fname
,
const
std
::
string
&
ps_outdir
,
const
std
::
string
&
ps_dict
);
const
std
::
string
&
ps_head
,
const
std
::
string
&
ps_dict
);
void
set_aux
(
const
std
::
string
&
cmd
);
void
set_aux
(
const
std
::
string
&
cmd
);
std
::
string
info
()
const
;
std
::
string
info
()
const
;
...
...
This diff is collapsed.
Click to expand it.
pub/share/g3.ps
+
1
−
1
View file @
934af047
...
@@ -11,7 +11,7 @@ iFrame 0 eq
...
@@ -11,7 +11,7 @@ iFrame 0 eq
10
dup
autolabel
defsiz
10
dup
autolabel
defsiz
1
dup
geld
stdred
1
dup
geld
stdred
2
-11
setnewpage
newpage
2
-11
setnewpage
newpage
1
1
13
-14
setpagegrid
2
4
13
-14
setpagegrid
2
8
24
abcset
% usage: {(text)} abc
2
8
24
abcset
% usage: {(text)} abc
/EndFrame
{
nextFrame
end
}
def
/EndFrame
{
nextFrame
end
}
def
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment