Home | History | Annotate | Download | only in BWEStandAlone

Lines Matching refs:cmd

647 bool MatlabPlot::GetPlotCmd(std::ostringstream & cmd, Engine* ep)
658 GetPlotCmd(cmd);
663 GetRefreshCmd(cmd);
674 void MatlabPlot::GetPlotCmd(std::ostringstream & cmd)
678 cmd.str(""); // (this seems to be the only way)
680 cmd << "figure; h" << _figHandle << "= plot(";
684 cmd << (*it)->GetPlotString();
691 cmd << ", ";
692 cmd << (*it)->GetPlotString();
695 cmd << "); ";
699 GetLegendCmd(cmd);
720 cmd << "axis([" << _xlim[0] << ", " << _xlim[1] << ", " << _ylim[0] << ", " << _ylim[1] << "]);";
726 cmd << "set(h" << _figHandle << "(" << i << "), 'Tag', " << (*it)->GetLegendString() << ");";
731 void MatlabPlot::GetRefreshCmd(std::ostringstream & cmd)
733 cmd.str(""); // (this seems to be the only way)
737 cmd << "h = findobj(0, 'Tag', " << (*it)->GetLegendString() << ");";
738 cmd << (*it)->GetRefreshString();
742 // GetLegendCmd(cmd);
746 void MatlabPlot::GetLegendCmd(std::ostringstream & cmd)
758 cmd << "legend(h" << _figHandle << ",{";
767 cmd << ", ";
769 cmd
773 cmd << "}, 2); "; // place legend in upper-left corner
1022 std::ostringstream cmd;
1024 if (engEvalString(ep, cmd.str().c_str()))
1031 cmd.str(""); // (this seems to be the only way)
1032 if (plot->GetPlotCmd(cmd, ep))
1039 int ret = engEvalString(ep, cmd.str().c_str());