Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
pmi432 / LR02 / Books / gnuplot 4.6 manual.pdf
Скачиваний:
81
Добавлен:
18.03.2015
Размер:
2 Мб
Скачать
1 term Fourier series
100 term Fourier series

18

gnuplot 4.6

http://www.gnuplot.info

Before seeking help, please check le FAQ.pdf or the above website for

FAQ (Frequently Asked Questions) list.

If you need help as a gnuplot user, please use the newsgroup

comp.graphics.apps.gnuplot

We prefer that you read the messages through the newsgroup rather than subscribing to the mailing list which is also available and carries the same set of messages. Instructions for subscribing to gnuplot mailing lists may be found via the gnuplot development website on SourceForge

http://sourceforge.net/projects/gnuplot

The address for mailing to list members is:

gnuplot-info@lists.sourceforge.net

Bug reports and code contributions should be uploaded to the trackers at

http://sourceforge.net/projects/gnuplot/support

Please check previous bug reports if the bug you want to report has not been already xed in a newer version of gnuplot.

A mailing list for those interested in development version of gnuplot is:

gnuplot-beta@lists.sourceforge.net

When posting a question, please include full details of the gnuplot version, the terminal type, and the operating system you are using. A small script demonstrating the problem may be useful. Function plots are preferable to data le plots.

New features

This section lists major additions since version 4.4. For a more exhaustive list, see the NEWS le.

New syntax

This version of gnuplot introduces command iteration and block-structured if/else/while/do constructs. See if (p. 69), while (p. 173), and do (p. 61). Simple iteration is possible inside plot or set commands. See iteration (p. 70). General iteration spanning multiple commands is possible using a block construct as shown below. For a related new feature, see the summation (p. 30) expression type. Here is an example using several of these new syntax features:

set multiplot layout 2,2

fourier(k, x) = sin(3./2*k)/k * 2./3*cos(k*x) do for [power = 0:3] {

TERMS = 10**power

set title sprintf("%g term Fourier series",TERMS) plot 0.5 + sum [k=1:TERMS] fourier(k,x) notitle

}

unset multiplot

10 term Fourier series

1000 term Fourier series

It is now possible to select a column of data from a data le by matching a label in the rst row of the le. See columnhead (p. 27). For example

plot for [crop in "Oats Peas Beans"] 'data' using "Year":crop

gnuplot 4.6

19

Local customization of linetypes

You can now customize properties (color, linewidth, point type) of the default sequence of linetypes used in plotting. See set linetype (p. 123). This is normally done in an initialization le, either the system-widele gnuplotrc or a private le ~ /.gnuplot. See initialization (p. 38).

New plot styles

See documentation for plot styles boxplot (p. 44), circles (p. 46), ellipses (p. 47), and llsteps (p. 49).

Revised polar axes

Polar plot mode has been reworked to support additional plot styles. The polar axes can now be drawn and labeled independent of the x and y axes. See set polar (p. 142) and set rrange (p. 144).

New smoothing algorithms

New smoothing algorithms have been added for both 2- and 3-dimensional plots. smooth kdensity and smooth cumulative can be used with plot to draw smooth histograms and cumulative distribution functions. Several new smoothing kernels have been added to dgrid3d for use with splot. See smooth (p. 80) dgrid3d (p. 109).

New time/date handling

Gnuplot now tracks time to millisecond precision. Time formats have been modi ed to match this. The new built-in function time() returns the current time of day according to the system clock. Example: print the current time to msec precision

print strftime("%H:%M:%.3S %d-%b-%Y",time(0.0)) 18:15:04.253 16-Apr-2011

Statistical summary of data

The new stats command reads data from a le using the same syntax as the plot or splot commands. Rather than drawing a graph, it prints out a statistical summary of the data contained in the column[s] requested. The resulting statistics min, max, mean, standard deviation, correlation, etc. are also stored in named variables that can be used to compose or modify subsequent plotting commands. See stats (p. 171).

New or revised terminal drivers

The qt driver implements an interactive terminal on top of the Qt graphics layer. It can function either as a window in a full-featured desktop enviroment or as a full-screen application on a Qt-based embedded device. The qt terminal is new and may still have some rough edges.

Two terminal types support web-based interactive display. The HTML5 canvas terminal was introduced in version 4.4. The svg terminal has been extensively revised to include support for mousing and better incorporation of svg plots from gnuplot into larger svg/xml documents.

The canvas terminal driver produces javascript output that draws onto the HTML canvas element of a web page. It can produce either a complete web page containing a single plot, or a script that can be embedded as part of an externally generated HTML document that perhaps contains multiple plots. The embedded plots support browser-side mousing, including zoom/unzoom.

The lua terminal driver creates data intended to be further processed by a script in the lua programming language. At this point only one such lua script, gnuplot-tikz.lua, is available. It produces a TeX document

Соседние файлы в папке Books