+ // find a curve with at least one point to get base point
+ double xmin, xmax, ymin, ymax; // extent of curves in world coord
+ bool found = false;
+
+ for (unsigned int iCurve = 0; iCurve < m_vecCurves.size(); iCurve++) {
+ const EZPlotCurve* const pCurve = m_vecCurves [iCurve];
+ if (pCurve->m_iPointCount > 0) {
+ xmin = pCurve->x[0];
+ xmax = xmin;
+ ymin = pCurve->y[0];
+ ymax = ymin;
+ found = true;
+ break;
+ }
+ }
+ if (! found)
+ return; // curve(s) are empty, so no plotting
+
+ for (unsigned int iCurve = 0; iCurve < m_vecCurves.size(); iCurve++) {