public virtual void remove(XYPlot subplot)
 {
   if (subplot == null)
   {
     string str = " Null 'subplot' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     int num1 = -1;
     int num2 = this.subplots.size();
     for (int index = 0; num1 == -1 && index < num2; ++index)
     {
       if (this.subplots.get(index) == subplot)
         num1 = index;
     }
     if (num1 == -1)
       return;
     this.subplots.remove(num1);
     subplot.setParent((Plot) null);
     subplot.removeChangeListener((PlotChangeListener) this);
     ValueAxis domainAxis = this.getDomainAxis();
     if (domainAxis != null)
       domainAxis.configure();
     this.fireChangeEvent();
   }
 }