zoukankan      html  css  js  c++  java
  • Linux: Xshell don't connect parrot problem || and use gnuplot

    Content

    Xx_Why

    Today,I be free and at leisure,play with Xshell connect parrot,shit,not success!

    Ax_Solve

    one->start ssh service

    service ssh start
    

    two->close firewall

    service iptables stop
    
    chkconfig iptables off
    

    Next,connect

    Oh,my god,too fuck luck.

    Bx_What is Gnuplot?

    Gnuplot is a portable command-line driven graphing utility for Linux, OS/2, MS Windows, OSX, VMS, and many other platforms.

    Cx_Tell the truth,I don't care,I neet to play it.

    Above all install it

    apt install gnuplot
    

    Configure environment variables

    vi /etc/profile.d/gnuplot.sh
    export GNUTERM=dumb
    export GNUPLOT=/public/software/gnuplot
    export PATH=/public/software/gnuplot/bin:$PATH
    export MANPATH=/public/software/gnuplot/share/man/man1:$MANPATH
    wq
    

    Start up environment

    source /etc/profile.d/gnuplot.sh
    

    Test runing

    gnuplot
    


    yeah,success start

    wow~
    great!

    What's fun

    vi a.plt
    set pm3d 
    set view 0,0 
    unset ztics 
    set isosamples 200,200 
    splot x**2+y**2 w pm3d
    set term post color
    set output ‘a.ps’
    replot
    wq
    gnuplot
    load 'a.plt'
    

    vi b.plt
    # set terminal pngcairo  transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 
    # set output 'surface2.1.png'
    set bar 1.000000 front
    set style circle radius graph 0.02, first 0.00000, 0.00000 
    set style ellipse size graph 0.05, 0.03, first 0.00000 angle 0 units xy
    set dummy u, v
    set key bmargin center horizontal Right noreverse enhanced autotitle nobox
    set style textbox transparent margins  1.0,  1.0 border
    unset logscale
    set parametric
    set view 45, 50, 1, 1
    set isosamples 50, 10
    set hidden3d back offset 1 trianglepattern 3 undefined 1 altdiagonal bentover
    set style data lines
    set ztics  norangelimit -1.00000,0.25,1.00000
    unset paxis 1 tics
    unset paxis 2 tics
    unset paxis 3 tics
    unset paxis 4 tics
    unset paxis 5 tics
    unset paxis 6 tics
    unset paxis 7 tics
    set title "Parametric Sphere" 
    set urange [ -1.57080 : 1.57080 ] noreverse nowriteback
    set vrange [ 0.00000 : 6.28319 ] noreverse nowriteback
    set paxis 1 range [ * : * ] noreverse nowriteback
    set paxis 2 range [ * : * ] noreverse nowriteback
    set paxis 3 range [ * : * ] noreverse nowriteback
    set paxis 4 range [ * : * ] noreverse nowriteback
    set paxis 5 range [ * : * ] noreverse nowriteback
    set paxis 6 range [ * : * ] noreverse nowriteback
    set paxis 7 range [ * : * ] noreverse nowriteback
    set colorbox vertical origin screen 0.9, 0.2, 0 size screen 0.05, 0.6, 0 front  noinvert bdefault
    splot cos(u)*cos(v),cos(u)*sin(v),sin(u)
    wq
    gnuplot
    load 'b.plt'
    

    Oh~,universe,This is UFO??miraculous


    Now,We are Create one data text

    vi data.txt
    1990 33 45 18
    1991 35 42 19
    1992 34 44 14
    1993 47 15 30
    1994 41 14 32
    1995 42 20 35
    
    gnuplot
    plot "data.txt" using 2 title "Red" with histograms, "" using 3 title "Green" with histograms, "" using 4 title "Blue" with histograms
    

    # bar1
    set style fill solid
    set palette rgbformulae 7,5,15
    plot "data.txt" using 2 title "A" w histograms palette frac 0.1, "" u 3 t "B" w histograms palette frac 0.5, "" u 4 t "C" w histograms palette frac 0.9
     
    # bar3
    set style fill solid
    set palette rgbformulae 3,11,6
    plot "data.txt" using 2 title "a" w histograms palette frac 0.1, "" u 3 t "b" w histograms palette frac 0.5, "" u 4 t "c" w histograms palette frac 0.9
     
    # bar3
    set style fill solid
    set palette rgbformulae 33,13,10
    plot "data.txt" using 2 title "a" w histograms palette frac 0.1, "" u 3 t "b" w histograms palette frac 0.5, "" u 4 t "c" w histograms palette frac 0.9
    



    # display years
    set style fill solid
    set palette rgbformulae 7,5,15
    plot "data.txt" using 2:xtic(1) title "A" w histograms palette frac 0.1, "" u 3 t "B" w histograms palette frac 0.5, "" u 4 t "C" w histograms palette frac 0.9
    

    End——by enomothem

  • 相关阅读:
    关于动态规划的问题494_LEETCODE_TARGET_SUM
    Python 关于二叉树生成、先序遍历、中序遍历、后序遍历、反转
    关于python引入文件路径的解决办法
    git一些笔记
    迪克斯特拉 算法(算最短距离)
    Python多线程编程中daemon属性的作用
    types.MethodType实例绑定方法
    Python之__getitem__、__getattr__、__setitem__ 、__setitem__ 的区别
    jenkins自动打包ios、安卓
    python socket编程tcp/udp俩连接
  • 原文地址:https://www.cnblogs.com/enomothem/p/12772789.html
Copyright © 2011-2022 走看看