Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error including hyphen in graph legend text

    This seems to be a bug, but I am unable to include a hyphen (to indicate a numerical range) in a legend label, e.g.
    stcurve , cif at1(cfs14=1) at2(cfs14=2) at3(cfs14=3) at4(cfs14=4) ///
    tit("") name("crr_cfs14", replace) ///
    xtit("ICU Hours") xlab(0(72)288) ///
    ytit("Cumulative Discharge from ICU") ///
    lp(solid solid solid solid) ///
    lc(purple green orange red) ///
    leg(order(1 "CFS:1-2" 2 "CFS:3-4" 3 "CFS:5-6" 4 "CFS:7-8") ///
    col(2) size(small) ring(0) pos(4) symx(*.5))
    Returns:
    2" 2 "CFS:3 invalid name
    r(198);
    If I remove, or replace the hyphen with any other alpha-numeric char, there is no issue.

    Any advice would be appreciated!
    Mark

    PS: Stata/MP8 16.1, Windows 10 Pro 64 v20H2, Xeon W-2145
    Last edited by Mark Finnis; 25 Nov 2020, 23:43.

  • #2
    Seems like stcurve *! version 6.7.7 12nov2020 need to be fixed. Report this issue to [email protected]

    (you might have an older version of stcurve to use, or someone reading the statalist might propose fixes)

    Comment


    • #3
      I just updated my Stata installation and I can replicate this. Prior to updating, the issue did not occur. As a workaround, you can replace "-" in the code with

      Code:
      `=ustrunescape("\u2010")'
      Also, as suggested by Bjarte, report the issue to Tech Support.

      Comment


      • #4
        Fixed in update 03dec2020.

        Comment

        Working...
        X