| 17 | using forge::common::getPlot; |
| 18 | |
| 19 | fg_err fg_create_plot(fg_plot *pPlot, |
| 20 | const unsigned pNPoints, const fg_dtype pType, |
| 21 | const fg_chart_type pChartType, |
| 22 | const fg_plot_type pPlotType, |
| 23 | const fg_marker_type pMarkerType) |
| 24 | { |
| 25 | try { |
| 26 | ARG_ASSERT(1, (pNPoints>0)); |
| 27 | |
| 28 | *pPlot = getHandle(new common::Plot(pNPoints, (forge::dtype)pType, pPlotType, |
| 29 | pMarkerType, pChartType)); |
| 30 | } |
| 31 | CATCHALL |
| 32 | |
| 33 | return FG_ERR_NONE; |
| 34 | } |
| 35 | |
| 36 | fg_err fg_retain_plot(fg_plot* pOut, fg_plot pIn) |
| 37 | { |