1
1
#ifndef lint
2
- static char * RCSid () { return RCSid ("$Id: datafile.c,v 1.355 2017-09-18 22:24:03 sfeam Exp $" ); }
2
+ static char * RCSid () { return RCSid ("$Id: datafile.c,v 1.356 2017-09-18 23:57:33 sfeam Exp $" ); }
3
3
#endif
4
4
5
5
/* GNUPLOT - datafile.c */
@@ -116,6 +116,7 @@ static char *RCSid() { return RCSid("$Id: datafile.c,v 1.355 2017-09-18 22:24:03
116
116
#include "misc.h"
117
117
#include "parse.h"
118
118
#include "plot.h"
119
+ #include "plot2d.h" /* For reevaluate_plot_title() */
119
120
#include "readline.h"
120
121
#include "util.h"
121
122
#include "breaders.h"
@@ -2862,7 +2863,6 @@ df_set_key_title(struct curve_points *plot)
2862
2863
&& histogram_opts .type == HT_STACKED_IN_TOWERS ) {
2863
2864
/* In this case it makes no sense to treat key titles in the usual */
2864
2865
/* way, so we assume that it is supposed to be an xtic label. */
2865
- /* FIXME EAM - This style should default to notitle! */
2866
2866
double xpos = plot -> histogram_sequence + plot -> histogram -> start ;
2867
2867
add_tic_user (& axis_array [FIRST_X_AXIS ], df_key_title , xpos , -1 );
2868
2868
free (df_key_title );
@@ -2872,15 +2872,7 @@ df_set_key_title(struct curve_points *plot)
2872
2872
2873
2873
/* What if there was already a title specified? */
2874
2874
if (df_plot_title_at ) {
2875
- struct value a ;
2876
- evaluate_inside_using = TRUE;
2877
- evaluate_at (df_plot_title_at , & a );
2878
- evaluate_inside_using = FALSE;
2879
- if (a .type == STRING ) {
2880
- free (plot -> title );
2881
- plot -> title = a .v .string_val ;
2882
- } else
2883
- int_warn (NO_CARET , "\ttitle did not evaluate to a string!?\n" );
2875
+ reevaluate_plot_title (plot );
2884
2876
return ;
2885
2877
}
2886
2878
0 commit comments