PlotHazard
To plot defined hazards.
- Plot.Plotly.PlotHazard(PlotMode=1, width=None, height=None)
Argument
Type
Description
PlotMode
int
Options with values equal to 1,2 or 3 to change the plot mode. For various Editors with one on these option plot will be activate!
width
int
Determines the width of plot
height
int
Determines the height of plot
Example:
In the following A hazard has defined and then it has been plotted.
Python Code
opr.wipe() #define Hazard Curve PGA=[i*5/1000 for i in range(1,610)] Prob=[0.0004*i**(-1.82) for i in PGA] Prob[-1]=0 opr.Hazard.Earthquake(1,'PGA',PGA,Prob) #Create Hazard Object with tag=1 that is 0th Object opr.Plot.Plotly.PlotHazard(PlotMode=1)The above command causes to plot hazard curve as shown in the following.
Code Developed by: Bijan Sayyafzadeh