<commit_before>#pragma rtGlobals=3		// Use modern global access method.


// Edit the values in the "ZOOM VALUES BLOCK" below to
// customize zoom levels.

// Many graphs in this software package provide 4 fixed zoom levels
// to cycle through (in addition to the standard Igor graph editing and
// zooming tools).

// The zoom levels are defined separately for a "tip-sample-distance"
// and a "Z piezo position" graph type. The zoom levels are designated
// 0 through 3, with usually 3 being the highest zoom.


// Function returns wave with 4 rows in this order:
// y-min; y-max; x-min; x-max
Function/WAVE GetZoom(xtype, level)
	Variable xtype, level
	
	
	Make/FREE/N=(3, 5, 4) zoom = NaN

	
	// ========
	// ZOOM VALUES BLOCK

	// Set zoom levels in a 3D wave:
	// 1D: xtype;  2D: zoom level;  3D: y-min, y-max, x-min, x-max
	// NaN = autoscale (check only "min" value)
	
	
	//          left     ;    bottom
	// TSD, lvl0
	zoom[1][0][0] = NaN; zoom[1][0][2] = NaN
	zoom[1][0][1] = NaN; zoom[1][0][3] = NaN
	// TSD, lvl1
	zoom[1][1][0] = NaN; zoom[1][1][2] = -5
	zoom[1][1][1] = NaN; zoom[1][1][3] = 80
	// TSD, lvl2
	zoom[1][2][0] = -35; zoom[1][2][2] = -5
	zoom[1][2][1] = 250; zoom[1][2][3] = 60
	// TSD, lvl3
	zoom[1][3][0] = -35; zoom[1][3][2] = -5
	zoom[1][3][1] = 150; zoom[1][3][3] = 60
	// Xsection plot zoom
	zoom[1][4][0] = -200; zoom[1][4][2] = -5
	zoom[1][4][1] = 250; zoom[1][4][3] = 120
	
	//          left     ;    bottom
	// Zp, lvl0
	zoom[2][0][0] = NaN; zoom[2][0][2] = NaN
	zoom[2][0][1] = NaN; zoom[2][0][3] = NaN
	// Zp, lvl1
	zoom[2][1][0] = NaN; zoom[2][1][2] = -5
	zoom[2][1][1] = NaN; zoom[2][1][3] = 350
	// Zp, lvl2
	zoom[2][2][0] = -40; zoom[2][2][2] = 20
	zoom[2][2][1] = 300; zoom[2][2][3] = 120
	// Zp, lvl3<commit_msg>improve comments in zoom-config<commit_after>#pragma rtGlobals=3		// Use modern global access method.


// Edit the values in the "ZOOM VALUES BLOCK" below to
// customize zoom levels.

// Many graphs in this software package provide 4 fixed zoom levels
// to cycle through (in addition to the standard Igor graph editing and
// zooming tools).

// The zoom levels are defined separately for a "tip-sample-distance"
// and a "Z piezo position" graph type. The zoom levels are designated
// 0 through 3, with usually 3 being the most zoomed in level.


// Function returns wave with 4 rows in this order:
// y-min; y-max; x-min; x-max
Function/WAVE GetZoom(xtype, level)
	Variable xtype, level
	
	
	Make/FREE/N=(3, 5, 4) zoom = NaN

	
	// ========
	// ZOOM VALUES BLOCK

	// Set zoom levels in a 3D wave:
	// 1D: xtype (tip-sample-distance vs Z-position
	// 2D: zoom level
	// 3D: y-min, y-max, x-min, x-max
	// NaN = autoscale (checks only "min" value, max is ignored)
	
	
	//          left     ;    bottom
	// TSD, lvl0
	zoom[1][0][0] = NaN; zoom[1][0][2] = NaN    // min
	zoom[1][0][1] = NaN; zoom[1][0][3] = NaN    // max
	// TSD, lvl1
	zoom[1][1][0] = NaN; zoom[1][1][2] = -5
	zoom[1][1][1] = NaN; zoom[1][1][3] = 80
	// TSD, lvl2
	zoom[1][2][0] = -35; zoom[1][2][2] = -5
	zoom[1][2][1] = 250; zoom[1][2][3] = 60
	// TSD, lvl3
	zoom[1][3][0] = -35; zoom[1][3][2] = -5
	zoom[1][3][1] = 150; zoom[1][3][3] = 60
	// Xsection plot zoom
	zoom[1][4][0] = -200; zoom[1][4][2] = -5
	zoom[1][4][1] = 250; zoom[1][4][3] = 120
	
	//          left     ;    bottom
	// Zp, lvl0
	zoom[2][0][0] = NaN; zoom[2][0][2] = NaN
	zoom[2][0][1] = NaN; zoom[2][0][3] = NaN
	// Zp, lvl1
	zoom[2][1][0] = NaN; zoom[2][1][2] = -5
	zoom[2][1][1] = NaN; zoom[2][1][3] = 350
	// Zp, lvl2
	zoom[2][2][0] = -40; zoom[2][2][2] = 20
	zoom[2][2][1] = 300; zoom[2][2][3] = 120
	// Zp, lvl3
{'fraction_non_alphanumeric': 0.21428571428571427, 'fraction_numerical': 0.08859357696567, 'mean_word_length': 2.8933189655172415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4480968', 'n_tokens_mistral': 1700, 'n_tokens_neox': 1536, 'n_words': 438}