Plot sizing problems

danvallentyne’s solution doesnt works with % for me. I need to size the container relative to the parent. Any ideas about this?