If the graphic is in-line with text, the paragraph setting for the heading of keep with next combined with keep lines together for the following text will work.
Having the heading (keep with next) followed by the graphic and accompanying text in a two-cell table set to not wrap/split should also work.
Tables