def qqplot_2samples(data1, data2, xlabel=None, ylabel=None, line=None, ax=None):
 check_data1 = isinstance(data1, ProbPlot)
 check_data2 = isinstance(data2, ProbPlot)
 if ((not check_data1) and (not check_data2)):
  data1 = ProbPlot(data1)
  data2 = ProbPlot(data2)
 fig = data1.qqplot(xlabel=xlabel, ylabel=ylabel, line=line, other=data2, ax=ax)
 return fig

def qqplot_2samples ( data1 , data2 , xlabel = None , ylabel = None , line = None , ax = None ) : check_data1 = isinstance ( data1 , ProbPlot ) check_data2 = isinstance ( data2 , ProbPlot ) if ( ( not check_data1 ) and ( not check_data2 ) ) : data1 = ProbPlot ( data1 ) data2 = ProbPlot ( data2 ) fig = data1 . qqplot ( xlabel = xlabel , ylabel = ylabel , line = line , other = data2 , ax = ax ) return fig
q-q plot of two samples quantiles .