BookmarkSubscribeRSS Feed
tc
Lapis Lazuli | Level 10 tc
Lapis Lazuli | Level 10

memorialday2026.png

 

* SAS ODS Graphics: Memorial Day 2026
  SPLINE plot of outline points extracted by ChatGPT from a Google search image (stock.adobe.com/search?k=soldier+silhouette+salute&asset_id=219425596)
  PROMPT:  can you generate a csv file with the x/y coordinates of an outline of the soldier saluting in an image
  CHATGPT: Please upload the image of the soldier saluting that you want traced. Once you upload it, I can extract the outline and generate a CSV file containing the x/y coordinates.
  CHATGPT: The outline coordinates have been extracted and saved as a CSV file.;
                                * Get x/y points of soldier outline from ChatGPT-generated .csv file;
proc import datafile='~/soldier_salute_outline_coordinates.csv' out=soldier replace;  
                                * Use SPLINE to plot a smooth outline (white on black background);
ods graphics / reset height=5in width=5in antialias imagefmt=svg noborder; 
proc sgplot data=soldier nowall pad=0 noautolegend;
styleattrs backcolor=black;
inset 'MEMORIAL DAY 2026' / position=bottom textattrs=(color=white size=24pt);  
spline x=x y=y / lineattrs=(thickness=4pt color=white);
xaxis display=none values=(0 1000);
yaxis display=none values=(0 1000) reverse;
run;

 

INPUT DATA (X/Y TRACE POINTS CREATED BY CHATGPT)

chatgptoutput.png

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore 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
  • 0 replies
  • 129 views
  • 2 likes
  • 1 in conversation