Menu

#234 Correlation plot to respect labels set via setinfo

None
closed
nobody
None
4
2026-02-04
2026-02-04
No

Description

Currently, when generating a correlation plot using the corr command with the
--plot=display option, the plot does not respect the custom labels provided via the setinfo command. For example:

set verbose off
open denmark.gdt --quiet

setinfo LRM --graph-name="M"
setinfo LRY --graph-name="Y"

corr dataset --plot=display --triangle --quiet

In this case, the correlation plot should display the labels "M" and "Y" (as set using setinfo) instead of the variable names LRM and LRY. However, the plot currently ignores these custom labels.

Proposed Feature

Update the correlation plot functionality to respect the labels set via the setinfo command. Specifically:
- When --plot=display is used, the plot should display the custom labels (if provided) instead of the default variable names.
- If no custom labels are set, the default behavior (using variable names) should remain unchanged.

Benefits

  • Improves the clarity and customization of correlation plots, especially for presentations or reports.
  • Aligns the behavior of the correlation plot with other plot types that respect setinfo labels.

Best
Artur

Discussion

  • Sven Schreiber

    Sven Schreiber - 2026-02-04

    Isn't this basically the same issue as in https://sourceforge.net/p/gretl/bugs/324/ ?
    (BTW, there was some (off-ticket) discussion about the other behavior, with the bottom line that perhaps stuff is more subtle as to what is wanted with those "graph-name" things.)

     
    • Artur Tarassow

      Artur Tarassow - 2026-02-04

      Oh, you're totally right, @svetosch. I'll close this ticket

       
  • Artur Tarassow

    Artur Tarassow - 2026-02-04
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.