File: rescale.cc

package info (click to toggle)
gri 2.4.2-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 4,540 kB
  • ctags: 1,966
  • sloc: cpp: 32,542; lisp: 3,243; perl: 806; makefile: 548; sh: 253
file content (27 lines) | stat: -rw-r--r-- 463 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include	<string>
#include	<math.h>
#include	<stdio.h>
#include	"gr.hh"
#include	"extern.hh"

extern char     _grTempString[];

bool
rescaleCmd()
{
    if (_nword == 1) {
	if (_chatty > 2) {
	    sprintf(_grTempString, "Rescaling x/y axes\n");
	    ShowStr(_grTempString);
	}
	_need_x_axis = true;
	_need_y_axis = true;
	create_x_scale();
	create_y_scale();
    } else {
	demonstrate_command_usage();
	NUMBER_WORDS_ERROR;
	return false;
    }
    return true;
}