Hi Jonas,
You can create the graph at first and then rename the long name of the graph window. For example:
grname$= page.longname$+" "+wks.name$;
plotxy iy:=(1,3) plot:=200 color:=1 ogl:=[grname$]1!;
page.label$ = grname$;
Hope it helps.
Regards,
Yuki
OriginLab