Make Graph and Graph3D independent of parent's size