Skip to content

Commit

Permalink
iegraph: have user options always supersede defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
kbjarkefur committed Aug 8, 2023
1 parent c725b39 commit f4ac0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ado_files/iegraph.ado
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ cap program drop iegraph
grayPicker `tmtGroupCount' `graphCount'
}

local tmtGroupBars `"`tmtGroupBars' (bar mean position if position == `tmtGroupCount', `baroptions' color("`r(color)'") lcolor(black) ) "'
local tmtGroupBars `"`tmtGroupBars' (bar mean position if position == `tmtGroupCount', color("`r(color)'") lcolor(black) `baroptions' ) "'

************
*Create labels etc. for this group
Expand Down

1 comment on commit f4ac0a1

@kbjarkefur
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means the bar option can include the option color() twice, but then it is the last one that supersedes the first one. So by setting the user provided options in `baroptions' last, those take precedence.

Please sign in to comment.