Hey, what does figure() and show() do?

I have tried help in ipython, but I still don't understand other than my program sometimes stop when I don't use them.

Recommended Answers

All 4 Replies

where do figure() and show() come from?

They don't exist in python without imports.

What context are you using them in?

if wxpython, then Show(True) method is to show widgets and by default is True so you don't need to add it. figure()?? Not sure what it is! Which modules are you using?

I'm using scitools.all which contains numpy and plot applications..

when using help in ipython.
figure(self, *args, **kwargs) method of scitools.easyviz.gnuplot_.GnuplotBackend
instance
Create a new figure or switch between figures.
num is the figure number of the new or existing figure.

show(self) method of scitools.easyviz.gnuplot_.GnuplotBackend instance
Redraw the current figure.

context:

plot(something)
show()
figure()
plot(somethingelse)
show()
figure()
plot(anotherthing)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.