problem with plotting

A

Anish Chapagain

hi,
I'm getting problem with the code below which after displaying graph
plotted in external window, doesnot closes itself, even after closing
the window of plotting the main python window shows processing.
code goes like this...

plot(col1, col2, linewidth=1.0)
xlabel('col1')
ylabel('col2')
title('Values from List created with file read')
grid(True)
savefig('col1 col2.pdf')
show()


is there any other function to be called after show() to close it
properly.

thank's for any help.

anish
 
E

Eric_Dexter

hi,
I'm getting problem with the code below which after displaying graph
plotted in external window, doesnot closes itself, even after closing
the window of plotting the main python window shows processing.
code goes like this...

plot(col1, col2, linewidth=1.0)
xlabel('col1')
ylabel('col2')
title('Values from List created with file read')
grid(True)
savefig('col1 col2.pdf')
show()

is there any other function to be called after show() to close it
properly.

thank's for any help.

anish

what library/system are you using???
 
A

Anish Chapagain

what library/system are you using???- Hide quoted text -

- Show quoted text -



Hi..
am using pylab

and have added the
print "plotting finished"
after show() which get's printed in python main window but then
doesnot return to prompt and have to kill the window again.

regard's#
anish
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,145
Latest member
web3PRAgeency
Top