First time here? Check out the FAQ!

Ask Your Question
0

Graphs from inside a function

asked 12 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 12 years ago

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.

Preview: (hide)
link

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 ( 12 years ago )

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: 12 years ago

Seen: 256 times

Last updated: Sep 06 '12