Ask Your Question
0

Graphs from inside a function

asked 2012-09-05 21:48:57 +0100

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-06 00:02:22 +0100

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 13:32:39 +0100 )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 21:48:57 +0100

Seen: 240 times

Last updated: Sep 06 '12