afreechart/src/main/java/org/afree/chart/plot/CombinedDomainXYPlot.java
/**
     * Removes a subplot from the combined chart and sends a
     * {@link PlotChangeEvent} to all registered listeners.
     *
     * @param subplot  the subplot (<code>null</code> not permitted).
     */
Removes a subplot from the combined chart and sends a
PlotChangeEvent to all registered listeners.

@param subplot  the subplot (null not permitted).
Removes a subplot from the combined chart and sends a PlotChangeEvent to all registered listeners . @param subplot the subplot ( null not permitted ) .
public void remove(XYPlot subplot) {
        if (subplot == null) {
            throw new IllegalArgumentException(" Null 'subplot' argument.");
        }
        int position = -1;
        int size = this.subplots.size();
        int i = 0;
        while (position == -1 && i < size) {
            if (this.subplots.get(i) == subplot) {
                position = i;
            }
            i++;
        }
        if (position != -1) {
            this.subplots.remove(position);
            subplot.setParent(null);
            subplot.removeChangeListener(this);
            ValueAxis domain = getDomainAxis();
            if (domain != null) {
                domain.configure();
            }
            fireChangeEvent();
        }
    }
public void remove ( XYPlot subplot ) { if ( subplot == null ) { throw new IllegalArgumentException ( " Null 'subplot' argument." ) ; } int position = - 1 ; int size = this . subplots . size ( ) ; int i = 0 ; while ( position == - 1 && i < size ) { if ( this . subplots . get ( i ) == subplot ) { position = i ; } i ++ ; } if ( position != - 1 ) { this . subplots . remove ( position ) ; subplot . setParent ( null ) ; subplot . removeChangeListener ( this ) ; ValueAxis domain = getDomainAxis ( ) ; if ( domain != null ) { domain . configure ( ) ; } fireChangeEvent ( ) ; } }
Removes a subplot from the combined chart and sends a
 {@link PlotChangeEvent} to all registered listeners.
Removes a subplot from the combined chart and sends a { @link PlotChangeEvent } to all registered listeners .