Ask Your Question

Graphs from inside a function

asked 2012-09-05 14:48:57 -0600

neji49 gravatar image

I'm trying to write a script to graph, and when I run graphing commands inside a function, it doesn't display them. Is there a way to do this? Or can I redirect the graph to a folder and display that?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-09-05 17:02:22 -0600

Jason Grout gravatar image

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

edit flag offensive delete link more


you can use show(), save('/my/favorite/folder/for/graphs/graph1.png'), return graph object from the function and have another function show it.

MaelstromYamato gravatar imageMaelstromYamato ( 2012-09-06 06:32:39 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-09-05 14:48:57 -0600

Seen: 85 times

Last updated: Sep 05 '12