The PyXPlot logo

PyXPlot

Examples: Other Applications of PyXPlot

Download
.ppl
562
.eps
189K
.png
28K

The arrows plotting style

Graphical output from PyXPlot

Script

set multiplot
set nodisplay
width = 10
set width width
set size square
set fontsize 2
set nokey

# Plot 0 (left)
set xlabel 'x'
set ylabel 'y'
plot [-10.9:10.9][-10.9:10.9] \
 'example11.dat' i 0 u 1:2:($1+$3):($2+$4) w arrows, \
 4*sin(x/10.9*pi):4*cos(x/10.9*pi) u 2:3 w lt 2 col black

# Plot 1 (right)
set origin width, 0
set ylabel 'linkaxis 0'
set key bottom right
plot [-10.9:10.9] \
 'example11.dat' i 1 t '' with arrows, \
 'example11.dat' i 1 t 'Before correction' u 1:2 w p, \
 'example11.dat' i 1 t 'After  correction' u 3:4 w p

set display
refresh

Notes

Here, we show two possible applications of the arrows plot style. In the left panel, we plot a map of fluid flow around a vortex core, the dotted circle showing the outline of the vortex core. The source for this is a datafile mapping fluid velocity as a function of position. In the right panel, we show a series of datapoints before and after some correction factor is applied to them, showing how the data are moved in the process.