Hi,
I just found that the correlation matrix plot using the corr command does not respect the graph-name option set by the user. The same applies for the xcorrgm command while it works for corrgm.
Here is a replication script:
set verbose off
open denmark
setinfo LRM --graph-name="S1"
setinfo LRY --graph-name="S2"
list L = dataset
# Graph-name option respected
tsplots L --output=display
# Graph-name option not respected
corr L --triangle --quiet --plot=display
# Graph-name option respected
corrgm LRM --silent --plot=display
# Graph-name option not respected
xcorrgm LRM IBO --plot=display
Artur
To quote Sven: "perhaps stuff is more subtle as to what is wanted with those "graph-name" things".
In fact, we already have this in the source for xcorrgm (describe.c, lines 4282--4285), but it's #if-ed out with the comment " is this really what we want? ".
As for the corr command, the space for the variable names is rather small, so I think it's best to exempt this command from the graph-name thing, since those labels are generally longer, although one could possibly set that label to a shorter one exactly for that purpose.
This is exactly the case I often face.
I don't want to push this too hard. But if it's rather simple to make use of the labels, I would suggest to harmonize things across different plot types. There is a reason if a user sets
graph-name, I would argue.graph-name settings are now (git and snapshots) respected when gretl produces a correlation-matrix plot.
Thank you, @allin. It works great for the
corrcommand.I am not pushing for this, but only documenting it here: graph-names are not supported for the
xcorrgmcommand. Spontaneously, I would disregard it as important for that kind of plot.Any objections on closing the ticket?