problem with plotting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anish Chapagain

    problem with plotting

    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
  • Eric_Dexter@msn.com

    #2
    Re: problem with plotting

    On Aug 29, 6:01 am, Anish Chapagain <anishchapag... @gmail.comwrote :
    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???

    Comment

    • Anish Chapagain

      #3
      Re: problem with plotting

      On Aug 29, 12:24 pm, "Eric_Dex...@ms n.com" <Eric_Dex...@ms n.com>
      wrote:
      On Aug 29, 6:01 am, Anish Chapagain <anishchapag... @gmail.comwrote :
      >
      >
      >
      >
      >
      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???- 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

      Comment

      Working...