mirror of
				https://github.com/aportelli/LatAnalyze.git
				synced 2025-11-04 08:04:32 +00:00 
			
		
		
		
	matrix heatmap plot range fix
This commit is contained in:
		
							
								
								
									
										14
									
								
								lib/Plot.hpp
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								lib/Plot.hpp
									
									
									
									
									
								
							@@ -136,6 +136,20 @@ public:
 | 
			
		||||
    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                                 *
 | 
			
		||||
 ******************************************************************************/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user