--- myst: substitutions: bloc1: python: 1-5,16-34,37-50,53-86 cpp: 4-9,14-27,30-38,41-71 bloc2: python: "86" cpp: "70" bloc3: python: "90" cpp: "75" --- (use_cases_macro_dataserver_draw_pp_plot)= # Macro "**dataserverDrawPPPlot.{{extension}}**" ## Objective This macro is an example of how to produce PP-plot for a certain number of randomly-drawn samples, providing the correct parameter values along with modified versions to illustrate the impact. ## Macro {{uranie}} {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/dataserver/use_cases/" + language + "/dataserverDrawPPPlot." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc1[language] + "\n" + "```" }} The macro is based on the one discussed in [](#use_cases_macro_dataserver_draw_qq_plot). The only difference is this line {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/dataserver/use_cases/" + language + "/dataserverDrawPPPlot." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc2[language] + "\n" + "```" }} The call of the drawing method above can be resume, for the first case, like this: {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/dataserver/use_cases/" + language + "/dataserverDrawPPPlot." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc3[language] + "\n" + "```" }} The first field is the attribute to be tested, while the second one provides the three hypothesis with which our attribute under investigation will be compared. The third argument is the number of steps to be computed for probabilities. The result of this macro is shown below. ## Graph {{ "```{" "figure" "} " + parent_dir + "/roottest/build/uranie/doc/dataserver/use_cases/" + language + "/dataserverDrawPPPlot.png\n" ":align: center\n" ":name: usecases_dataserverDrawPPPlot\n" + figure_scale + "\n" "\n" "Graph of the macro `\"dataserverDrawPPPlot." + extension + "\"`\n" "```" }}