Ask Your Question
0

Graphs from inside a function

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

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
1

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

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

Comments

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 -0500 )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

Stats

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

Seen: 65 times

Last updated: Sep 05 '12