answered 12 years ago
Use show() to display graphics from inside functions. Or you can always save the graph to a file like you mention.
show()