aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-02-26 15:23:29 +0100
committerThomas White <taw@physics.org>2018-02-27 17:12:42 +0100
commit975dd2b29dc5e11ceb59d7a0e91ad88a8a70f9c9 (patch)
tree1f52cfa88101407b970bf19d9a6c46cbdc324ce5 /src
parent28c9ef4669302897e29552df5700fd59ffca5e04 (diff)
Add current value to grid plots
Diffstat (limited to 'src')
-rw-r--r--src/post-refinement.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index bc276fa7..60810349 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -652,13 +652,15 @@ static void write_grid(Crystal *cr, const RefList *full,
fh = fopen(fn, "w");
if ( fh != NULL ) {
double v1, v2;
- fprintf(fh, "%e %e %s\n",
+ fprintf(fh, "%e %e %e %s\n",
-5.0*get_scale(par1)+get_initial_param(cr, par1),
5.0*get_scale(par1)+get_initial_param(cr, par1),
- get_label(par1));
- fprintf(fh, "%e %e %s\n",
+ get_initial_param(cr, par1),
+ get_label(par1));
+ fprintf(fh, "%e %e %e %s\n",
-5.0*get_scale(par2)+get_initial_param(cr, par2),
5.0*get_scale(par2)+get_initial_param(cr, par2),
+ get_initial_param(cr, par2),
get_label(par2));
for ( v2=-5.0; v2<=5.0; v2+=0.25 ) {
int first=1;