forked from gnuplot/gnuplot-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUGS
188 lines (156 loc) · 6.71 KB
/
BUGS
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
1. The hidden line algorithm is not perfect. We have put in an option
to draw both sides of the surface in the same linetype, thus avoiding
this problem completely. We should put in an option of not drawing
the back at all.
2. In the Atari version, windows are not currently supported. This
means gnuplot 3.4 will not run with MultiAES. We hope to correct
this shortly in gpcontrb.tar.z.
[Status of this bug: unknown]
3. autoscale writeback is probably broken. One problem is that
the range is written back before the range is extented to a
whole number of tics. eg if data is 0.9->10.1, that is what
gets written back, but the plot is 0 -> 11. If autoscale
is switched off, you do get 0.9->10.1 since switching off
autoscale switches off the extend-to-tic-multiple stuff.
Also, writeback with log scales writes back the log of the min/max
[Status: unknown]
4. m[]tics bug when plotting time data
There is an initialization problem when plotting time data with an
interval calculation; an inordinate number of m[]tics are automatically
drawn, e.g.,
set xdata time; set ydata time
set timefmt "%d/%m"
set format x "%b %d"
set xrange ["01/12":"06/12"]
set xtics "01/12", 172800, "05/12"
plot x
The problem can be avoided by initializing via a plot before the
interval calculation:
[...]
set xrange ["01/12":"06/12"]
plot x
set xtics "01/12", 172800, "05/12"
plot x
5. "\n" does not work in the format for the tics in splot
6. Error bars don't work in polar plots
7. arrows and labels are not clipped (2D and 3D)
8. contour line clipping of 3D data plots
The following tips for plotting contours were kindly supplied by Don Taber
<dtaber@blackrat.risc.rockwell.com> and Paul Halsema <phalsema@harris.com>.
Splotting gives little control over the appearance of contour lines.
You can do a better job by extracting the contours with the table
terminal and then plotting the resulting file. You should 'set
nosurface' to eliminate the surface isolines from the file generated
by the table terminal.
All the contours will be written to a single file. To plot them with
different line styles, you can use one of several approaches. The
simplest is to use the 'index' feature. This has the advantage of
using only gnuplot internals. Other approaches use a utility
such as sed, awk, or perl to either break up the file or generate
a more sophisticated command file for plotting it.
The following gnuplot script extracts circular contours from a
paraboloid of revolution and plots the resulting file. It then
uses 'index' to provide different linestyles. Finally, it runs
an awk script to generate a command file for plotting the file.
set cntrparam levels discrete 20, 40, 60
set contour base
set nosurface
splot x**2 + y**2
set term table
set output 'circles'
replot
set term linux # or whatever your original term was
set output
plot 'circles' # all one linestyle
plot 'circles' index 0 t '20', 'circles' index 1 t '40', 'circles' index 2 t '60' # different linestyles
!awk -f contr.awk circles > circles.gnu
load 'circles.gnu'
Where the gawk script (contr.awk) contains the following:
#!/usr/bin/nawk -f
# ^---Replace with your favorite variant
# courtesy of Paul Halsema (phalsema@harris.com)
# and Emmanuel Bigler <bigler@jsbach.univ-fcomte.fr>
#
# This script operates on a file generated by a gnuplot splot command with
# a table terminal type. The output should be redirected to another file
# which can then be loaded into gnuplot. This results in a contour plot
# that is more appealing for presentation purposes. Providing the optional
# parameter n will put a label on the contour at every nth point.
#
# Sample usage (in gnuplot):
# !nawk -f contr.awk -v n=12 circles > circles.gnu
# load 'circles.gnu'
#
# If you make this script executable and place it somewhere in your path,
# then it can be called directly as in:
#
# !nawk -f contr.awk -v n=12 circles > circles.gnu
# load 'circles.gnu'
BEGIN {
fmt1="%s \\\n index %d title '%s'";
fmt2="%s, \\\n '' index %d title '%s'";
# Add any gnuplot commands that you always want performed here
print "set key out";
print "set key title '" FILENAME "'";
print "set data style lines";
print
# End of general commands section
pltcmd="plot '"FILENAME"'";
}
{
# Generate a fragment of the plot command for each contour
if ($2=="Contour")
{
split($3,indx,",");
titl=$5;
if ($3=="0,") { pltcmd=sprintf(fmt1, pltcmd, indx[1], titl); }
else { pltcmd=sprintf(fmt2, pltcmd, indx[1], titl); }
}
# Add labels at every nth point along a contour
if( (n!=0) && ($0 !~ /^\#/) && ($0 !~ /^$/) && ((NR%n)==1))
{printf("set label '%s' at %f,%f center\n",$3,$1,$2);}
}
END {
# Write out the entire plot command
printf "\n%s\n", pltcmd;
}
9. (Not really a bug)
Terminal drivers which are accompanied by external executables
could cause some trouble: their subprocesses (started by fork() e.g.)
may inherit handles to open file(s) from the main process.
If the filesystem doesn't allow deleting open files these file are
locked for the time the terminal driver is running.
10. (Not really a bug)
There seems to be a bug in OS/2 gcc 2.7.2x (emx 0.9c)
The following gnuplot commands demonstrate a bug in gcc's optimiser
on OS/2. The workaround is to use "-O2 -ffloat-store" instead of "-O2".
reset
set key
set xlabel "Year"
set xdata time
set timefmt "%y%m%d"
set format x "%y"
set xrange ["900621" : "950126"]
set ylabel "Price per $100 principal"
plot '-' using 1:2 title 'Fitted IO' with lines 1
900621 20
950126 55
e
11. compiling help file with Visual C++ 4.0/Windows NT
The help compiler is unable to compile gnuplot.rtf, possibly because
it cannot handle the new RTF spec. There is no workaround, but
VC++ 5.0/6.0 users should have no problems.
12. The 16bit Windows version, compiled by Borland C++ 3.1, crashes with
a protection violation in 'all.dem', on the first plot that tries
to read a datafile. Heap corruption suspected.
14. In pcl5 mode, the hpgl driver prints a spurious "DI,1DI,0" string in the
upper left corner of the plot.
(Moved from old WhatsNew file, needs cleaning up)
BUGS outstanding
illegal trailing tab on fig output
minor tics missing on HPUX ?
terminal settings get propagated when terminal is changed (now fixed ?)
set ?range [] writeback is broken for logscales.
source file copyrights are out of date - what should go on new files ?
to be documented - ms-windows cannot do wide, dashed lines (well, win32 can,
but...)