1 |
jlec 13/05/22 14:40:29 |
2 |
|
3 |
Added: numbat-0.999-gnuplot.patch |
4 |
Log: |
5 |
sci-chemistry/numbat: Add fix for gnuplot |
6 |
|
7 |
(Portage version: 2.2.0_alpha176/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sci-chemistry/numbat/files/numbat-0.999-gnuplot.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/numbat/files/numbat-0.999-gnuplot.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/numbat/files/numbat-0.999-gnuplot.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: numbat-0.999-gnuplot.patch |
16 |
=================================================================== |
17 |
src/error_analysis.c | 20 ++++++++++---------- |
18 |
1 file changed, 10 insertions(+), 10 deletions(-) |
19 |
|
20 |
diff --git a/src/error_analysis.c b/src/error_analysis.c |
21 |
index eb86a6f..c0edf5f 100644 |
22 |
--- a/src/error_analysis.c |
23 |
+++ b/src/error_analysis.c |
24 |
@@ -848,11 +848,11 @@ void write_sanson_mac(FILE * F, char * name_plot, char * name_world, int number_ |
25 |
} |
26 |
|
27 |
fprintf(F, "reset\n"); |
28 |
- fprintf(F, "set noxtics\n"); |
29 |
- fprintf(F, "set noytics\n"); |
30 |
+ fprintf(F, "unset xtics\n"); |
31 |
+ fprintf(F, "unset ytics\n"); |
32 |
fprintf(F, "set angles degrees\n"); |
33 |
- fprintf(F, "set nogrid\n"); |
34 |
- fprintf(F, "set noborder\n"); |
35 |
+ fprintf(F, "unset grid\n"); |
36 |
+ fprintf(F, "unset border\n"); |
37 |
//fprintf(F, "width=40\n"); |
38 |
//fprintf(F, "height=width*(3./4.)\n"); |
39 |
//fprintf(F, "set xrange [-width : width]\n"); |
40 |
@@ -867,12 +867,12 @@ void write_sanson_mac(FILE * F, char * name_plot, char * name_world, int number_ |
41 |
fprintf(F, "YC(lat,lon)=(lon-long0)*cos(lat)\n"); |
42 |
fprintf(F, "plot '%s' using (YC($2,$1)):(XC($2,$1)) t '' with lines lw 0.1 lt -1", name_world); |
43 |
for(i = 0; i < number_of_tensor; i++){ |
44 |
- fprintf(F, ", '%s' using (YC($%d,$%d)):(XC($%d,$%d)) t '' with points %d", name_plot, |
45 |
- 6*i+2, 6*i+1, 6*i+2, 6*i+1, 3*i+1); |
46 |
- fprintf(F, ", '%s' using (YC($%d,$%d)):(XC($%d,$%d)) t '' with points %d", name_plot, |
47 |
- 6*i+4, 6*i+3, 6*i+4, 6*i+3, 3*i+2); |
48 |
- fprintf(F, ", '%s' using (YC($%d,$%d)):(XC($%d,$%d)) t '' with points %d", name_plot, |
49 |
- 6*i+6, 6*i+5, 6*i+6, 6*i+5, 3*i+3); |
50 |
+ fprintf(F, ", '%s' using (YC($%d,$%d)):(XC($%d,$%d)) t '' with points", name_plot, |
51 |
+ 6*i+2, 6*i+1, 6*i+2, 6*i+1); |
52 |
+ fprintf(F, ", '%s' using (YC($%d,$%d)):(XC($%d,$%d)) t '' with points", name_plot, |
53 |
+ 6*i+4, 6*i+3, 6*i+4, 6*i+3); |
54 |
+ fprintf(F, ", '%s' using (YC($%d,$%d)):(XC($%d,$%d)) t '' with points", name_plot, |
55 |
+ 6*i+6, 6*i+5, 6*i+6, 6*i+5); |
56 |
} |
57 |
fprintf(F, "\n"); |
58 |
//fprintf(F, "pause 2\n"); |