Data visualization with SAS programming

Can Graph produce a pglot and a gchart within such a common file?

Accepted Solution Solved
Reply
Contributor
Posts: 22
Accepted Solution

Can Graph produce a pglot and a gchart within such a common file?

Dear All,

With Graph tools, we can produce a Gplot and a Chart seperately in 2 png files, my quesition is how can we combines these Gplot and Chart together within one file?
After explored the Help documentation and Graphics Samples Output Gallery, it seems that I need to do some work on modification of related templates, is it?

So far, this looks a bit complex for me, I come here and see if anyone can provide help, if  any advice or addtional sample codes would be very much appreciated, thank you for your time in advance!

1. a Gplot is as such:

Samples_a.png

2. another Chart is as such:

Samples_b.png

After combination, the target file should be looks like below(Note: these 2  should connected with

a shared Y axis, i.e. the field of 'Current Price' here):

Sincerely,Samples.png

Yuanbin


Accepted Solutions
Solution
‎03-15-2013 08:06 AM
SAS Employee
Posts: 963

Re: Can Graph produce a pglot and a gchart within such a common file?

To get a gchart and a gplot to appear side-by-side in the same png file, you will want to use Proc Greplay.

You can either use one of the pre-defined greplay templates, or if those templates don't position the graphs exactly the way you want them, you can create a custom template.

View solution in original post


All Replies
Solution
‎03-15-2013 08:06 AM
SAS Employee
Posts: 963

Re: Can Graph produce a pglot and a gchart within such a common file?

To get a gchart and a gplot to appear side-by-side in the same png file, you will want to use Proc Greplay.

You can either use one of the pre-defined greplay templates, or if those templates don't position the graphs exactly the way you want them, you can create a custom template.

Contributor
Posts: 22

Re: Can Graph produce a pglot and a gchart within such a common file?

Thank you very much, Robert! and I have got it, the good file was produced as below:

template.gif

After I changed the fonts with Simplified Chinese charactors, the text was shown as such:

template_CN.gif

Actually, the first picture display correctly in a seperate file as below:

k2IF1304_20130228_5Min.gif

I'm wondering what's wrong when replay in a common file and how to fix this problem? Thanks much!

Yuanbin

SAS Employee
Posts: 963

Re: Can Graph produce a pglot and a gchart within such a common file?

(tracking this down in a different thread)

Post a Question
Discussion Stats
  • 3 replies
  • 188 views
  • 0 likes
  • 2 in conversation