Data visualization with SAS programming

remove border around greplay output

Reply
N/A
Posts: 0

remove border around greplay output

How do I remove the black line (ie border) from my greplay output (ie many gplots)?
The border extends above my greplay output and to the right of my greplay output.
"goptions noborder" doesn't remove the border.
I added color=yellow to proc greplay. This created a yellow line over the black line (ie border).

goptions xpixels=800 ypixels=1200;
goptions display;
goptions noborder;
title;footnote;
proc greplay tc=tempcat nofs igout=work.gseg;
tdef rdpgrid
0/llx = 0 lly = 0
ulx = 0 uly =100
urx =100 ury =100
lrx =100 lry = 0
color=yellow
1/llx =1.0 lly = 76
ulx =1.0 uly = 89
urx =49.5 ury = 89
lrx =49.5 lry = 76
2/llx =50.5 lly = 76
ulx =50.5 uly = 89
urx =79.5 ury = 89
lrx =79.5 lry = 76
3/llx =1.0 lly = 61
ulx =1.0 uly = 74
urx =19.5 ury = 74
lrx =19.5 lry = 61
4/llx =20.5 lly = 61
ulx =20.5 uly = 74
urx =39.5 ury = 74
lrx =39.5 lry = 61
5/llx =40.5 lly = 61
ulx =40.5 uly = 74
urx =79.5 ury = 74
lrx =79.5 lry = 61
6/llx =1.0 lly = 46
ulx =1.0 uly = 59
urx =19.5 ury = 59
lrx =19.5 lry = 46
7/llx =20.5 lly = 46
ulx =20.5 uly = 59
urx =39.5 ury = 59
lrx =39.5 lry = 46
8/llx =40.5 lly = 46
ulx =40.5 uly = 59
urx =59.5 ury = 59
lrx =59.5 lry = 46
9/llx =60.5 lly = 46
ulx =60.5 uly = 59
urx =79.5 ury = 59
lrx =79.5 lry = 46
10/llx =1.0 lly = 31
ulx =1.0 uly = 44
urx =19.5 ury = 44
lrx =19.5 lry = 31
11/llx =20.5 lly = 31
ulx =20.5 uly = 44
urx =39.5 ury = 44
lrx =39.5 lry = 31
12/llx =40.0 lly = 31
ulx =40.0 uly = 44
urx =59.5 ury = 44
lrx =59.5 lry = 31
13/llx =60.5 lly = 31
ulx =60.5 uly = 44
urx =79.5 ury = 44
lrx =79.5 lry = 31
14/llx =1.0 lly = 16
ulx =1.0 uly = 29
urx =19.5 ury = 29
lrx =19.5 lry = 16
15/llx =20.5 lly = 16
ulx =20.5 uly = 29
urx =39.5 ury = 29
lrx =39.5 lry = 16
16/llx =40.0 lly = 16
ulx =40.0 uly = 29
urx =59.5 ury = 29
lrx =59.5 lry = 16
17/llx =60.5 lly = 16
ulx =60.5 uly = 29
urx =79.5 ury = 29
lrx =79.5 lry = 16
18/llx =1.0 lly = 1
ulx =1.0 uly = 14
urx =19.5 ury = 14
lrx =19.5 lry = 1
19/llx =20.5 lly = 1
ulx =20.5 uly = 14
urx =39.5 ury = 14
lrx =39.5 lry = 1
20/llx =40.5 lly = 1
ulx =40.5 uly = 14
urx =59.5 ury = 14
lrx =59.5 lry = 1
21/llx =60.5 lly = 1
ulx =60.5 uly = 14
urx =79.0 ury = 14
lrx =79.0 lry = 1
;
run;
template = rdpgrid;
treplay
0:titles
1Smiley Tonguelot1 2Smiley Tonguelot2
3Smiley Tonguelot3 4Smiley Tonguelot4 5Smiley Tonguelot5
6Smiley Tonguelot6 7Smiley Tonguelot7 8Smiley Tonguelot8 9Smiley Tonguelot9
10Smiley Tonguelot10 11Smiley Tonguelot11 12Smiley Tonguelot12 13Smiley Tonguelot13
14Smiley Tonguelot14 15Smiley Tonguelot15 16Smiley Tonguelot16 17Smiley Tonguelot17
18Smiley Tonguelot18 19Smiley Tonguelot19 20Smiley Tonguelot20 21Smiley Tonguelot21
des='' name="line";
run;
quit;
SAS Employee
Posts: 963

Re: remove border around greplay output

I'm a little fuzzy on the ~exact details, in varying situations, but I think typically if you specify "goptions noborder" before you create the individual graphs/grsegs, and then don't specify any color= when you create the greplay template, then there won't be any borders drawn around the areas in your final greplay graph.

Is it possible that when you created the original grsegs you had the "goptions border" turned on, and you're still re-using those grsegs?

If you were in the same sas session, and changed to "goptions noborder", and re-generated your graphs (without deleting the previous grsegs), then the new ones would automatically add an incremented number to the grsegs, and since your greplay was using the old grseg names it would still get the old ones with the border around them. (Just one possible scenario...)

If this doesn't fix the problem, could you perhaps create a small/simple example to post up (the complete code, generating the graph, and the greplay template, etc)?
N/A
Posts: 0

Re: remove border around greplay output

tagsets.tableeditor appears to be causing the black line.
After I removed tableeditor the black line went away.
When I was running my code in 9.1 tagsets.tableeditor did not cause a black line, but in 9.2 I started seeing the black line.

However, I'm still seeing the yellow border.
The yellow line first appeared when I tried this code below. I tried commenting out "color=yellow" and re-started SAS. Even when I change color=green I still only see the yellow border.

proc greplay tc=tempcat nofs igout=work.gseg;
tdef rdpgrid des='BUs'
0/llx = 0 lly = 0
ulx = 0 uly =100
urx =100 ury =100
lrx =100 lry = 0
/*color=yellow*/

I put the following code near the top of my code, but it doesn't seem to help with the yellow border:
proc greplay igout=work.gseg nofs;
delete _all_;
run;quit;
SAS Super FREQ
Posts: 8,643

Re: remove border around greplay output

Hi:
It was my understanding that TAGSETS.TABLEEDITOR takes your HTML output and then uses embedded JavaScript to send the HTML output to Excel. So, in the transformation and changes between HTML, JavaScript and Excel, I'm not sure where your particular issue is happening.

Your best bet may be to work with Tech Support on this issue. They can look at all your code (including the ODS invocation for TAGSETS.TABLEEDITOR) and run tests in SAS 9.1.3 and SAS 9.2. If adjustments are needed to TAGSETS.TABLEDITOR for SAS 9.2, then Tech Support can work on making that happen.

cynthia
Post a Question
Discussion Stats
  • 3 replies
  • 502 views
  • 0 likes
  • 3 in conversation