mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 00:45:36 +00:00
matrix heatmap plot range fix
This commit is contained in:
parent
ed4dd14504
commit
11d9aa4747
14
lib/Plot.hpp
14
lib/Plot.hpp
@ -136,6 +136,20 @@ public:
|
|||||||
virtual ~PlotHistogram(void) = default;
|
virtual ~PlotHistogram(void) = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class PlotMatrixNoRange: public PlotObject
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
// constructor
|
||||||
|
PlotMatrixNoRange(const DMat &m);
|
||||||
|
// destructor
|
||||||
|
virtual ~PlotMatrixNoRange(void) = default;
|
||||||
|
};
|
||||||
|
|
||||||
|
#define PlotMatrix(m)\
|
||||||
|
PlotRange(Axis::x, -.5, (m).cols() - .5) <<\
|
||||||
|
PlotRange(Axis::y, (m).rows() - .5, -.5) <<\
|
||||||
|
PlotMatrixNoRange(m)
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Plot modifiers *
|
* Plot modifiers *
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user