I was reading about convex sets and convex functions. I would like to know if there is a relation between convex functions and convex sets. Like, a function whose domain and range is a convex set is called a convex function or something on those lines. (Note: I don't know whether the above line is true or if it makes any sense. I wrote it to give an idea of what I'm expecting.) I also found a few questions and answers in this site, but they are for some specific examples. I am looking for a general relation.
Any explanation is highly appreciated. Thanks!
If $f$ is convex, then the set $\{(x,y):y>f(x), a\leq x\leq b\}$ is convex.