Pixel Coordinates - HP 48gII User Manual

Graphing calculator
Hide thumbs Also See for 48gII:
Table of Contents

Advertisement

Data set 1
x
0.4
1.0
2.0
3.4
4.0
5.8
7.2
7.8
9.0
Note: The program FRAME, as originally programmed (see diskette or CD
ROM), does not maintain the proper scaling of the graph. If you want to
maintain proper scaling, replace FRAME with the following program:
« STOΣ MINΣ MAXΣ 2 COL
/ DUP NEG SWAP 2 COL
DUP R B SWAP yR OBJ
R B PDIM yR OBJ
This program keeps the width of the PICT variable at 131 pixels – the
minimum pixel size for the horizontal axis – and adjusts the number of pixels
in the vertical axes so that a 1:1 scale is maintained between the vertical and
horizontal axes.

Pixel coordinates

The figure below shows the graphic coordinates for the typical (minimum)
screen of 131×64 pixels. Pixels coordinates are measured from the top left
corner of the screen {# 0h # 0h}, which corresponds to user-defined
coordinates (x
, y
).
min
max
Data set 2
y
x
6.3
0.7
4.9
1.0
4.3
1.5
3.0
2.2
1.2
3.5
2.0
4.5
3.8
5.0
5.3
6.0
7.2
7.1
8.0
9.0
10.0
10.5
11.0
DUP
COL DROP – AXL ABS AXL 20
+
ROW DROP SWAP
DROP – xR OBJ
DROP YRNG xR OBJ
The maximum coordinates in terms of pixels
y
4.8
3.0
2.0
0.9
0.4
1.0
2.0
2.5
2.0
0.7
0.0
1.5
3.4
5.0
yR xR « 131
DROP - / * FLOOR
DROP XRNG ERASE » »
Page 22-25

Advertisement

Table of Contents
loading

Table of Contents