使用Matlab/Octave进行字符模式(外壳)图? [英] Character-mode (shell) plots with Matlab / Octave?

查看:98
本文介绍了使用Matlab/Octave进行字符模式(外壳)图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这也许是一个奇怪的问题,但是无论如何.有时,我在整个地方(大陆)的服务器或实验室计算机中使用ssh进行检查,有时甚至运行Matlab或Octave来查看最新数据等.然后,当我需要任何类型的绘图时,有趣的开始.我要么通过互联网将一大堆可能的垃圾复制到我的计算机上,然后在本地生成该图.或者,如果以前的尝试是不可行的,那么我将通过ssh和X-forwarding运行Matlab,考虑到低带宽和/或高ping情况,这是很痛苦的.

This is maybe a bit odd question, but anyway. Sometimes, I am using ssh into servers or laboratory computers all over the place (continent) in order to check stuff and sometime even run Matlab or Octave for having a look into latest data etc. Then, when I need any kind of plot, the fun begins. Either I copy a large piece of possibly junk over the internet onto my computer and generate the plot locally. Or, if the previous attempt is no option, I run Matlab through ssh and X-forwarding, which is just painful given low bandwidths and/or high pings.

实际上,我想知道是否有一种方法可以在外壳中生成1980年代的老式字符模式图,至少在带有线或点的简单图形中生成(没有X转发).拥有一个丑陋"(但很酷?)的字符模式图至少可以使我确定自己是否在看例如一条直线,一条抛物线或只是胡扯-可能会非常有用.我知道,有些东西可以由聪明的数学来确定,但是,抽象思维被高估了.

Actually, I was wondering if there is a way to generate old-fashioned 1980s-like character-mode plots, at least simple stuff with lines or dots, in a shell (without X-forwarding). Having an "ugly" (but cool?) character-mode plot would at least enable me to determine whether I am looking at e.g. a line, a parabola or just plain crap - which can be incredibly helpful. I know, some stuff can be determined by clever mathematics, but hey, abstract thinking is overrated.

编辑...另一个相关(?)标记.

Edit ... another related (?) tag.

推荐答案

在使用Octave的情况下,您应该没有问题.我通常会通过ssh在远程计算机上进行计算,并一直使用它.

In the case of Octave you should have no problem. I usually do my computations on remote machines over ssh, and use it all the time.

只要您拥有gnuplot作为图形工具包(以备将来参考,从3.6.2版开始,它仍是默认设置,但将来可能会更改为fltk),如果没有X显示,您将获得ASCII图.

As long as you have gnuplot as your graphics toolkit (for future reference, as of 3.6.2 this is still the default but may change to fltk in the future), you'll get ASCII plots if there's no X display.

要确保您具有正确的图形工具包,只需在提示符下键入graphics_toolkit.要将其更改为gnuplot,请使用graphics_toolkit gnuplot.

To make sure you have the correct graphics toolkit, just type graphics_toolkit at the prompt. To change it to gnuplot use graphics_toolkit gnuplot.

这篇关于使用Matlab/Octave进行字符模式(外壳)图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆