Difference between revisions of "Plot solid prob band"

m (Added example image)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
''New to [[Analytica 5.2]]''
 
''New to [[Analytica 5.2]]''
  
Use this function from [OnGraphDraw]] to plot a filled color band between symmetric percentiles in a probability bands result view.  
+
Use this function from [[OnGraphDraw]] to plot a filled color band between symmetric percentiles in a probability bands result view.  
  
 
== Plot_solid_prob_band( canv, info, roles ) ==
 
== Plot_solid_prob_band( canv, info, roles ) ==
 
Fills in a solid band behind a probability bands view. To be used from the OnGraphDraw attribute. Usage:
 
Fills in a solid band behind a probability bands view. To be used from the OnGraphDraw attribute. Usage:
  
* Set "Evaluate before drawing" AND "Evaluate after axes, before data" in [[OnGraphDraw]]
+
# Set "Evaluate before drawing" AND "Evaluate after axes, before data" in [[OnGraphDraw]]
* Set the [[OnGraphDraw]] expression to:
+
# Set the [[OnGraphDraw]] expression to: <code> [[Plot_solid_prob_band]]( canv, info, roles ) </code>
<code>
+
# Select the bands view for your result.
:roleChanges := [[Plot_solid_prob_band]]( canv, info, roles )
+
# Make sure you have Key=.Probability for the pivot.
</code>
 
  
* Select the bands view for your result.
+
 
* Make sure you have Color=.Probability for the pivot.
+
Below is an example of how this function can be used. One additional step is to [[Customization of Graph Colors|change the colors]] for the Probability index so that the 5th and 95th percentile values and the 25th and 75th values are the same.
 +
 
 +
:[[File:Plot_solid_prob_band_example.png]]
  
 
== See Also ==
 
== See Also ==

Latest revision as of 22:02, 8 April 2019

New to Analytica 5.2

Use this function from OnGraphDraw to plot a filled color band between symmetric percentiles in a probability bands result view.

Plot_solid_prob_band( canv, info, roles )

Fills in a solid band behind a probability bands view. To be used from the OnGraphDraw attribute. Usage:

  1. Set "Evaluate before drawing" AND "Evaluate after axes, before data" in OnGraphDraw
  2. Set the OnGraphDraw expression to: Plot_solid_prob_band( canv, info, roles )
  3. Select the bands view for your result.
  4. Make sure you have Key=.Probability for the pivot.


Below is an example of how this function can be used. One additional step is to change the colors for the Probability index so that the 5th and 95th percentile values and the 25th and 75th values are the same.

Plot solid prob band example.png

See Also

Comments


You are not allowed to post comments.