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

Class Chart

include/fg/chart.h:316–516  ·  view source on GitHub ↗

\class Chart \brief Chart is base canvas where other plottable objects are rendered. Charts come in two types: - \ref FG_CHART_2D - Two dimensional charts - \ref FG_CHART_3D - Three dimensional charts */

Source from the content-addressed store, hash-verified

314 - \ref FG_CHART_3D - Three dimensional charts
315 */
316class Chart {
317 private:
318 fg_chart mValue;
319
320 public:
321 /**
322 Creates a Chart object with given dimensional property
323
324 \param[in] cType is chart dimension property
325 */
326 FGAPI Chart(const ChartType cType);
327
328 /**
329 Chart copy constructor
330 */
331 FGAPI Chart(const Chart& pOther);
332
333 /**
334 Chart destructor
335 */
336 FGAPI ~Chart();
337
338 /**
339 Set axes titles for the chart
340
341 \param[in] pX is x-axis title label
342 \param[in] pY is y-axis title label
343 \param[in] pZ is z-axis title label
344 */
345 FGAPI void setAxesTitles(const char* pX,
346 const char* pY,
347 const char* pZ=NULL);
348
349 /**
350 Set axes data ranges
351
352 \param[in] pXmin is x-axis minimum data value
353 \param[in] pXmax is x-axis maximum data value
354 \param[in] pYmin is y-axis minimum data value
355 \param[in] pYmax is y-axis maximum data value
356 \param[in] pZmin is z-axis minimum data value
357 \param[in] pZmax is z-axis maximum data value
358 */
359 FGAPI void setAxesLimits(const float pXmin, const float pXmax,
360 const float pYmin, const float pYmax,
361 const float pZmin=0, const float pZmax=0);
362
363 /**
364 Set the format for display of axes labels
365
366 \param[in] pXFormat sets the display format for numbers of X axis
367 \param[in] pYFormat sets the display format for numbers of Y axis
368 \param[in] pZFormat sets the display format for numbers of Z axis
369
370 Display format string follows printf style formating for numbers
371 */
372 FGAPI void setAxesLabelFormat(const char* pXFormat,
373 const char* pYFormat = "%4.1f",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected