简体   繁体   English

Octave——从终端命令行绘图

[英]Octave -- Plotting from Terminal Command Line

Background:背景:

I'm new to Octave, as of today.从今天起,我是 Octave 的新手。
I am running GNU Octave, version 4.0.2 on Ubuntu 16.04 LTS我在 Ubuntu 16.04 LTS 上运行 GNU Octave,版本 4.0.2

I'm using the command-line interface at the terminal (ie, open the terminal and, type "octave").我在终端使用命令行界面(即,打开终端并输入“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]我知道有一个 GUI,但我想看看我是否可以在终端中使用它 [这样的设置是我在大多数应用程序中的偏好]

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.我真的无法在 10 分钟的谷歌搜索中找到这些信息......我认为它应该比那更容易......也许有一天这篇文章将成为其他人的简单解决方案。

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.看起来您已将它安装在 *nix 环境中... Octave 可以通过与几个图形工具包合作生成漂亮的图形,GNUPlot 是我更熟悉的一个。

Check out the documentation at: https://www.gnu.org/software/octave/doc/v4.0.1/Plotting.html查看文档: 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.以确保您确实安装了一些东西来生成单独的数字。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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