JPH049637Y2 - - Google Patents
Info
- Publication number
- JPH049637Y2 JPH049637Y2 JP13456483U JP13456483U JPH049637Y2 JP H049637 Y2 JPH049637 Y2 JP H049637Y2 JP 13456483 U JP13456483 U JP 13456483U JP 13456483 U JP13456483 U JP 13456483U JP H049637 Y2 JPH049637 Y2 JP H049637Y2
- Authority
- JP
- Japan
- Prior art keywords
- data
- graph
- printing
- value
- written
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
- 230000015654 memory Effects 0.000 description 13
- 238000013500 data storage Methods 0.000 description 8
- 238000000034 method Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 3
- 239000000284 extract Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Landscapes
- Record Information Processing For Printing (AREA)
- Calculators And Similar Devices (AREA)
- Dot-Matrix Printers And Others (AREA)
Description
【考案の詳細な説明】
〔考案の技術分野〕
本考案は記憶した複数のデータをグラフ化して
出力するグラフ出力装置に関する。[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to a graph output device that outputs a graph of a plurality of stored data.
従来、上記機能を有する印字装置において、各
種データをそのデータ量に応じてグラフ印字する
場合、グラフの印字スケールはデータの最大値に
応じて自動的に設定される。また、印字スケール
の最大値あるいは最小値が手動操作により指定さ
れた場合には、この指定された値に基づいて印字
スケールの設定が行なわれる。
Conventionally, in a printing device having the above-mentioned functions, when printing various types of data in a graph according to the amount of data, the printing scale of the graph is automatically set according to the maximum value of the data. Further, when the maximum value or minimum value of the print scale is specified by manual operation, the print scale is set based on this specified value.
第1図は、上記従来の印字装置により、リスト
マツプに示した各データを棒グラフで印字した場
合の例を示す。しかしながら、この例のように全
データの値が非常に近接している場合、グラフを
見てわかるように各データの比較が極めて困難で
ある。かといつて、手動操作により印字スケール
の最小値を指定して印字スケールを設定する方法
であつては、如何なる値を最小値として選択すれ
ばよいのかをいちいち考慮し、また、この結果選
択された値を手動操作により入力指定することは
非常に煩わしいものであつた。 FIG. 1 shows an example of printing each piece of data shown in a list map in the form of a bar graph using the conventional printing device. However, when the values of all data are very close as in this example, it is extremely difficult to compare each data as can be seen from the graph. On the other hand, if the printing scale is set by manually specifying the minimum value of the printing scale, it is necessary to carefully consider what value should be selected as the minimum value, and Inputting and specifying values manually is extremely troublesome.
この考案は、上述した事情を背景になされたも
ので、その目的とするところは、全データの値に
応じて、各データの比較が最も容易な形のグラフ
出力を自動的に選択するグラフ出力装置を提供す
ることにある。
This idea was developed against the background of the above-mentioned circumstances, and its purpose is to output a graph that automatically selects the graph output in the form that makes it easiest to compare each piece of data, depending on the values of all data. The goal is to provide equipment.
以下、この考案を第2図乃至第4図に示す一実
施例に基づいて具体的に説明する。第2図は、サ
ーマルプリンタを備えた小型電子式計算機のブロ
ツク回路図である。同図中、符号1はキー入力部
であり、置数キー、各種演算キー等(図示せず)
の他、データのリスト印字を指定するキー1a
と、グラフ印字を指定するキー1bが備えられて
いる。このキー入力部1においてキーが操作され
ると操作キーに対応するキー入力データがCPU
(中央演算処理装置)2に入力される。
This invention will be specifically explained below based on an embodiment shown in FIGS. 2 to 4. FIG. 2 is a block circuit diagram of a small electronic calculator equipped with a thermal printer. In the figure, numeral 1 is a key input section, including numeric keys, various calculation keys, etc. (not shown)
In addition, key 1a for specifying data list printing
and a key 1b for specifying graph printing. When a key is operated in this key input section 1, the key input data corresponding to the operated key is sent to the CPU.
(central processing unit) 2.
CPU2は、各種動作を制御するマイクロプロ
セツサにより構成され、ROM(リード・オンリ
ー・メモリ)に記憶されたマイクロプログラム命
令に基づいて、CN(制御部)、RAM(AV,M,
m,a,D及びX,Y,△AV等の各種レジスタ
を有するランダム・アクセス・メモリ)及び
ALU(演算部)の各種演算制御を行ない、RAM
で構成されたデータ記憶部3とデータの授受を行
ない、また印字コントロール部4あるいは表示コ
ントロール部5に対して、印字データあるいは表
示データを送出する。 The CPU 2 is composed of a microprocessor that controls various operations, and based on microprogram instructions stored in a ROM (read-only memory), it processes the CN (control unit), RAM (AV, M,
Random access memory with various registers such as m, a, D and X, Y, △AV) and
Performs various calculation control of ALU (calculation unit) and
It sends and receives data to and from the data storage section 3 comprised of the following, and also sends print data or display data to the print control section 4 or display control section 5.
印字コントロール部4は、CPU2より転送さ
れるデータをV,Sの各メモリに書き込む他、キ
ヤラクタデコーダ6に対してキヤラクタ指定デー
タを出力する。また、この印字コントロール部4
は、CPU2より出力された印字命令に従い、プ
ラテン駆動部7に対してプラテン駆動信号を、ま
たヘツド駆動部8に対してヘツド駆動部信号を出
力する。これらの駆動信号に従い、プラテン駆動
部7は、感熱記録紙が巻回されたプラテン9を正
方向に回転移動させ、また、ヘツド駆動部8は、
7本の印字素子が備えられたサーマルヘツド10
を記録紙の巾方向に沿つて往復移動させる。ま
た、このサーマルヘツド10は、キヤラクタデコ
ーダ6においてデコードされたキヤラクタデータ
に対応するキヤラクタドツトパターンデータが、
キヤラクタジエネレータ11より順次読み込ま
れ、このドツトパターンデータに基づいて印字が
行なわれる。上記キヤラクタジエネレータ11内
には、文字及び数字等の各キヤラクタに対応する
ドツトパターンデータが記憶される他、右方向の
棒グラフ及び左方向の棒グラフを印字するための
基本となるドツトパターンデータが、記憶領域
S1,S2に記憶される。 The print control unit 4 writes the data transferred from the CPU 2 into the V and S memories, and also outputs character designation data to the character decoder 6. In addition, this print control section 4
outputs a platen drive signal to the platen drive section 7 and a head drive section signal to the head drive section 8 in accordance with the print command output from the CPU 2. According to these drive signals, the platen drive unit 7 rotates the platen 9 on which the thermal recording paper is wound in the forward direction, and the head drive unit 8 rotates the platen 9 on which the thermal recording paper is wound.
Thermal head 10 equipped with 7 printing elements
is moved back and forth along the width direction of the recording paper. Further, this thermal head 10 has character dot pattern data corresponding to the character data decoded by the character decoder 6.
The dot pattern data is sequentially read from the character generator 11, and printing is performed based on this dot pattern data. In the character generator 11, dot pattern data corresponding to each character such as letters and numbers is stored, as well as dot pattern data that is the basis for printing a bar graph in the right direction and a bar graph in the left direction. , storage area
Stored in S 1 and S 2 .
一方、前記表示コントロール部5に入力された
表示データは表示に敵した形態に変換され、表示
部12に表示される。 On the other hand, the display data input to the display control section 5 is converted into a format suitable for display and displayed on the display section 12.
次に、上述のように構成された小型電子計算機
の動作について説明する。 Next, the operation of the small computer configured as described above will be explained.
先ず、第1図のリストマツプに示した如く、
“月”のデータと、その時の売上データをデータ
記憶部3に書き込んでおき、この後、グラフ印字
を指定するキー1bを操作すると、第3図のフロ
ーチヤートに従つた処理を実行する。ステツプ
A1において、データ記憶部3に記憶された全売
上データに対する平均値が算出され、AVレジス
タに書き込まれる。続いて、ステツプA2にてデ
ータ記憶部3内の各売上データとAVレジスタに
記憶されている平均値のデータとの誤差が個々に
比較され、順次算出される誤差の中で正方向に最
大の誤差、及び負方向に最大の誤差の絶対値がそ
れぞれM,mレジスタに書き込まれる。次いで、
縦軸印字スケールの1目盛のデータの大きさ(こ
の場合、縦軸印字スケールは記録紙の巾方向に沿
つて40等分された位置に目盛を有する)が決定さ
れ、aレジスタに書き込まれる(ステツプA3、
ここで、“4/5”は4捨5入を示す)。次いでX
レジスタ及びYレジスタに、印字スケールの左端
及び右端の位置を示すデータが書き込まれる(ス
テツプA4,A5)。この後、ステツプA6にて、X,
Y,aレジスタの内容に基づいて縦軸のスケール
が印字される。ここで、“初期位置”とはサーマ
ルヘツド10が記録紙の左端にある位置であり、
この時“−X×a”のデータが印字される。そし
てサーマルヘツド10が右方向に沿つて移動する
過程において、目盛“X”の位置にてデータ
“0”が印字され、さらに目盛“X+Y”の位置
(記録紙の右端)ではデータ“Y×a”が印字さ
れる。この後、記録紙の右端にある上記サーマル
ヘツド10を、目盛“X”の位置、すなわち、平
均値のデータとの誤差が“0”の位置へ移動させ
ておく(ステツプA7)。 First, as shown in the list map in Figure 1,
The data of the month and the sales data at that time are written in the data storage section 3, and then when the key 1b for designating graph printing is operated, the process according to the flowchart of FIG. 3 is executed. step
At A1 , an average value for all sales data stored in the data storage section 3 is calculated and written to the AV register. Next, in step A2 , the errors between each sales data in the data storage section 3 and the average value data stored in the AV register are individually compared, and among the sequentially calculated errors, the largest in the positive direction is The absolute value of the error and the maximum error in the negative direction are written to the M and m registers, respectively. Then,
The data size of one division of the vertical axis printing scale (in this case, the vertical axis printing scale has graduations at positions divided into 40 equal parts along the width direction of the recording paper) is determined and written to the a register ( Step A 3 ,
Here, "4/5" indicates rounding to the nearest 4. Then X
Data indicating the positions of the left end and right end of the print scale is written to the register and the Y register (steps A 4 and A 5 ). After this, in step A 6 ,
The scale of the vertical axis is printed based on the contents of the Y and a registers. Here, the "initial position" is the position where the thermal head 10 is at the left edge of the recording paper,
At this time, data "-Xxa" is printed. In the process of the thermal head 10 moving rightward, data "0" is printed at the scale "X" position, and data "Y×a" is printed at the scale "X+Y" position (right edge of the recording paper). ” will be printed. Thereafter, the thermal head 10 at the right end of the recording paper is moved to the position of the scale "X", that is, the position where the error from the average value data is "0" (step A7 ).
次いで、ステツプA8に移り、データ記憶部3
内の売上データのうち先頭のデータが読み出され
Dレジスタに書き込まれる。この後、このDレジ
スタ内のデータと平均値のデータとの誤差が算出
され、△AVレジスタに書き込まれる(ステツプ
A3)。そして次のステツプA10にて、△AVが正で
あるか否かが判断され、正であると判断されると
ステツプA11に移る。ステツプA11にてメモリS
にデータ“1”が書き込まれ、また、ステツプ
A12にて△AVレジスタに記憶された誤差に応じ
てサーマルヘツド10の移動量を決定するための
データがメモリVに書き込まれる。前記ステツプ
A10にて「NO」と判断された場合にはステツプ
A13に移り、メモリSにデータ“2”が書き込ま
れ、またステツプA14にて△AVレジスタに記憶
された誤差の絶対値に応じてサーマルヘツド10
の移動量を決定するためのデータがメモリVに書
き込まれる。前記ステツプA12,A14の後、ステ
ツプA15に移る。このステツプA15では、メモリ
S,Vの内容に基づいて棒グラフの印字が行なわ
れる。すなわち、印字コントロール部4は、サー
マルヘツド10をメモリSの内容に従つた方向
(“1”であれば右方向、“2”であれば左方向)
へメモリVの内容に基づいた量だけ移動すべく、
ヘツド駆動部8に対して駆動信号を出力する一
方、メモリSの内容に基づいてキヤラクタジエネ
レータ11の記憶領域S1あるいはS2を指定して所
望の棒グラフ(メモリSが“1”であれば右方向
の棒グラフ、メモリSが“2”であれば左方向の
棒グラフ)のドツトパターンデータをサーマルヘ
ツド10の駆動に同期して出力させる。 Next, the process moves to step A8 , and the data storage section 3
The first data among the sales data within is read out and written to the D register. After this, the error between the data in this D register and the average value data is calculated and written to the △AV register (step
A3 ). Then, in the next step A10 , it is determined whether ΔAV is positive or not, and if it is determined to be positive, the process moves to step A11 . Memory S at step A 11
Data “1” is written to
At A12 , data for determining the amount of movement of the thermal head 10 is written into the memory V in accordance with the error stored in the ΔAV register. Said step
A If it is judged as “NO” in 10 , proceed to step
At step A13 , data "2" is written to the memory S, and at step A14 , the thermal head 10 is written in accordance with the absolute value of the error stored in the ΔAV register.
Data for determining the amount of movement of is written to the memory V. After steps A 12 and A 14 , the process moves to step A 15 . In step A15 , a bar graph is printed based on the contents of memories S and V. In other words, the print control unit 4 moves the thermal head 10 in the direction according to the contents of the memory S (if "1", the right direction; if "2", the left direction).
to move by an amount based on the contents of memory V,
While outputting a drive signal to the head drive section 8, the storage area S1 or S2 of the character generator 11 is specified based on the contents of the memory S to create a desired bar graph (even if the memory S is " 1 "). Dot pattern data of a rightward bar graph (for example, a rightward bar graph, and a leftward bar graph if the memory S is "2") is output in synchronization with the driving of the thermal head 10.
上記ステツプA15の後、ステツプA16に移り、
データ記憶部3に記憶された全売上データの読み
出しが終了したか否かを判断し、「NO」と判断
されればステツプA7に戻り、次のステツプA8に
て売上データを読み出される。前記ステツプA16
にて「YES」と判断されれば、グラフの印字処
理を終了する。 After step A 15 above, move on to step A 16 .
It is determined whether reading of all the sales data stored in the data storage section 3 has been completed, and if the judgment is "NO", the process returns to step A7 , and the sales data is read out in the next step A8 . Step A 16
If it is determined to be ``YES'', the graph printing process ends.
第4図は、上記第3図のフローチヤートに基づ
いて印字された棒グラフの印字例を示すものであ
る。すなわち、データ記憶部3に記憶された全売
上データの平均値が「2000」と算出され、この平
均値を“0”とした各月の誤差を示す棒グラフ
が、各月毎に印字されるのである。このように、
各月毎に平均値に対する誤差を示すグラフが印字
できれば、各月毎の売上データの比較が極めて容
易になる。 FIG. 4 shows an example of a bar graph printed based on the flowchart shown in FIG. 3 above. In other words, the average value of all sales data stored in the data storage unit 3 is calculated as "2000", and a bar graph showing the error for each month with this average value as "0" is printed for each month. be. in this way,
If a graph showing the error with respect to the average value can be printed for each month, it will be extremely easy to compare sales data for each month.
第5図は、第4図で印字された売上データを、
売上データの最大値と最小値に基づいて印字スケ
ールを自動設定して棒グラフ印字を行なつた他の
実施例による印字状態図を示したものであり、こ
の場合も各月毎の売上データの比較が極めて容易
になる。 Figure 5 shows the sales data printed in Figure 4.
This figure shows a printing status diagram of another embodiment in which bar graph printing was performed by automatically setting the printing scale based on the maximum and minimum values of sales data, and in this case also a comparison of sales data for each month. becomes extremely easy.
なお、前記各実施例においては、グラフとして
棒グラフを用いた例を示したが、折線グラフによ
り印字する場合も全く同様に実施可能であること
はもちろんである。 In each of the above-mentioned embodiments, an example was shown in which a bar graph was used as the graph, but it goes without saying that printing using a line graph can be carried out in exactly the same manner.
この考案は、以上の詳細に説明したように、グ
ラフの出力の対象となるデータの中から最大値及
び最小値のデータを取出し、この値でグラフの上
限、下限を設定しグラフを出力するようにしたか
ら、各データ値の差が最も明確となる形にてグラ
フ出力が行なえ、データの比較が極めて容易とな
る。
As explained in detail above, this idea extracts the maximum and minimum values from the data to be output as a graph, sets the upper and lower limits of the graph using these values, and outputs the graph. , it is possible to output a graph in a form that makes the differences between each data value most clear, making it extremely easy to compare data.
第1図は、従来の印字装置によるグラフ印字状
態図、第2図乃至第4図は、この考案の実施例を
示し、第2図はプリンタ付小型電子式計算機の全
体ブロツク回路図、第3図はグラフ印字の動作を
説明するためのフローチヤート、第4図は第3図
のフローチヤートの実行により印字されたグラフ
印字状態図、第5図は他の実施例の印字動作によ
り作成されたグラフ印字状態図である。
1……キー入力部、2……CPU、3……デー
タ記憶部、4……印字コントロール部、9……サ
ーマルヘツド、10……キヤラクタジエネレー
タ、V,S……メモリ。
Fig. 1 is a graph printing state diagram using a conventional printing device, Figs. 2 to 4 show an embodiment of this invention, Fig. 2 is an overall block circuit diagram of a small electronic calculator with a printer, and Fig. 3 is a graph printing state diagram using a conventional printer. The figure is a flowchart for explaining the graph printing operation, Figure 4 is a graph printing state diagram printed by executing the flowchart in Figure 3, and Figure 5 is a graph created by the printing operation of another embodiment. It is a graph printing state diagram. 1...Key input section, 2...CPU, 3...Data storage section, 4...Print control section, 9...Thermal head, 10...Character generator, V, S...Memory.
Claims (1)
づいて該データをグラフ出力するグラフ出力装置
において、 上記記憶データの中から最大値のデータを取出
して、該データの値をグラフ出力範囲の上限とし
て設定する上限設定手段と、 上記記憶データの中から最小値のデータを取出
して、該データの値をグラフ出力範囲の下限とし
て設定する下限設定手段と、 上記上限設定手段と上記下限設定手段とで設定
されたグラフ出力範囲内で、上記記憶されたデー
タをグラフ化して出力するグラフ出力手段と を具備したことを特徴とするグラフ出力装置。[Claims for Utility Model Registration] In a graph output device that stores a plurality of data and outputs the data in a graph based on the size of the data value, the data with the maximum value is extracted from the stored data and the upper limit setting means for setting the value of as the upper limit of the graph output range; lower limit setting means for extracting the minimum value data from the stored data and setting the value of the data as the lower limit of the graph output range; A graph output device comprising graph output means for graphing and outputting the stored data within a graph output range set by the setting means and the lower limit setting means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13456483U JPS6042645U (en) | 1983-08-31 | 1983-08-31 | Small electronic printing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13456483U JPS6042645U (en) | 1983-08-31 | 1983-08-31 | Small electronic printing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6042645U JPS6042645U (en) | 1985-03-26 |
| JPH049637Y2 true JPH049637Y2 (en) | 1992-03-10 |
Family
ID=30303169
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP13456483U Granted JPS6042645U (en) | 1983-08-31 | 1983-08-31 | Small electronic printing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6042645U (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2715405B2 (en) * | 1985-05-31 | 1998-02-18 | カシオ計算機株式会社 | Graph display control device and graph display control method |
-
1983
- 1983-08-31 JP JP13456483U patent/JPS6042645U/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6042645U (en) | 1985-03-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR860001071B1 (en) | How to edit document | |
| JPS6118033A (en) | print processing device | |
| JPS60189568A (en) | Information processor | |
| JPS5833784A (en) | Word processor with frame opening function | |
| JPH0437951A (en) | document processing device | |
| US4955734A (en) | Information processing apparatus | |
| JPS62255175A (en) | Standard format printing device | |
| KR920007696B1 (en) | Printing control system | |
| JP2922068B2 (en) | Word processor with character font correction function | |
| JP2874162B2 (en) | Editing and printing device | |
| JPS60124270A (en) | electronic typewriter | |
| JP2604355B2 (en) | Document processing device | |
| JPS6030374A (en) | Electronic typewriter | |
| JP2555558B2 (en) | Character processor | |
| JPS59135582A (en) | Idle feed control system of printer for sentence processor | |
| JP3036064B2 (en) | Document output device | |
| JP2721339B2 (en) | Document processing device | |
| JP2903516B2 (en) | Document processing device | |
| JPS629435B2 (en) | ||
| JPS6356869B2 (en) | ||
| JPS61148065A (en) | Recorded information input/output control method | |
| JPS6030375A (en) | Electronic typewriter | |
| JPH055674B2 (en) | ||
| JPH0457514B2 (en) | ||
| JPH05174154A (en) | Graph making device |