简体   繁体   中英

Octave -- Plotting from Terminal Command Line

Background:

I'm new to Octave, as of today.
I am running GNU Octave, version 4.0.2 on Ubuntu 16.04 LTS

I'm using the command-line interface at the terminal (ie, open the terminal and, type "octave").
I'm aware that there is a GUI, but I want to see if I can get this working in the terminal [such a setup is my preference in most applications]

PROBLEM:

Plots are plotted in text. As in:

基于文本的绘图

How can I get a good-looking plot in a plotting window? I genuinely haven't been able to find this information in 10 minutes of Googling...I think it should be easier than that....maybe someday this post will be the easy solution for others.

Best, -Ryan

I personally do this a lot; it looks like you have it installed in a *nix environment... Octave can produce nice looking figures through cooperation with a couple graphic toolkits, GNUPlot being the one i'm more familiar with.

Check out the documentation at: https://www.gnu.org/software/octave/doc/v4.0.1/Plotting.html

Without seeing your code we're kind of just guessing. I would try something like

figure(); 

to see if you get a fresh plot window, or try

available_graphics_toolkits()

to ensure that you actually have something installed to generate separate figures.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM