Quantcast

Getting plots from command line

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Getting plots from command line

Gökhan Sever
Hello,

I am wondering if there is a way to get plots showing up on the screen from command line. Say my script has a simple plot in a test script (test.m)

If I run it via

octave test.m

I do not get any plot window.

However within the Octave shell, if I do

run test.m

brings the window as expected.

So, is there a setting to get plotting windows straight from the command line instead of running a script from within Octave shell?


Thanks.

--
Gökhan
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Getting plots from command line

andy buckle



On 5 March 2013 19:58, Gökhan Sever <[hidden email]> wrote:
Hello,

I am wondering if there is a way to get plots showing up on the screen from command line. Say my script has a simple plot in a test script (test.m)

If I run it via

octave test.m

I do not get any plot window.

However within the Octave shell, if I do

run test.m

brings the window as expected.

So, is there a setting to get plotting windows straight from the command line instead of running a script from within Octave shell?


Thanks.

--
Gökhan

____________

http://wiki.octave.org/FAQ#When_I_try_plotting_from_a_script.2C_why_am_I_not_seeing_anything.3F

--
/* andy buckle */

_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Getting plots from command line

Gökhan Sever
Ahaa, pause. Thanks for the tip.

On Tue, Mar 5, 2013 at 1:03 PM, Andy Buckle <[hidden email]> wrote:



On 5 March 2013 19:58, Gökhan Sever <[hidden email]> wrote:
Hello,

I am wondering if there is a way to get plots showing up on the screen from command line. Say my script has a simple plot in a test script (test.m)

If I run it via

octave test.m

I do not get any plot window.

However within the Octave shell, if I do

run test.m

brings the window as expected.

So, is there a setting to get plotting windows straight from the command line instead of running a script from within Octave shell?


Thanks.

--
Gökhan

____________

http://wiki.octave.org/FAQ#When_I_try_plotting_from_a_script.2C_why_am_I_not_seeing_anything.3F

--
/* andy buckle */



--
Gökhan
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Getting plots from command line

Gökhan Sever
I run scripts from within GVIM by hitting F6. 

Have this mapping in vimrc:

map <F6> :w<CR>:!run-octave -q % <CR>

Now, if I can add a "pause" at the end of each script automatically before running, this would save me a lot of extra typing.

Is there any vim/sed/awk trick out there that would do this for me?

Thanks.


On Tue, Mar 5, 2013 at 1:07 PM, Gökhan Sever <[hidden email]> wrote:
Ahaa, pause. Thanks for the tip.


On Tue, Mar 5, 2013 at 1:03 PM, Andy Buckle <[hidden email]> wrote:



On 5 March 2013 19:58, Gökhan Sever <[hidden email]> wrote:
Hello,

I am wondering if there is a way to get plots showing up on the screen from command line. Say my script has a simple plot in a test script (test.m)

If I run it via

octave test.m

I do not get any plot window.

However within the Octave shell, if I do

run test.m

brings the window as expected.

So, is there a setting to get plotting windows straight from the command line instead of running a script from within Octave shell?


Thanks.

--
Gökhan

____________

http://wiki.octave.org/FAQ#When_I_try_plotting_from_a_script.2C_why_am_I_not_seeing_anything.3F

--
/* andy buckle */



--
Gökhan



--
Gökhan

_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Getting plots from command line

Gökhan Sever
Hello,

I have a solution posted here for my request:

http://stackoverflow.com/questions/15241201/appending-a-line-at-the-end-of-a-file/

On Tue, Mar 5, 2013 at 1:14 PM, Gökhan Sever <[hidden email]> wrote:
I run scripts from within GVIM by hitting F6. 

Have this mapping in vimrc:

map <F6> :w<CR>:!run-octave -q % <CR>

Now, if I can add a "pause" at the end of each script automatically before running, this would save me a lot of extra typing.

Is there any vim/sed/awk trick out there that would do this for me?

Thanks.


On Tue, Mar 5, 2013 at 1:07 PM, Gökhan Sever <[hidden email]> wrote:
Ahaa, pause. Thanks for the tip.


On Tue, Mar 5, 2013 at 1:03 PM, Andy Buckle <[hidden email]> wrote:



On 5 March 2013 19:58, Gökhan Sever <[hidden email]> wrote:
Hello,

I am wondering if there is a way to get plots showing up on the screen from command line. Say my script has a simple plot in a test script (test.m)

If I run it via

octave test.m

I do not get any plot window.

However within the Octave shell, if I do

run test.m

brings the window as expected.

So, is there a setting to get plotting windows straight from the command line instead of running a script from within Octave shell?


Thanks.

--
Gökhan

____________

http://wiki.octave.org/FAQ#When_I_try_plotting_from_a_script.2C_why_am_I_not_seeing_anything.3F

--
/* andy buckle */



--
Gökhan



--
Gökhan



--
Gökhan

_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Loading...