如何在ssh下打开gunplot窗口?

如何在ssh下打开gunplot窗口?

之后,是否可以在本地机器上运行并打开输出图片?这是我现在得到的结果:ssh -Y [email protected]gnuplot

$ echo $TERM
xterm-256color
$ echo $DISPLAY

$ gnuplot

        G N U P L O T
        Version 4.6 patchlevel 4    last modified 2013-10-02
        Build System: Linux x86_64

        Copyright (C) 1986-1993, 1998, 2004, 2007-2013
        Thomas Williams, Colin Kelley and many others

        gnuplot home:     http://www.gnuplot.info
        faq, bugs, etc:   type "help FAQ"
        immediate help:   type "help"  (plot window: hit 'h')

Terminal type set to 'unknown'
gnuplot> plot sin(x)
gnuplot>

什么都没有出现。如果我set terminal png,我确实得到了一些回报,但不是在打开的窗口中,如图片所示:

gnuplot> set terminal png
Terminal type set to 'png'
Options are 'nocrop font "/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf,12" fontscale 1.0 size 640,480 '
gnuplot> plot sin(x)
▒PNG

IHDR▒,▒2PLTE▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒@▒▒Ai▒▒▒ ▒@▒▒▒0`▒▒@▒▒▒▒▒ԥ**▒▒@▒▒333MMMfff▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒22▒▒▒▒U▒▒▒▒▒݂▒▒▒▒▒▒▒▒▒d▒"▒".▒W▒▒p▒͇▒▒▒▒▒▒▒▒▒▒▒P▒▒▒▒E▒▒r▒z▒挽▒k▒▒
                                                                      ▒▒ܠ▒ ▒▒▒▒▒ݠݐP@Uk/▒▒▒@▒@▒▒`▒▒`▒▒▒▒▒@

输出ssh:(我只是因为隐私政策而更改了部分内容)

$ ssh -Y [email protected]
WARNING : Unauthorized access to this system is forbidden and will be
prosecuted by law. By accessing this system, you agree that your actions
may be monitored if unauthorized usage is suspected.

   ***DO NOT RUN RESOURCE-INTENSIVE PROCESSES ON THE SHELL SERVERS***
foo@bar's password:
=======================================================

Linux vm-bar.com 3.13.0-61-generic #100-Ubuntu SMP Wed Jul 29 11:21:34 UTC 2015 x86_64
Last login: Wed Oct 28 19:33:23 2015 from **.**.**.**
$

相关内容