Data visualization with SAS programming

Vector images from proc template

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 7
Accepted Solution

Vector images from proc template

So I have tried a number of ways to get a vector image from some gtl code using ODS statements.  It runs fine and creates a chart in any file format I tell it to.  The problem is the (very unhelpful) image dump into a vector file.  Emf, pdf, sasemf, wmf all render the same way: my chart as a raster image embedded in the otherwise empty vector file! :smileyangry:

So how do I get SAS9.2 to output a vector file and not a vector file with a raster image embedded in it?

System specs:

Windows 7 64-bit (fully patched).

SAS 9.2 TS Level 2M0

W32_VSPro

Thanks,

Adrian.


Accepted Solutions
Solution
‎05-21-2012 08:16 PM
SAS Super FREQ
Posts: 1,145

Re: Vector images from proc template

All SAS 9.2 ODS Graphics creates raster output.  It is exactly as you say, an image file embedded in a PDF or EMF file.  True scaled vector output is not supported at SAS 9.2.  This was addressed with SAS 9.3, where PDF, PS and EMF graphs now contain true vector graphics with following exception.

When the graph contains gradient colors or 3D plots they still contain an image.  EMF does not support transparencies.  So, for EMF, we fall back to image output if the graph contains transparent plots.   Some of these issues will be addressed in the next release.

View solution in original post


All Replies
Super User
Posts: 11,134

Re: Vector images from proc template

Might help to show how you generated your files.

Solution
‎05-21-2012 08:16 PM
SAS Super FREQ
Posts: 1,145

Re: Vector images from proc template

All SAS 9.2 ODS Graphics creates raster output.  It is exactly as you say, an image file embedded in a PDF or EMF file.  True scaled vector output is not supported at SAS 9.2.  This was addressed with SAS 9.3, where PDF, PS and EMF graphs now contain true vector graphics with following exception.

When the graph contains gradient colors or 3D plots they still contain an image.  EMF does not support transparencies.  So, for EMF, we fall back to image output if the graph contains transparent plots.   Some of these issues will be addressed in the next release.

Occasional Contributor
Posts: 7

Re: Vector images from proc template

Crap.  I was afraid of that.  My work place isn't rolling out 9.3 until summer. Smiley Sad

Nothing to do but wait.  Thanks Sanjay.


Occasional Contributor DDX
Occasional Contributor
Posts: 10

Re: Vector images from proc template

Just to clarify, there is no way to get a EMF image with transparencies in SAS 9.3?

SAS Super FREQ
Posts: 925

Re: Vector images from proc template

For SAS 9.3, no. That is because the standard EMF format does not support alpha channels. However, in SAS 9.4, we will be using the EMF Plus format, which does support alpha channels.

Occasional Contributor DDX
Occasional Contributor
Posts: 10

Re: Vector images from proc template

Thanks Dan! I really appreciate it.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 516 views
  • 2 likes
  • 5 in conversation