-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot_initial
More file actions
30 lines (23 loc) · 747 Bytes
/
plot_initial
File metadata and controls
30 lines (23 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This gnuplot script plots the results from the coursework assignment.
# It is assumed that the data to be plotted are in a file called
# initial.dat which contains 3 columns: x,y,u
# The plot is sent to a PNG file called initial.png
# To use this file copy it to the directory/folder containing
# initial.dat and run the command:
# gnuplot plot_initial
# Send output to a PNG file
set terminal png enhanced
# Set the name of the output file
set output "initial.png"
# Set ranges and labels for axes
set xrange [0:30.0]
set yrange [0:30.0]
set xlabel "x"
set ylabel "y"
# Enforce an aspect ratio of 1
set size square
# Set the range of the colour scale
set cbrange [0:1]
# Plot the data
plot "initial.dat" with image
# End of file