[go: up one dir, main page]

Menu

#324 Option --graph-name not always respected

v1.0_(example)
open
nobody
None
5
5 days ago
2026-01-07
No

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

Discussion

  • Riccardo "Jack" Lucchetti

    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.

     
    • Artur Tarassow

      Artur Tarassow - 2026-02-04

      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.

       
  • Allin Cottrell

    Allin Cottrell - 6 days ago

    graph-name settings are now (git and snapshots) respected when gretl produces a correlation-matrix plot.

     
    • Artur Tarassow

      Artur Tarassow - 5 days ago

      Thank you, @allin. It works great for the corr command.

      I am not pushing for this, but only documenting it here: graph-names are not supported for the xcorrgm command. Spontaneously, I would disregard it as important for that kind of plot.

      Any objections on closing the ticket?

       

Log in to post a comment.