Data visualization with SAS programming

Greplay rendering/antialiasing?

Reply
Contributor
Posts: 35

Greplay rendering/antialiasing?

Hello,

I’m doing a dashboard with some tables and dials to print in pdf output with greplay.

To date everything with greplay is ok and also the template works great.

The tables are printed as images.

The very bad thing is that the dials and the text, fitting images in their box, are with something similar to aliasing.

Is there a way to make everything smooth?

This happens when the template resize the image.

The original images are very smooth png with dpi=300.

 

Any helps/suggestions with the options or settings?

 

It is a problem because the customer needs a very personalized pdf exported by a stored process and the greplay works well, but the quality of the resulting image is poor.

 

thank you very much.

Super User
Posts: 13,066

Re: Greplay rendering/antialiasing?

First I would consider whether Greplay is desirable. The device based graphics greplay was designed for have many issues with different displays and this is one of them. The original graphs should be made with the idea that they will be used with replay. Which may mean changes in font sizes. line widths and resolutions and graph display area resolution.

 

Example: If your original graph is made in a square, hsize = vsize, and the display area within greplay does not have x and y differential the same then the graph will be rescaled. Meaning all lines, letters or symbols get stretched or compressed relative to the other dimension. The same thing happens if the original graph is some form of rectangle and gets displayed in a square.

 

As a minimum then height/width ratio should match the display area to be used in Greplay.

Depending on why you are using Greplay you might consider moving to either SGPanel to create graphs based on a by values or to Graph Template Language and SGrender.

 

Contributor
Posts: 35

Re: Greplay rendering/antialiasing?

Hello,

Thank for the reply.

I respected the width/height ratio, but the quality of the stretched image is poor.
I need greplay Because I have to do a report with three dial. Every dial has a table attached to it at the bottom with a colored background(foreach dial).
I created the dial with the proc gkpi and I assigned the correct ratio. The same with the tables.
The problem is that when I close the image in the replay rectangle a sort of alias happens.
I tried to make the dial with a factor of 0.5 for the dimensions and also for the labels and text, but nothing seems to take effect.
I tried with an example found on the web with some dials: they are very good quality. If I resize the box container in greplay with a 0,5 factor the image quality is lost.
Super User
Posts: 13,066

Re: Greplay rendering/antialiasing?

You might find this article helpful: https://blogs.sas.com/content/graphicallyspeaking/2016/05/13/dial-kpi-using-sgplot/

 

The options with sgplot, such as XAXISTABLE or YAXISTABLE may make the association of a data table easier.

 

Or provide data and the code you are currently using to duplicate the behavior including the gdevice you are using.

Provide data in the form of a datastep and paste all code in one or more codeboxes opened using the forum's {I} menu icon.

It might not hurt to provide the output of Proc Options so that we can see all graphics options in effect.

Contributor
Posts: 35

Re: Greplay rendering/antialiasing?

Unfortunately it is a private network/business and I cannot provide any data.

I will make a demo to understand if there is something to do.

Ask a Question
Discussion stats
  • 4 replies
  • 187 views
  • 0 likes
  • 2 in conversation