KiCad PCB EDA Suite
Loading...
Searching...
No Matches
mathplot.cpp File Reference
#include <wx/window.h>
#include "wx/object.h"
#include "wx/font.h"
#include "wx/colour.h"
#include "wx/sizer.h"
#include "wx/intl.h"
#include "wx/dcclient.h"
#include "wx/cursor.h"
#include "gal/cursors.h"
#include <widgets/mathplot.h>
#include <wx/graphics.h>
#include <wx/image.h>
#include <cmath>
#include <cstdio>
#include <ctime>
#include <limits>
#include <set>

Go to the source code of this file.

Macros

#define mpLEGEND_MARGIN   5
 
#define mpLEGEND_LINEWIDTH   10
 
#define mpLN10   2.3025850929940456840179914546844
 

Functions

bool mpFiniteRange (const std::vector< double > &aValues, double &aMin, double &aMax)
 Find the smallest and largest finite value in aValues.
 

Macro Definition Documentation

◆ mpLEGEND_LINEWIDTH

#define mpLEGEND_LINEWIDTH   10

Definition at line 52 of file mathplot.cpp.

Referenced by mpInfoLegend::Plot().

◆ mpLEGEND_MARGIN

#define mpLEGEND_MARGIN   5

Definition at line 51 of file mathplot.cpp.

Referenced by mpInfoLegend::Plot().

◆ mpLN10

#define mpLN10   2.3025850929940456840179914546844

Definition at line 786 of file mathplot.cpp.

Function Documentation

◆ mpFiniteRange()

bool mpFiniteRange ( const std::vector< double > & aValues,
double & aMin,
double & aMax )

Find the smallest and largest finite value in aValues.

Non-finite samples have no position on an axis, so they are left out of the range instead of poisoning it.

Parameters
aMinreceives the smallest finite value.
aMaxreceives the largest finite value.
Returns
false if aValues holds no finite value, in which case aMin and aMax are untouched.

Definition at line 58 of file mathplot.cpp.

Referenced by mpFXYVector::SetData().