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
f58764d8
Commit
f58764d8
authored
7 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
make consequential use of axis names.
previous commits: use wx, wy, wh in setting ticks and tacks
parent
8b099039
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pub/plot/ps_plotter.cpp
+17
-16
17 additions, 16 deletions
pub/plot/ps_plotter.cpp
with
17 additions
and
16 deletions
pub/plot/ps_plotter.cpp
+
17
−
16
View file @
f58764d8
...
...
@@ -25,8 +25,8 @@ using boost::format;
namespace
{
string
ps_ticktack
(
const
vector
<
double
>&
Tacks
,
const
int
ntpt
,
const
double
*
ticklim
,
const
CAxis
*
A
);
string
ps_coord
(
const
CAxis
*
A
,
const
char
a
);
string
ps_axis
(
const
CAxis
*
A
,
const
char
a
);
string
ps_coord
(
const
CAxis
*
A
);
string
ps_axis
(
const
CAxis
*
A
);
string
ps_horiz
(
const
string
&
label
);
string
ps_verti
(
const
string
&
label
);
string
ps_colorscale
(
const
string
&
label
);
...
...
@@ -50,11 +50,11 @@ void CPS_Plotter::start_frame1D(
ps_snum
=
0
;
ps_Doc
=
""
;
ps_accu
=
"
\n
%% output created by "
+
caller
+
"
\n\n
"
;
ps_accu
+=
ps_coord
(
X
,
'x'
);
ps_accu
+=
ps_coord
(
Y
,
'y'
);
ps_accu
+=
ps_coord
(
X
);
ps_accu
+=
ps_coord
(
Y
);
ps_accu
+=
"
\n
"
;
ps_accu
+=
ps_axis
(
X
,
'x'
)
+
ps_horiz
(
xlabel
);
ps_accu
+=
ps_axis
(
Y
,
'y'
)
+
ps_verti
(
ylabel
);
ps_accu
+=
ps_axis
(
X
)
+
ps_horiz
(
xlabel
);
ps_accu
+=
ps_axis
(
Y
)
+
ps_verti
(
ylabel
);
ps_accu
+=
"
\n
"
;
}
...
...
@@ -68,9 +68,9 @@ void CPS_Plotter::start_frame2D(
ps_snum
=
0
;
ps_Doc
=
""
;
ps_accu
=
"
\n
%% output created by "
+
caller
+
"
\n\n
"
;
ps_accu
+=
ps_coord
(
X
,
'x'
);
ps_accu
+=
ps_coord
(
Z
,
'y'
);
ps_accu
+=
ps_coord
(
Y
,
'h'
);
ps_accu
+=
ps_coord
(
X
);
ps_accu
+=
ps_coord
(
Z
);
ps_accu
+=
ps_coord
(
Y
);
ps_accu
+=
"
\n
"
;
}
...
...
@@ -81,9 +81,9 @@ void CPS_Plotter::close_frame2D(
ps_accu
+=
"/linsetTic {white 1 setline} def
\n
"
;
ps_accu
+=
"/linsetTac {white 1.3 setline} def
\n\n
"
;
ps_accu
+=
ps_axis
(
X
,
'x'
)
+
ps_horiz
(
xlabel
);
ps_accu
+=
ps_axis
(
Z
,
'y'
)
+
ps_verti
(
zlabel
);
ps_accu
+=
ps_axis
(
Y
,
'h'
)
+
ps_colorscale
(
ylabel
);
ps_accu
+=
ps_axis
(
X
)
+
ps_horiz
(
xlabel
);
ps_accu
+=
ps_axis
(
Z
)
+
ps_verti
(
zlabel
);
ps_accu
+=
ps_axis
(
Y
)
+
ps_colorscale
(
ylabel
);
}
void
CPS_Plotter
::
add_spec
(
...
...
@@ -190,18 +190,19 @@ namespace {
return
ret
;
}
string
ps_coord
(
const
CAxis
*
A
,
const
char
a
)
string
ps_coord
(
const
CAxis
*
A
)
{
return
str
(
format
(
"%1i %12.4g %12.4g %cSetCoord
\n
"
)
%
A
->
logflag
%
A
->
inf
%
A
->
sup
%
a
);
return
str
(
format
(
"%1i %12.4g %12.4g %cSetCoord
\n
"
)
%
A
->
logflag
%
A
->
inf
%
A
->
sup
%
A
->
name
);
}
string
ps_axis
(
const
CAxis
*
A
,
const
char
a
)
string
ps_axis
(
const
CAxis
*
A
)
{
string
ret
;
int
ntpt
;
double
ticklim
[
2
];
vector
<
double
>
Tacks
;
ret
+=
"% "
+
string
(
1
,
a
)
+
" axis:
\n
"
;
ret
+=
"% "
+
A
->
name
+
" axis:
\n
"
;
if
(
A
->
logflag
&&
A
->
inf
<=
0
)
throw
"BUG: log incompatible with limits "
+
A
->
str
();
A
->
calc_ticks
(
Tacks
,
&
ntpt
,
ticklim
);
...
...
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