problems with ipython, plot script and show()

Is this possible within one script, or do I have to split it

    > into several shorter ones ?

Can you not just create two separate figures in your script

    figure()
    plot_your_spectras()
    figure()
    do_your_calibration()
    show()

The following functions might be useful to you in one way or another.

    fig = figure(num) - create figure num
    close(num) - close figure(num)
    cla() - clear the crrent axes
    clf() - clear the current figure
    hold(True|False) - modify the current hold strate
    ishold() - inspect the current hold state

I do not understand exactly your problem -- hope this helps.

JDH

Thanks John,

figure() is in fact that what I need.

thx

Werner

···

On Wed, 10 Aug 2005 16:25:52 +0200, John Hunter <jdhunter@...4...> wrote:

    > Is this possible within one script, or do I have to split it
    > into several shorter ones ?

Can you not just create two separate figures in your script

    figure()
    plot_your_spectras()
    figure()
    do_your_calibration()
    show()

The following functions might be useful to you in one way or another.

    fig = figure(num) - create figure num
    close(num) - close figure(num)
    cla() - clear the crrent axes
    clf() - clear the current figure
    hold(True|False) - modify the current hold strate
    ishold() - inspect the current hold state

I do not understand exactly your problem -- hope this helps.

JDH