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>

Привет, gnuplot отображает меня Терминальный набор типа к 'неизвестному'.
И если я ввожу следующую команду.

gnuplot> plot "./MergePlot.dat" with linespoint

Ничего не происходит.

1
задан 30 December 2015 в 00:21

2 ответа

Вы определенно неправильно поняли , как использовать gnuplot.
Вы не сказали gnuplot, что это должно вывести на печать.

И на что должен быть похожим вывод.

читает руководство. Иначе никто не поможет Вам, если Вы не прочитали руководство. http://people.duke.edu/~hpgavin/gnuplot.html

Иначе, вот пример, как рабочий график был бы похож как команды.

#SET TERMINAL
set term svg
set output 'temp-verlauf.svg'
set title "Temperaturverlauf"

#Axes label
set xlabel "Messzeitpunkt"
set ylabel "Luftfeuchte/Temperatur"
set y2label "Luftdruck"

#Axis setup
set xdata time # x-Achse wird im Datums/Zeitformat skaliert
set timefmt "%d.%m.%Y\t%H:%M:%S" # Format Zeitangaben yyyy.mm.dd_hh:mm:ss
set format x "%H:%M" # Format für die Achsenbeschriftung


#Axis ranges
set yrange [0:60] # die y-Achse geht von:bis

#Tics
set ytics nomirror
set y2tics nomirror

#OTHER
set datafile separator "\t"
set xrange ["06.11.2014 14:00:00":"07.11.2014   21:00:00"]

plot \
"file.dat" every 10 using 1:5 title "Luftfeuchte" with lines, \
"file.dat" every 10 using 1:6 title "Temperatur" with lines, \
"file.dat" every 10 using 1:7 title "Luftdruck" with lines axes x1y2, \
"file.dat" every 10 using 1:17 title "Niederschlagsintensitaet Synop (4677)" with lines
2
ответ дан 3 December 2019 в 06:40

Установка корректного терминала

Ошибка Вы находите средства, что gnuplot не распознает допустимый терминал. Необходимо установить допустимый. Для знания списка доступных, можно спросить от командной строки gnuplot

gnuplot> set terminal 

И это ответит чем-то как

Available terminal types:
       cairolatex  LaTeX picture environment using graphicx package 
                   and Cairo backend
           canvas  HTML Canvas object
              cgm  Computer Graphics Metafile
          context  ConTeXt with MetaFun (for PDF documents)
            corel  EPS format for CorelDRAW
             dumb  ascii art for anything that prints text

              ...  Many linees  ...

              gif  GIF images using libgd and TrueType fonts
             gpic  GPIC -- Produce graphs in groff using the 

              ...  Other linees  ...

Для каждого из них можно спросить к самому gnuplot для получения дополнительной информации, например, с help terminal gif.

Затем можно просто установить терминал, если Вы имеете, пробуют немой, это прекрасно.

gnuplot> set terminal dumb
gnuplot> plot 0.5*sin(x/2)  lt 0, cos(x/2)



    1 ++---------------+---------------####---------------+---------------++
      +                +             ##  + ##          0.5*sin(x/2) +....+ +
  0.8 ++                            #        #             cos(x/2) ######++
      |                            #          #                            |
  0.6 ++                          #            #                          ++
      |++++++                    #              #+++++++                   |
  0.4 ++    +++                 #             ++ #     +++                ++
      #       +++               #           ++   #        ++               #
  0.2 +#        ++            ##          ++      ##        +             #+
    0 +#          ++          #          ++        #         ++           #+
      | #          ++        #         ++           #         ++         # |
 -0.2 ++ #           +      #         ++             #          ++      # ++
      |  ##           ++    #       ++               #           +++   ##  |
 -0.4 ++   #            +++#      ++                  #            +++#   ++
      |     #             #+++++++                     #             #+++++|
 -0.6 ++    #             #                            #             #    ++
      |      ##         ##                              ##         ##      |
 -0.8 ++      #        #                                  #        #      ++
      +        ##    ###                 +                ###    ##        +
   -1 ++---------#####-+-----------------+----------------+-#####---------++
     -10              -5                 0                5                10

Если у Вас нет возможности использовать терминал, от которого "Вы видите" (wxt,qt,x11,aqua...), используйте графический формат и сохраните вывод на внешнем файле. Таким образом Вы создадите файл в каталоге, из которого Вы выполняете gnuplot.

set terminal png enhanced truecolor    # ... whatever ...
  set output 'tempfile.png'            # you need to redirect to a file the output 
    plot 0.5*sin(x/2)  lt 0, cos(x/2)  # your plot commands     
    # replot # it should be cosy if you are not doing multiplot 
  set out                              # restore the output redirection
set terminal GNUTERM                   # restore the default terminal

Примечание:
Вы, возможно, должны установить различные пакеты -qt,-nox,-x11 иметь различные функции (OP просто сделал это) или скомпилировать собой для добавления других.

3
ответ дан 3 December 2019 в 06:40

Другие вопросы по тегам:

Похожие вопросы: