MCPcopy Create free account
hub / github.com/arrayfire/forge / fg_create_plot

Function fg_create_plot

src/api/c/plot.cpp:19–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using forge::common::getPlot;
18
19fg_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
36fg_err fg_retain_plot(fg_plot* pOut, fg_plot pIn)
37{

Callers 1

PlotMethod · 0.85

Calls 1

getHandleFunction · 0.85

Tested by

no test coverage detected