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

Rigorous simplification of box macros. itest/p2d to generate 2D plot.

parent 005e1703
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env frida
fl grid40x20
gt+
p
gp! ~/P.ps
qui
...@@ -221,7 +221,7 @@ namespace { ...@@ -221,7 +221,7 @@ namespace {
string ps_colorscale() string ps_colorscale()
{ {
return "%TODO colorscale\n"; return "pop %TODO colorscale\n";
} }
string ps_slice_header( string ps_slice_header(
......
...@@ -690,7 +690,7 @@ WuGdict17a begin ...@@ -690,7 +690,7 @@ WuGdict17a begin
black black
} def } def
/BoxBackground { /BoxBackground {
0 0 10 10 boxit gsave setboxbackgroundcolor fill grestore 0 10 0 10 rect gsave setboxbackgroundcolor fill grestore
} def } def
/setboxbackgroundcolor { white } def /setboxbackgroundcolor { white } def
...@@ -1232,8 +1232,7 @@ WuGdict17a begin ...@@ -1232,8 +1232,7 @@ WuGdict17a begin
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/t2d { /t2d {
icCol icCol rect fill
{ fill } execRectangle3
black black
} def } def
...@@ -1338,17 +1337,19 @@ WuGdict17a begin ...@@ -1338,17 +1337,19 @@ WuGdict17a begin
%% Boxes %% Boxes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/boxLLHH { % xl yl xh yh | - %%% INCOMPATIBLE with boxit, contains cp /rect { % xl xh yl yh | - [path -> rectangle]
4 copy 8 copy ym /qqyh x def
pop pop np mv ym /qqyl x def
3 1 roll pop pop li xm /qqxh x def
li pop pop xm /qqxl x def
4 1 roll exch li pop pop np
qqxl qqyl mv
qqxh qqyl li
qqxh qqyh li
qqxl qqyh li
cp cp
} def } def
/execOval2 { % xl xh yl yh dr { proc } | - /oval { % xl xh yl yh dr | - [path -> oval]
gsave
6 1 roll
fm /qqdr x def fm /qqdr x def
ym /qqyh x def ym /qqyh x def
ym /qqyl x def ym /qqyl x def
...@@ -1363,35 +1364,7 @@ WuGdict17a begin ...@@ -1363,35 +1364,7 @@ WuGdict17a begin
qqxh qqdr sub qqyl qqdr add qqdr 0 -90 arcn qqxh qqdr sub qqyl qqdr add qqdr 0 -90 arcn
qqxl qqdr add qqyl li qqxl qqdr add qqyl li
qqxl qqdr add qqyl qqdr add qqdr -90 -180 arcn qqxl qqdr add qqyl qqdr add qqdr -90 -180 arcn
cp exec grestore cp
} def
/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
/coordRectangle { % xl xh yl yh (all in plot coords) {proc} | -
5 1 roll
gsave
/qqyh x def
/qqyl x def
/qqxh x def
/qqxl x def
np
qqxl xm qqyl ym mv
qqxh xm qqyl ym li
qqxh xm qqyh ym li
qqxl xm qqyh ym li
cp exec grestore
} def } def
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment