I'm fitting a model to a dataset. I have two variables I'm fitting simultaneously: the therapy, and the quantity of an endogenous protein. Call the model variables Drug and Prot. The corresponding columns in the dataset woudl be DrugObs and ProtObs. Drug and Prot are of different magnitude. I fit the model: [fitcon, simdat] = sbiofit( m1, gmidata, resmap, estpars, doses, 'UseParallel',true); If I use plot(fitcon) I get a trellis plot of data and mode for each group (that is, each subject). This is great! However, since the magnitudes are different I'd like to plot the PRED and OBS of each variable in a different plot. Also, it's useful to look at these things in both log and linear form. So is there any easy way to say plot(fitcon,'PREDVarToPlot','Drug', 'OBSVarToPlot', 'DrugObs'); % and plot(fitcon,'PREDVarToPlot','Prot', 'OBSVarToPlot', 'ProtObs'); % and also plot(fitcon,'PREDVarToPlot','Drug', 'OBSVarToPlot', 'DrugObs',YScale,'log'); % and plot(fitcon,'PREDVarToPlot','Prot', 'OBSVarToPlot', 'ProtObs',YScale,'log'); % I can do this by going into the plot but its tedious: fh = gcf; fhc = fh.Children nfhc = numel(fhc) for i = 1:nfhc test the specific figure child to see if its an axes or a legend if axes get axes children fhcc = fhc(i).Childen % These are lines fhcc(1).Visible = 'off' % This is one way. Any way to delete the line completely? fhcc(3).Visible = 'off' % fhcc([1 3]) are two of the four plotted variables corresponding to etiher drug, or protein. Could be fhcc([2 4]) elseif legend castr = fhc(i).String castr = castr([2 4]) end Another approach would be to allow the second variable to be plotted using a different (right hand) yscale. I've not tried this in script, but as I understand it I'd have to loop through current axes and create a new Child axes with YAxisLocation = 'right'. Not sure then how I would transfer one set of variables (Drug and DrugObs or Prot and ProtObs) to that new axis. Again, it would be ideal if there was an ability to say: plot(fitcon, 'LeftAxis', 'Drug','RightAxis','Prot'); Are there any easy ways to do this, or must I create a script function? Thanks!