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
b1f0ee3d
Commit
b1f0ee3d
authored
8 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
three new definitions in wups suffice to enable 2D plots
parent
4c165d61
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pub/lib/special.cpp
+1
-1
1 addition, 1 deletion
pub/lib/special.cpp
pub/share/wups11a.ps
+39
-1
39 additions, 1 deletion
pub/share/wups11a.ps
with
40 additions
and
2 deletions
pub/lib/special.cpp
+
1
−
1
View file @
b1f0ee3d
...
...
@@ -151,7 +151,7 @@ void NSpecial::export_p2d(bool allow_overwrite)
const
CSpec
*
s
=
f
->
VS
(
j
);
vector
<
double
>
xlim
=
triv
::
histogram_limits
(
s
->
x
);
for
(
size_t
i
=
0
;
i
<
s
->
size
();
++
i
)
ofs
<<
(
format
(
"%13.7g wx %13.7g wx %13.7g wy %13.7g wy %13.7g wh
p
2d
\n
"
)
ofs
<<
(
format
(
"%13.7g wx %13.7g wx %13.7g wy %13.7g wy %13.7g wh
t
2d
\n
"
)
%
xlim
[
i
]
%
xlim
[
i
+
1
]
%
zlim
[
j
]
%
zlim
[
j
+
1
]
%
s
->
y
[
i
]
);
ofs
<<
"
\n
"
;
}
...
...
This diff is collapsed.
Click to expand it.
pub/share/wups11a.ps
+
39
−
1
View file @
b1f0ee3d
...
...
@@ -171,6 +171,20 @@ WuGdict11a begin
wyd
}
bind
def
}
def
/hSetCoord
{
% log min max | -
/whmax
x
def
/whmin
x
def
/whlog
x
0
eq
not
def
% prepare conversion world coord -> frame coord
/whdel
whmax
whmin
whlog
{
div
log
}
{
sub
}
ifelse
def
/whd
{
% dx(world) | dx(frame)
whlog
{
log
}
if
whdel
div
10
mul
}
bind
def
/wh
{
% x(world) | x(frame)
whmin
whlog
{
div
}
{
sub
}
ifelse
whd
}
bind
def
}
def
% pair conversion
/wxy
{
% x,y(world) -> x,y(frame)
...
...
@@ -1244,6 +1258,16 @@ WuGdict11a begin
}
def
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 2D plots %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/t2d
{
icCol
{
fill
}
execRectangle3
black
}
def
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% List %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
@@ -1413,7 +1437,21 @@ WuGdict11a begin
grestore
grestore
}
def
/execRectangle2
{
% xl xh yl yh {proc} | -
/execRectangle3
{
% xl xh yl yh {proc} | -
5
1
roll
gsave
ym
/qqyh
x
def
ym
/qqyl
x
def
xm
/qqxh
x
def
xm
/qqxl
x
def
np
qqxl
qqyl
mv
qqxh
qqyl
li
qqxh
qqyh
li
qqxl
qqyh
li
cp
exec
grestore
}
def
/execRectangle2
{
% xl xh yl yh {proc} | - OBSOLETE, BOGUS (duplicate xm|ym operations)
5
1
roll
gsave
ym
/qqyh
x
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