BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
tanyuanbin
Calcite | Level 5

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

1 ACCEPTED SOLUTION

Accepted Solutions
GraphGuy
Meteorite | Level 14

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

3 REPLIES 3
GraphGuy
Meteorite | Level 14

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.

tanyuanbin
Calcite | Level 5

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

GraphGuy
Meteorite | Level 14

(tracking this down in a different thread)

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1308 views
  • 0 likes
  • 2 in conversation