Announcement

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

  • -graph pie- bug

    Dear All,

    I am having a problem with the following code:

    Code:
    clear all
    version 17.0
    
    input strL c int v
          "Alpha"    100
          "Bravo"    200
          "Charlie"  300
          "Delta"    400
    end
    
    graph pie v, over(c)
    graph pie v, over(c) scale(0.5) // fails here
    
    /* end of file */

    I believe the option scale() should be permissible here, since the documentation indicates that graph pie allows std_options, which in turn includes scale(), see help graph pie.

    The option scale() is not recognized neither from the code, like in example above, nor interactively, when set via the dialog box:

    Click image for larger version

Name:	db_graph_pie.png
Views:	1
Size:	19.2 KB
ID:	1715644


    And yet the scaling factor works when set up in the overall graph settings in the Graph Editor:

    Click image for larger version

Name:	graph_editor_scaling.png
Views:	1
Size:	31.6 KB
ID:	1715645



    The specific place where it fails is somewhere deep in the graphics command parsing:

    Click image for larger version

Name:	opt_scale_fails.png
Views:	1
Size:	2.8 KB
ID:	1715646


    Is this a known issue?
    I believe scale() was working in the earlier versions of Stata for pie charts as well, and I don't see anything fundamental as to why it should not be applicable specifically to pie charts.

    Thank you, Sergiy

    PS: This is Stata 17.0 (build 170130) on MS Windows.

    PPS: What is FAKE_OPT_FOR_BETTER_MSG ?





  • #2
    UPDATE: A user with version 15.0 has contacted me to let know that the option scale() hasn't been working in Stata 15.0 either with the same symptoms, including passing the option through the dialog is non-working.
    So my recollection that this was working earlier is incorrect then. The questions on why is it not working and whether this has been subsequently fixed remain.

    Best, Sergiy



    Click image for larger version

Name:	pie_scale.png
Views:	1
Size:	31.1 KB
ID:	1718614


    Comment

    Working...
    X