JPH0620058A - Method and device for plotting graph - Google Patents

Method and device for plotting graph

Info

Publication number
JPH0620058A
JPH0620058A JP17277092A JP17277092A JPH0620058A JP H0620058 A JPH0620058 A JP H0620058A JP 17277092 A JP17277092 A JP 17277092A JP 17277092 A JP17277092 A JP 17277092A JP H0620058 A JPH0620058 A JP H0620058A
Authority
JP
Japan
Prior art keywords
scale
cycle
periodicity
graph
data
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.)
Pending
Application number
JP17277092A
Other languages
Japanese (ja)
Inventor
Masayo Osaki
雅代 大崎
Nobusane Nishiuchi
信実 西内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP17277092A priority Critical patent/JPH0620058A/en
Publication of JPH0620058A publication Critical patent/JPH0620058A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To provide the device and the method for plotting graph which easily plot a scale having an arbitrary periodicity and are superior in flexibility. CONSTITUTION:The scale is plotted by a scale plotting means 3 based on a graph plotting condition of a graph plotting condition designating means 1 and periodicity data of an arbitrary scale stored in a scale periodicity storage means 2, and a numerical data string of a data input means 4 is plotted by a data plotting means 5, and a graph is displayed by a display means. When periodicity data is changed, a scale in another notation is displayed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明はコンピュータを利用し
て任意の周期性を持つスケールを有するグラフの描画を
行うグラフ描画装置及びグラフ描画方法に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graph drawing apparatus and a graph drawing method for drawing a graph having a scale having an arbitrary periodicity using a computer.

【0002】[0002]

【従来の技術】グラフのスケールに描かれる目盛の周期
性は、グラフとして描かれるデータの単位系が何進法に
基づいているかに依存する。多くの場合10進法が用い
られるが、時間や角度、ヤードポンド法など、非10進
法の記数法に基づく単位系も存在する。従来のグラフ描
画装置では、自動スケーリングのためにスケールの目盛
間隔を可変にすることは行われてきたが、任意の記数法
に対応するために目盛の周期性を可変にすることは行わ
れてこなかった。
2. Description of the Related Art The periodicity of a scale drawn on a scale of a graph depends on the base system of the unit of data drawn on the graph. The decimal system is often used, but there are also unit systems based on the non-decimal number system such as time, angle, and imperial system. In the conventional graph drawing apparatus, the scale interval of the scale has been made variable for automatic scaling, but the periodicity of the scale has not been made variable in order to correspond to an arbitrary number system. It didn't come.

【0003】[0003]

【発明が解決しようとする課題】以上述べたように、従
来のグラフ描画装置及びグラフ描画方法では、任意の異
なる周期性を持つスケールを表示するには、スケール描
画手段をその周期性に対応するように変更するか、その
周期性に対応する別のスケール描画手段を用意する必要
が有り、融通性に欠けるなどの問題点があった。
As described above, in the conventional graph drawing apparatus and graph drawing method, in order to display a scale having an arbitrary different periodicity, the scale drawing means corresponds to the periodicity. However, there is a problem that flexibility is lacking because it is necessary to change the above or prepare another scale drawing means corresponding to the periodicity.

【0004】この発明は上記のような問題点を解決する
ためになされたもので、任意の周期性を持つスケールを
容易に描画でき、融通性に富んだグラフ描画装置及びグ
ラフ描画方法を得ることを目的とする。
The present invention has been made in order to solve the above problems, and provides a graph drawing apparatus and a graph drawing method which can draw a scale having an arbitrary periodicity easily and have a great flexibility. With the goal.

【0005】[0005]

【課題を解決するための手段】この発明に係るグラフ描
画装置は、グラフ描画指定手段でグラフの描画条件を指
定し、スケール周期性記憶手段で任意のスケールの周期
性データを記憶し、この周期性データの一つとして任意
の目盛の周期を少なくとも一つ記憶し、スケール描画手
段でこのグラフ描画条件と周期性データに基づいてスケ
ールを描画し、表示手段でこのスケールを表示するとと
もに、データ入力手段でグラフとして描画すべき数値デ
ータ列を入力し、データ描画手段で数値データを描画
し、表示手段でデータを表示するものである。
In a graph drawing apparatus according to the present invention, a graph drawing specifying unit specifies a graph drawing condition, and a scale periodicity storing unit stores periodicity data of an arbitrary scale. At least one cycle of an arbitrary scale is stored as one of the periodicity data, the scale drawing means draws a scale based on the graph drawing condition and the periodicity data, and the display means displays the scale and data input. The means inputs the numerical data string to be drawn as a graph, the data drawing means draws the numerical data, and the display means displays the data.

【0006】また、スケール周期性記憶手段において、
各周期について目盛線の表示属性を指定するようにする
ものである。
Also, in the scale periodicity storage means,
The display attribute of the scale line is specified for each cycle.

【0007】また、スケール周期性記憶手段において、
各周期について優先度を指定し、優先度の高い目盛をス
ケール描画手段により優先的に描画するものである。
Further, in the scale periodicity storage means,
A priority is designated for each cycle, and a scale having a high priority is preferentially drawn by the scale drawing means.

【0008】また、スケール周期性記憶手段に記憶され
ているすべての周期の長さが、ある単位長の整数倍とし
て表現され、すべての周期が共通の基準点から開始され
るとき、スケール描画手段で各周期Pi ごとにPi 進法
計数手段を備え、この計数手段の計数値を基準点で0と
し、位置をこの基準点から単位長移動するごとに計数値
を1増加あるいは減少させ、ある位置で計数値が0とな
る周期が少なくとも1つ存在するとき、この周期のうち
で最も優先度の高いものに対応する目盛をこの位置に描
画するものである。
Further, when the lengths of all the cycles stored in the scale periodicity storage means are expressed as an integral multiple of a certain unit length and all the cycles start from a common reference point, the scale drawing means Then, a P i base counting means is provided for each period P i , the count value of this counting means is set to 0 at the reference point, and the count value is incremented or decremented by 1 each time the position moves from this reference point by a unit length When there is at least one cycle in which the count value becomes 0 at a certain position, the scale corresponding to the one with the highest priority in this cycle is drawn at this position.

【0009】また、スケール周期性記憶手段において、
周期の優先度を周期で兼用し、周期が長いものほど優先
度が高くなるようにするものである。
Further, in the scale periodicity storage means,
The priority of the cycle is shared by the cycles, and the higher the cycle, the higher the priority.

【0010】この発明に係るグラフ描画方法は、グラフ
描画方法において、グラフの描画条件とその条件中ある
いは予め記憶設定された任意のスケールの周期性データ
に基づいてスケールを描画する。
In the graph drawing method according to the present invention, in the graph drawing method, a scale is drawn based on the drawing condition of the graph and the periodicity data of the condition or an arbitrary scale preset and stored.

【0011】また、周期性データが複数種類の場合、優
先度の高い周期の目盛を描画する。
If there are a plurality of types of periodicity data, a scale having a high priority is drawn.

【0012】また、周期の優先度を周期で兼用し、周期
が長いほど優先度が高くなるようにした。
Further, the cycle priority is shared by the cycles, and the longer the cycle, the higher the priority.

【0013】[0013]

【作用】この発明におけるグラフ描画装置は、スケール
周期性記憶手段にスケールの周期性データを記憶するこ
とにより、スケール描画手段でグラフ描画条件とこの周
期性データに基づいてこの周期性データの各周期ごとに
スケールの目盛を描画し、スケール周期性記憶手段に記
憶される周期性データを任意に変更することで任意のス
ケールの目盛を描画できる。
In the graph drawing apparatus according to the present invention, the scale periodicity data is stored in the scale periodicity storage means so that the scale drawing means can draw each cycle of the periodicity data based on the graph drawing condition and the periodicity data. It is possible to draw the scale of any scale by drawing the scale of each scale and arbitrarily changing the periodicity data stored in the scale periodicity storage means.

【0014】また、各周期について目盛線の表示属性を
指定することで各周期ごとの目盛線の表示の区別ができ
るようにする。
Further, by designating the display attribute of the scale line for each cycle, the display of the scale line for each cycle can be distinguished.

【0015】各周期について優先度を指定し、優先度の
高い目盛を優先的に描画することで、複数の周期の自由
な組み合わせからなるスケールを描画できる。
By designating a priority for each cycle and preferentially drawing a scale with a high priority, it is possible to draw a scale composed of a free combination of a plurality of cycles.

【0016】また、スケール描画手段における各周期に
対する計数手段の計数値を変化させることによって、目
盛を逐次決定でき、最も優先度の高いものに対応する目
盛をこの位置に描画する。
Further, by changing the count value of the counting means for each period in the scale drawing means, the scale can be sequentially determined, and the scale corresponding to the one having the highest priority is drawn at this position.

【0017】また、周期の優先度を周期で兼用し、周期
が長いほど優先度が高くなるようにしてスケール周期性
記憶手段の記憶容量を比較的に小さくできる。
Further, the cycle priority is shared by the cycles, and the longer the cycle, the higher the priority, so that the storage capacity of the scale periodicity storage means can be made relatively small.

【0018】この発明におけるグラフ描画方法は、周期
性データを任意に変更することで任意のスケールの目盛
を描画できる。
In the graph drawing method according to the present invention, the scale of any scale can be drawn by arbitrarily changing the periodicity data.

【0019】また、周期性データが複数種類あっても、
優先度の高い周期の目盛を描画できる。
Further, even if there are a plurality of types of periodicity data,
It is possible to draw a scale with a high priority cycle.

【0020】また、周期の優先度を周期で兼用し、その
記憶容量が少くてすむ。
Further, the cycle priority is shared by the cycles, and the storage capacity thereof can be small.

【0021】[0021]

【実施例】【Example】

実施例1.図1はこの発明の一実施例によるグラフ描画
装置の全体構成図である。図1において、1はグラフの
描画条件を指定するグラフ描画条件指定手段、グラフ描
画条件指定手段1の描画条件中の任意の周期性データを
記憶するか又はその指定のない場合には予め記憶してあ
るデータを周期性データとして使用するスケール周期性
記憶手段、3はグラフ描画条件指定手段1で指定したグ
ラフの描画条件とスケール周期性記憶手段2に記憶され
ているスケールの周期性データに基づいてスケールを描
画するスケール描画手段である。
Example 1. FIG. 1 is an overall configuration diagram of a graph drawing device according to an embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a graph drawing condition designating means for designating a graph drawing condition, and arbitrary periodicity data in the drawing condition of the graph drawing condition designating means 1 is stored, or stored in advance if not specified. Scale periodicity storage means 3 which uses certain data as periodicity data, based on the graph drawing conditions designated by the graph drawing condition designation means 1 and the scale periodicity data stored in the scale periodicity storage means 2. Scale drawing means for drawing a scale.

【0022】また、4はグラフとして描画すべき数値デ
ータ列を入力するデータ入力手段、5はデータ入力手段
4で入力された数値データ列を描画するデータ描画手
段、6はスケール描画手段3で描画されたスケールとデ
ータ描画手段5で描画されたデータをグラフで表示する
表示手段である。グラフ描画装置は図1の符号1〜6で
示される構成要素で構成されている。
Further, 4 is a data input means for inputting a numerical data string to be drawn as a graph, 5 is a data drawing means for drawing the numerical data string input by the data input means 4, and 6 is a scale drawing means 3. It is a display unit for displaying the drawn scale and the data drawn by the data drawing unit 5 in a graph. The graph drawing device is composed of the components indicated by reference numerals 1 to 6 in FIG.

【0023】図2はこのグラフ描画装置によりグラフを
描画する動作の概念を示す詳細なフローチャートであ
る。図3は図2(a)中のステップIII のスケール描画
についての詳細なフローチャートである。
FIG. 2 is a detailed flowchart showing the concept of the operation of drawing a graph by this graph drawing device. FIG. 3 is a detailed flowchart of the scale drawing in step III in FIG. 2 (a).

【0024】次に、図1ないし図4を参照して実施例1
の動作について説明する。実施例1におけるグラフ描画
方法は、図1に示すグラフ描画装置により図2(a)及
び(b)のフローチャートに従って次のようにグラフが
描画される。図2(a)は、グラフのスケールを描画す
る動作についてのフローチャートである。まず、ステッ
プIで図1のグラフ描画条件指定手段1においてグラフ
の描画条件を指定する。そして、ステップIIでこの描画
条件の中のスケールの周期性データをスケール周期性記
憶手段2において記憶する。
Next, referring to FIGS. 1 to 4, a first embodiment will be described.
The operation of will be described. In the graph drawing method according to the first embodiment, the graph drawing apparatus shown in FIG. 1 draws a graph as follows in accordance with the flowcharts of FIGS. FIG. 2A is a flowchart of the operation for drawing the scale of the graph. First, in step I, the graph drawing conditions are specified by the graph drawing condition specifying means 1 in FIG. Then, in step II, the scale periodicity data in the drawing condition is stored in the scale periodicity storage means 2.

【0025】この場合、特にスケールの周期性データに
ついての指定が無い場合は、あらかじめスケール周期性
記憶手段2において記憶されているデータをスケールの
周期性データとする。次にステップIII でスケール描画
手段3において、ステップIで指定されたグラフの描画
条件と、ステップIIで記憶されたスケールの周期性デー
タに基づいてスケールを描画し、それをステップIVで表
示手段6のCRTディスプレイにおいて画面出力する。
In this case, unless otherwise specified for the scale periodicity data, the data previously stored in the scale periodicity storage means 2 is used as the scale periodicity data. Next, in step III, the scale drawing means 3 draws a scale based on the drawing conditions of the graph designated in step I and the periodicity data of the scale stored in step II. The screen is output on the CRT display.

【0026】また、図2(b)は、グラフとして描画す
べき数値データを描画する動作についてのフローチャー
トである。ステップVでデータ入力手段4においてグラ
フとして描画すべき数値データを入力し、ステップVIで
この数値データをデータ描画手段5において表示形態に
合ったデータに変換して描画する。それをステップVII
で表示手段6において図2(a)でスケールを描画した
グラフ上に出力する。
FIG. 2B is a flow chart of the operation of drawing the numerical data to be drawn as a graph. In step V, the numerical data to be drawn as a graph is input in the data input means 4, and in step VI, this numerical data is converted into data suitable for the display form in the data drawing means 5 and drawn. Step it VII
Then, the display means 6 outputs the scale on the graph drawn in FIG.

【0027】なお、このグラフ描画装置による具体的な
実例として、図4のスケールを描画する動作について説
明する。まずステップIでグラフの描画条件を指定す
る。グラフの描画条件は具体的には、目盛が描かれる座
標軸の最大値、最小値、基準点とスケールの周期性デー
タとし、スケールの周期性データは次のように指定する
ものとする。まずある区間を基本単位区間として指定
し、次に周期の長さを基本単位区間の整数倍として指定
するが、この場合周期は前記基準点から開始されるもの
とする。
As a concrete example of the graph drawing apparatus, the operation of drawing the scale of FIG. 4 will be described. First, in step I, graph drawing conditions are specified. Specifically, the graph drawing conditions are the maximum value and the minimum value of the coordinate axis on which the scale is drawn, the reference point and the periodicity data of the scale, and the periodicity data of the scale is specified as follows. First, a certain section is designated as a basic unit section, and then the length of the cycle is designated as an integral multiple of the basic unit section. In this case, the cycle starts from the reference point.

【0028】このようにグラフの描画条件とスケールの
周期性データを定義した場合、実際に図4のスケールに
おいては、座標軸の最大値としてMax、最小値として
Min、この場合の基準点としてMinを指定し、スケ
ールの周期性データとしては、基本単位区間としてdを
指定すると、周期の長さは3と指定できる。次にステッ
プIIで、スケールの周期性データを記憶する。この場合
はスケールの目盛の周期の長さとしては、一つだけ3を
記憶する。
When the plotting condition of the graph and the periodicity data of the scale are thus defined, in the scale of FIG. 4, Max is the maximum value of the coordinate axes, Min is the minimum value, and Min is the reference point in this case. If d is specified as the basic unit section as the scale periodicity data, the period length can be specified as 3. Next, in step II, scale periodicity data is stored. In this case, only 1 is stored as the length of the scale period of the scale.

【0029】次にステップIII で、グラフの描画条件と
スケールの周期性データに基づいてスケールを描画す
る。このスケールを描画する動作について詳しく説明す
る。ステップIII では図3のフローチャートに示すよう
に、座標軸の最小値から最大値の間で周期が存在するか
否かを判断し(ステップ301)、周期が存在すれば座
標軸の最小値から最大値の間で基準点からの距離が基本
単位区間の周期の長さ倍の整数倍のその周期位置にその
周期の目盛を描画する(ステップ302)操作を、周期
が存在しなくなる迄繰り返し、ステップごとに周期性デ
ータの周期の数だけ繰り返す。これによりステップIII
を完了し、スケールが描画される。実際に図4のスケー
ルにおいては、記憶されている周期としては長さが3の
ものだけなので、基準点からの距離が3×dの整数倍の
位置に目盛を描画する。
Next, in step III, the scale is drawn based on the drawing conditions of the graph and the periodicity data of the scale. The operation of drawing this scale will be described in detail. In step III, as shown in the flowchart of FIG. 3, it is judged whether or not a cycle exists between the minimum value and the maximum value of the coordinate axis (step 301). The distance from the reference point is an integer multiple of the length of the cycle of the basic unit section, and the scale is drawn at the cycle position at that cycle position (step 302). Repeat for the number of cycles of the periodicity data. This step III
And the scale is drawn. Actually, in the scale of FIG. 4, since the stored period is only 3 in length, the scale is drawn at a position where the distance from the reference point is an integral multiple of 3 × d.

【0030】前記実施例1においてスケール周期性記憶
手段2に記憶される周期性データを、例えばグラフ描画
条件指定手段1における描画条件中の周期性データを変
更するか又はその周期性データの記憶内容を変更するこ
とによって、任意に変更できるので、任意の決定法に基
づくスケールを表示することができる。
In the first embodiment, the periodicity data stored in the scale periodicity storage means 2 is changed, for example, the periodicity data in the drawing condition in the graph drawing condition designating means 1 is changed, or the stored contents of the periodicity data is changed. Since it can be arbitrarily changed by changing, the scale based on an arbitrary determination method can be displayed.

【0031】実施例2.図5はスケール描画の説明に用
いるスケールの説明図である。実施例2におけるグラフ
描画装置の構成は、図1に示すスケール周期性記憶手段
2において、各周期について目盛線の表示属性を指定す
る機能を付加した以外、図1と同様である。
Example 2. FIG. 5 is an explanatory diagram of a scale used for describing scale drawing. The configuration of the graph drawing device according to the second embodiment is the same as that of FIG. 1 except that the scale periodicity storage unit 2 shown in FIG. 1 has a function of designating the display attribute of the scale line for each period.

【0032】次に、図5のように周期性データに複数の
周期を持つ場合の実施例2のスケールの描画動作につい
て説明する。前記実施例1のようにグラフの描画条件と
しては、座標軸の最大値としてMax、最小値としてM
in、基準点としてMin、スケールの周期性データと
して基本単位区間としてdを指定すると、スケールの周
期の長さは1、3と指定できる。つまり図5のスケール
は周期が1のスケールと、周期が3のスケールの組み合
わせである。よって実施例2に援用した図2においてス
テップIII のスケール描画においては、描画したい座標
軸上に、まず周期が1のスケールとして基準点からの距
離が1×dの整数倍の位置に目盛を描画し、次に周期が
3のスケールとして基準点からの距離が3×dの整数倍
の位置に目盛を描画する。このようにして図5のスケー
ルを描画する。
Next, the scale drawing operation of the second embodiment when the periodicity data has a plurality of cycles as shown in FIG. 5 will be described. As in the first embodiment, the graph drawing conditions include Max as the maximum value and M as the minimum value of the coordinate axes.
If in is designated as Min, the reference point is designated as Min, and scale periodicity data is designated as d as the basic unit section, the length of the scale period can be designated as 1, 3. That is, the scale of FIG. 5 is a combination of a scale having a period of 1 and a scale having a period of 3. Therefore, in the scale drawing of step III in FIG. 2 referred to in Example 2, first, a scale is drawn on the coordinate axis to be drawn as a scale having a cycle of 1 at a position where the distance from the reference point is an integral multiple of 1 × d. Then, as a scale with a cycle of 3, a scale is drawn at a position where the distance from the reference point is an integral multiple of 3 × d. In this way, the scale of FIG. 5 is drawn.

【0033】実施例3.この実施例3にも図1を援用す
るものとし、図1において、スケール周期性記憶手段2
において、各周期について優先度を指定し、スケール描
画手段3により優先度の高い目盛を優先的に描画するよ
うにしたものであり、その他の構成は実施例2と同様で
ある。
Example 3. FIG. 1 is also referred to in the third embodiment, and in FIG. 1, the scale periodicity storage means 2 is used.
In the above, the priority is designated for each cycle, and the scale drawing means 3 preferentially draws the high-priority scale, and the other configurations are the same as those in the second embodiment.

【0034】周期性データに複数の周期を持つ場合、図
2(a)ステップIII のスケール描画においては必ず目
盛の重なる位置が存在するが、その場合にどの周期の目
盛を採用するかについて優先度を各周期に対して設定す
れば、目盛の重なる位置において優先させたい周期の目
盛を指定することができる。前記実施例2の場合、目盛
の重なる位置においては周期が3の目盛が優先されて描
画されているが、明示的にこの場合の目盛の周期の優先
度を指定すると、周期性データの目盛の周期とその周期
の優先度の組の列は下記表1の様になる。
When the periodicity data has a plurality of cycles, there is always a position where the scales overlap in the scale drawing in FIG. 2 (a) step III. In that case, the priority of which scale is adopted If is set for each cycle, it is possible to specify the scale of the cycle to be prioritized at the position where the scales overlap. In the case of the second embodiment, the scale with the period of 3 is drawn with priority at the position where the scales overlap, but if the priority of the scale period is explicitly specified in this case, the scale of the periodicity data is changed. Table 1 below shows the columns of the cycle and the priority of the cycle.

【0035】[0035]

【表1】 [Table 1]

【0036】実施例4.前記実施例においては、ステッ
プIII のスケールを描画する動作において、フローチャ
ート図3のようにスケールを描画したが、次にフローチ
ャート図6に従ったスケールの描画動作について説明す
る。この方法は目盛を逐次描画することができる。ここ
では実施例1で使用した図4すなわち図7のスケールの
描画を例にとり説明する。図7のスケールのグラフの描
画条件としては上記実施例1で指定した描画条件を使用
する。
Example 4. In the above embodiment, in the scale drawing operation in step III, the scale is drawn as shown in the flowchart of FIG. 3. Next, the scale drawing operation according to the flowchart of FIG. 6 will be described. With this method, the scales can be sequentially drawn. Here, the drawing of the scale of FIG. 4 used in the first embodiment, that is, FIG. 7 will be described as an example. The drawing conditions specified in the first embodiment are used as the drawing conditions for the scale graph of FIG.

【0037】実施例4によるグラフ描画装置は、この実
施例にも援用した図1において、スケール周期性記憶手
段2に記憶されている周期の長さが、ある単位長の整数
倍として表現され、周期が基準点から開始されるとき、
スケール描画手段3は前記各周期Pi (実施例4ではP
i =3)ごとにPi 進計数手段(例えばリングカウンタ
等)を備え、この計数手段の計数値は基準点で0とな
り、位置をその基準点から単位長移動するごとに計数値
を1増加し、Pi 進する毎のある位置で計数値が0とな
る周期に対応する目盛をその位置に描画するようにした
ものである。
In the graph drawing apparatus according to the fourth embodiment, the length of the cycle stored in the scale periodicity storage means 2 is represented as an integral multiple of a certain unit length in FIG. When the cycle starts from the reference point,
The scale drawing means 3 uses the respective cycles P i (P in the fourth embodiment).
Each i = 3) is provided with a P i- adic counting means (for example, a ring counter or the like), and the count value of this counting means becomes 0 at the reference point, and the count value is incremented by 1 each time the position is moved from the reference point by a unit length. Then, a scale corresponding to the cycle in which the count value becomes 0 at a certain position every time the P i advance is performed is drawn at that position.

【0038】次に実施例4の動作について図6を主に参
照して説明する。まず図6のステップ601でスケール
の周期性データの各周期に対して一つ計数を割り当て
る。このときに周期の長さがPi のときはPi 進法の計
数を割り当てる。この計数値は基準点では0とし、正の
方向に基本単位区間移動するごとに1増加するものとす
る。図4のスケールにおいては、スケールの周期性デー
タの周期の長さは3のみなのでこの周期に対して3進数
の計数を割り当てる。すると周期の長さが3の計数値は
図7の701のようになる。ここではこの計数を利用
し、座標軸の最小値から最大値へ向かって正の方向に順
に目盛を描画していく。
Next, the operation of the fourth embodiment will be described mainly with reference to FIG. First, in step 601 of FIG. 6, one count is assigned to each period of the periodicity data of the scale. At this time, when the length of the cycle is P i , a P i- ary number is assigned. This count value is set to 0 at the reference point and is incremented by 1 each time the basic unit section moves in the positive direction. In the scale of FIG. 4, since the period length of the periodicity data of the scale is only 3, a ternary count is assigned to this period. Then, the count value with a cycle length of 3 is as shown by 701 in FIG. Here, using this count, the scale is drawn in order in the positive direction from the minimum value to the maximum value of the coordinate axis.

【0039】ステップ602で最小目盛描画位置での各
周期の計数値を計算する。最小目盛描画位置とは、座標
軸の最小値と最大値の間で目盛が描画される可能性のあ
る位置、つまり基準点からの距離が基本単位区間の整数
倍の位置の中で、最も最小値に近い位置(最小値も含
む)とする。図7のスケールにおいては、最小目盛描画
位置は位置702である。この位置702はMinであ
り、Minは基準点でもあるのでこの位置での計数値は
0である。
In step 602, the count value of each cycle at the minimum scale drawing position is calculated. The minimum scale drawing position is the position where the scale may be drawn between the minimum and maximum values of the coordinate axis, that is, the minimum value among the positions where the distance from the reference point is an integer multiple of the basic unit section. The position is close to (including the minimum value). In the scale of FIG. 7, the minimum scale drawing position is position 702. Since this position 702 is Min and Min is also a reference point, the count value at this position is 0.

【0040】次に最小目盛描画位置から順に目盛が描画
される可能性のある位置での各周期の計数値を調べ、次
のような動作によって目盛を描画する。まずステップ6
03で、ある位置においてすべての周期の計数値のうち
0のものが存在するか判断し、もし存在すればステップ
604で計数値が0の周期のうち最も優先度の高い目盛
を描画する。なければその位置に目盛は描画しない。
Next, the count value of each cycle is examined at positions where the scale may be drawn in order from the minimum scale drawing position, and the scale is drawn by the following operation. First step 6
In 03, it is judged whether or not the count value of all cycles is 0 at a certain position, and if it is present, in step 604, the scale with the highest priority among the cycles of which count value is 0 is drawn. If not, the scale is not drawn at that position.

【0041】次にステップ605でその位置から正の方
向に基本単位区間移動した位置が目盛描画が可能か、つ
まり座標軸の最大値を越えないかどうか判断し、越える
場合はそこでスケールの描画動作は終了する。越えない
場合は、次のステップ606に進む。ステップ606で
は各周期の計数値を1づつ進める。そしてステップ60
3に戻り、正の方向に基本単位区間移動した位置での目
盛の描画動作に移る。この動作をスケールの描画動作が
終了するまで繰り返す。
Next, at step 605, it is judged whether the position moved from that position in the positive direction by the basic unit section can be used for scale drawing, that is, whether it does not exceed the maximum value of the coordinate axis. finish. If not, go to the next step 606. In step 606, the count value of each cycle is incremented by one. And step 60
Returning to step 3, the scale drawing operation is performed at the position where the basic unit section has moved in the positive direction. This operation is repeated until the scale drawing operation is completed.

【0042】実際の図7のスケールにおいてこの動作を
みていく。まずステップ603では最小目盛位置Min
での計数値は0なのでステップ604に進み、この場合
は周期が一つしかないのでこの周期の目盛を描画する。
次にステップ605で基本単位区間移動した位置703
は目盛描画が可能なので、ステップ606で計数値を1
進めると計数値は1になる。ステップ603に戻ると、
計数値が0の周期は存在しないのでステップ605にと
ぶ。次に基本単位区間移動した位置704は目盛描画が
可能なので、ステップ606で計数値を1進めると計数
値が2になる。
This operation will be examined on the actual scale of FIG. First, in step 603, the minimum scale position Min
Since the count value at 0 is 0, the process proceeds to step 604. In this case, since there is only one cycle, the scale of this cycle is drawn.
Next, at the step 605, the position 703 moved to the basic unit section
Can draw a scale, so the count value is set to 1 in step 606.
As it advances, the count value becomes 1. Returning to step 603,
Since there is no cycle in which the count value is 0, step 605 is skipped. Next, since the scale drawing is possible at the position 704 moved to the basic unit section, if the count value is advanced by 1 in step 606, the count value becomes 2.

【0043】ステップ603に戻ると、計数値が0の周
期は存在しないのでステップ605にとぶ。次に基本単
位区間移動した位置705は目盛描画が可能なので、ス
テップ606で計数値を1進めると計数値が0に戻る。
ステップ603に戻り、計数値が0なのでステップ60
4に進み位置705に目盛を描画する。この動作を位置
706(Maxを越えない一番近い位置)まで繰り返
す。
Returning to step 603, since there is no cycle in which the count value is 0, step 605 is skipped. Next, since the scale drawing is possible at the position 705 moved to the basic unit section, if the count value is advanced by 1 in step 606, the count value returns to 0.
Returning to step 603, the count value is 0, so step 60
4, the scale is drawn at the position 705. This operation is repeated up to the position 706 (the closest position that does not exceed Max).

【0044】実施例5.次にこの描画方法において図8
のスケールの描画動作についてみていく。グラフの描画
条件としては、座標軸の最大値としてMax、最小値と
してMin、基準点としてMin、スケールの周期性デ
ータとして基本単位区間としてdを指定すると、スケー
ルの周期の長さは1,2,5,10と指定できる。各周
期についてその周期の優先度を設定すると、スケールの
周期性データの目盛の周期とその周期の優先度の組の列
は、下記表2のようになる。すなわち、スケールの周期
の長さが長い程、優先度が高くなる。
Example 5. Next, in this drawing method, as shown in FIG.
Let's look at the drawing operation of the scale. As the graph drawing conditions, if Max is specified as the maximum value of the coordinate axes, Min is specified as the minimum value, Min is specified as the reference point, and d is specified as the basic unit section as the periodicity data of the scale, the length of the cycle of the scale is 1, 2, It can be specified as 5, 10. When the priority of each cycle is set for each cycle, the columns of the set of the cycle of the scale periodicity data and the priority of the cycle are as shown in Table 2 below. That is, the longer the scale period, the higher the priority.

【0045】[0045]

【表2】 [Table 2]

【0046】実施例5にも図1を援用でき、実施例4と
異なる点は、スケール周期性記憶手段2に記憶される周
期データの周期の長さが1,2,5,10であり、スケ
ール描画手段3が前記Pi =1,2,5,10の各々の
i 進計数手段を備え、ある位置で計数値が0となる周
期が少なくとも1つ存在するとき、この周期のうちで最
も優先度の高いものに対応する目盛をその位置にスケー
ル描画手段3により描画するようにしたものである。
FIG. 1 can also be applied to the fifth embodiment. The difference from the fourth embodiment is that the cycle length of the cycle data stored in the scale periodicity storage means 2 is 1, 2, 5, 10. When the scale drawing means 3 includes the respective P i base counting means of P i = 1, 2, 5, 10 and there is at least one cycle in which the count value becomes 0 at a certain position, among these cycles The scale drawing means 3 draws the scale corresponding to the one having the highest priority at that position.

【0047】図9は図8に示すスケールとその位置に対
応する1,2,5,10進計数手段の各計数値n1 ,n
2 ,n5 ,n10を示し、計数値0の内で斜線部の枠内の
ものが優先度が一番高いので描画される目盛である。
FIG. 9 shows the count values n 1 , n of the 1 , 2, 5, and 10 decimal counting means corresponding to the scale and its position shown in FIG.
2 , n 5 and n 10 are shown, and among the count value 0, the one in the shaded frame has the highest priority and is the scale to be drawn.

【0048】まずステップ601で周期性データの各周
期に対して一つ計数を割り当てる。周期の長さ1に対し
て1進法の計数n1 、周期の長さ2に対しては2進法の
計数n2 、周期の長さ5に対しては5進法の計数n5
周期の長さ10に対しては10進法の計数n10を割り当
てる。次にステップ602で最小目盛描画位置Minは
基準点でもあるので各周期の計数値はすべて0になる
(図9の計数値の列901)。
First, at step 601, one count is assigned to each cycle of the periodicity data. A binary count n 1 for a cycle length 1 ; a binary count n 2 for a cycle length 2 ; a quinary count n 5 for a cycle length 5 ;
A decimal number n 10 is assigned to a period length of 10. Next, at step 602, since the minimum scale drawing position Min is also a reference point, the count values of each cycle are all 0 (count value column 901 in FIG. 9).

【0049】次にステップ603で計数値が0の周期が
存在するのでステップ604に進み、計数値が0の周
期、つまりすべての周期のうち最も優先度の高い周期の
目盛、この場合は周期の長さが10の目盛を描画する。
次にステップ605からステップ606に進み、各周期
の計数値を1づつ進めると各周期の計数値の列は図9の
902のようになる。ステップ603に戻ると、計数値
が0の周期が存在するのでステップ604に進み、計数
値が0の周期、この場合は周期の長さが1の目盛のみな
ので、ステップ604でこの周期の目盛を描画する。
Next, at step 603, since there is a cycle with a count value of 0, the routine proceeds to step 604, where the cycle with a count value of 0, that is, the cycle with the highest priority among all cycles, in this case, the cycle Draw a scale with a length of 10.
Next, from step 605 to step 606, if the count value of each cycle is incremented by 1, the sequence of count values of each cycle becomes as shown by 902 in FIG. Returning to step 603, since there is a cycle with a count value of 0, the process proceeds to step 604, and there is only a cycle with a count value of 0, in this case, a scale with a cycle length of 1. draw.

【0050】次にステップ605からステップ606に
進むと各周期の計数値の列は図9の903のようにな
る。ステップ603に戻ると、計数値が0の周期が存在
するのでステップ604に進み、計数値が0の周期、つ
まり周期の長さが1,2の目盛のうち最も優先度の高い
目盛、この場合は周期の長さが2の目盛を描画する。こ
の動作を図9の位置904まで繰り返す。これにより図
8のスケールを描画する。
Next, when proceeding from step 605 to step 606, the sequence of count values for each cycle is as shown by 903 in FIG. Returning to step 603, since there is a cycle with a count value of 0, the process proceeds to step 604, and the cycle with a count value of 0, that is, the scale with the highest priority of the scales with a cycle length of 1 or 2, Draws a scale with a period length of 2. This operation is repeated up to position 904 in FIG. Thereby, the scale of FIG. 8 is drawn.

【0051】実施例6.前記実施例において、Pi 進計
数手段は、位置を基準点から基本単位区間移動するごと
に、計数値を1増加したが、1減少するように構成して
も良く、また、基準点は何もMinの位置でなく、Ma
x側の位置でも良く、前記実施例と同様の効果を奏す
る。
Example 6. In the above-mentioned embodiment, the P i- adic counting means increments the count value by 1 each time the position is moved from the reference point to the basic unit section, but may be configured to decrease by 1 and the reference point Is not the position of Min, but Ma
The position on the x side may be used, and the same effect as that of the above-described embodiment can be obtained.

【0052】実施例7.前記実施例において、表1や表
2に示すように周期の長さに対して周期の優先度Pr
決めたが、スケール周期性記憶手段において、周期の優
先度を周期で兼用し、周期が長いほど優先度が高くなる
ように構成してもよく、前記実施例と同様の効果を奏す
る。
Example 7. In the above-described embodiment, the cycle priority P r is determined with respect to the cycle length as shown in Table 1 and Table 2. However, in the scale periodicity storage means, the cycle priority is also shared by the cycles, May be configured such that the longer the number, the higher the priority, and the same effect as that of the above-described embodiment is obtained.

【0053】ところで、図1の表示手段4の一例として
CRTディスプレイを使用していたが、これをプリンタ
やプロッタなどの他の表示装置に用いてもよいことは勿
論言うまでもない。
By the way, although the CRT display is used as an example of the display means 4 in FIG. 1, it goes without saying that it may be used for another display device such as a printer or a plotter.

【0054】[0054]

【発明の効果】以上のように、この発明によれば指定さ
れたグラフ描画条件と任意のスケールの周期性データに
基づいて各周期毎のスケールの目盛を描画するように構
成したので、種々の記数法に基づくスケールを描画で
き、またスケール周期性記憶手段において記憶される周
期性データを変更するだけで、別のスケール描画手段を
用意したり、スケール描画手段を変更することなく、単
一のスケール描画手段で任意の周期性を持つスケールを
容易に描画でき融通性に富んだものとなる。
As described above, according to the present invention, since the scale of each cycle is drawn based on the specified graph drawing condition and the periodicity data of an arbitrary scale, various scales can be drawn. A scale based on the number system can be drawn, and by changing the periodicity data stored in the scale periodicity storage means, it is possible to prepare a single scale drawing means without preparing another scale drawing means or changing the scale drawing means. The scale drawing means can easily draw a scale having an arbitrary periodicity, and is highly flexible.

【0055】また、各周期について目盛線の表示属性を
指定することで、各周期ごとの目盛線の表示の区別がで
きる。
Further, by specifying the display attribute of the scale line for each cycle, the display of the scale line for each cycle can be distinguished.

【0056】また、各周期について優先度を指定し、優
先度の高い目盛を優先的に描画することで、複数の周期
の自由な組み合わせからなるスケールを描画できる。
Further, by designating a priority for each cycle and preferentially drawing a scale having a high priority, it is possible to draw a scale composed of a free combination of a plurality of cycles.

【0057】また、スケール描画手段における各周期に
対する計数手段の計数値をスケール上の位置の移動に合
わせて変化させることによって、目盛を逐次決定できる
と共に最も優先度の高いものに対応する目盛をこの位置
に描画できる。
Further, by changing the count value of the counting means for each cycle in the scale drawing means in accordance with the movement of the position on the scale, the scales can be sequentially determined and the scale corresponding to the one having the highest priority can be set. Can be drawn in position.

【0058】また、周期の優先度を周期で兼用し、周期
が長いほど優先度が高くなるようにしたことで、記憶容
量が少なくて済み、安価となる。
Further, the priority of the cycle is shared by the cycles, and the higher the cycle, the higher the priority. Therefore, the storage capacity can be reduced and the cost can be reduced.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明の一実施例によるグラフ描画装置の全
体構成図である。
FIG. 1 is an overall configuration diagram of a graph drawing device according to an embodiment of the present invention.

【図2】グラフを描画する動作の概念を示すフローチャ
ートである。
FIG. 2 is a flowchart showing the concept of an operation of drawing a graph.

【図3】図2のステップIII のスケール描画についての
詳細なフローチャートである。
FIG. 3 is a detailed flowchart of scale drawing in step III of FIG.

【図4】スケール描画の説明に用いるスケール例の説明
図である。
FIG. 4 is an explanatory diagram of a scale example used for describing scale drawing.

【図5】スケール描画の説明に用いるスケール例の説明
図である。
FIG. 5 is an explanatory diagram of a scale example used for describing scale drawing.

【図6】図2のステップIII のスケール描画についての
他の一例の詳細なフローチャートである。
FIG. 6 is a detailed flowchart of another example of the scale drawing in step III of FIG.

【図7】周期の長さが3のスケールとその計数値の例を
示す説明図である。
FIG. 7 is an explanatory diagram showing an example of a scale having a cycle length of 3 and its count value.

【図8】スケール描画の説明に用いるスケール例の説明
図である。
FIG. 8 is an explanatory diagram of a scale example used to describe scale drawing.

【図9】複数の周期を持つスケールとその各周期の計数
値の例を示す説明図である。
FIG. 9 is an explanatory diagram showing an example of a scale having a plurality of cycles and a count value of each cycle.

【符号の説明】[Explanation of symbols]

1 グラフ描画条件指定手段 2 スケール周期性記憶手段 3 スケール描画手段 4 データ入力手段 5 データ描画手段 6 表示手段 1 Graph Drawing Condition Designating Means 2 Scale Periodicity Storage Means 3 Scale Drawing Means 4 Data Input Means 5 Data Drawing Means 6 Display Means

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 グラフの描画条件を指定するグラフ描画
条件指定手段と、任意のスケールの周期性データを記憶
するスケール周期性記憶手段と、前記グラフ描画条件と
前記周期性データに基づいてスケールを描画するスケー
ル描画手段と、グラフとして描画すべき数値データ列を
入力するデータ入力手段と、前記数値データ列を描画す
るデータ描画手段と、描画された前記スケールおよび前
記データを表示するための表示手段を備え、前記スケー
ル周期性記憶手段において任意の目盛の周期の長さを少
なくとも一つ記憶することを特徴とするグラフ描画装
置。
1. A graph drawing condition designating unit for specifying a graph drawing condition, a scale periodicity storing unit for storing periodicity data of an arbitrary scale, and a scale based on the graph drawing condition and the periodicity data. Scale drawing means for drawing, data input means for inputting a numerical data string to be drawn as a graph, data drawing means for drawing the numerical data string, and display means for displaying the drawn scale and the data A graph drawing device comprising: a scale periodicity storage means for storing at least one cycle length of an arbitrary scale.
【請求項2】 スケール周期性記憶手段において、各周
期について目盛線の表示属性を指定することを特徴とす
る請求項1記載のグラフ描画装置。
2. The graph drawing apparatus according to claim 1, wherein the scale periodicity storage means specifies a display attribute of a scale line for each cycle.
【請求項3】 スケール周期性記憶手段において各周期
について優先度を指定し、スケール描画手段により優先
度の高い目盛を描画することを特徴とする請求項1記載
のグラフ描画装置。
3. The graph drawing apparatus according to claim 1, wherein the scale periodicity storage means specifies a priority for each cycle, and the scale drawing means draws a scale having a high priority.
【請求項4】 スケール周期性記憶手段に記憶されてい
るすべての周期の長さが、ある単位長の整数倍として表
現され、すべての周期が共通の基準点から開始されると
き、スケール描画手段は前記各周期Pi ごとにPi 進法
計数手段を備え、前記計数手段の計数値は前記基準点で
0となり、位置を前記基準点から前記単位長移動するご
とに計数値を1増加あるいは減少し、ある位置で計数値
が0となる周期が少なくとも1つ存在するとき、この周
期のうちで最も優先度の高い周期に対応する目盛をこの
位置に描画することを特徴とする請求項3記載のグラフ
描画装置。
4. The scale drawing means when the lengths of all the cycles stored in the scale periodicity storage means are expressed as an integral multiple of a certain unit length and all the cycles start from a common reference point. Is provided with P i base counting means for each cycle P i , the count value of the counting means becomes 0 at the reference point, and the count value is incremented by 1 each time the position is moved from the reference point by the unit length or 4. When there is at least one cycle in which the count value decreases and the count value becomes 0 at a certain position, a scale corresponding to the cycle with the highest priority in this cycle is drawn at this position. The described graph drawing device.
【請求項5】 スケール周期性記憶手段において、周期
の優先度を周期で兼用し、周期が長いほど優先度が高く
なることを特徴とする請求項3記載のグラフ描画装置。
5. The graph drawing apparatus according to claim 3, wherein in the scale periodicity storage means, the priority of the cycle is shared by the cycles, and the higher the cycle, the higher the priority.
【請求項6】 スケールを描画すると共にデータを表示
するグラフ描画方法において、指定されたグラフの描画
条件とこのグラフ描画条件中のもしくは予め記憶設定さ
れた任意のスケールの周期性データに基づいてスケール
を描画することを特徴とするグラフ描画方法。
6. A graph drawing method for drawing a scale and displaying data, wherein the scale is based on a specified graph drawing condition and periodic data of an arbitrary scale stored in the graph drawing condition or preset. A graph drawing method characterized by drawing.
【請求項7】 周期性データが複数種類の場合、その周
期について優先度を指定し、優先度の高い目盛を描画す
ることを特徴とする請求項6記載のグラフ描画方法。
7. The graph drawing method according to claim 6, wherein when there are a plurality of types of periodicity data, a priority is designated for the cycle and a scale with a high priority is drawn.
【請求項8】 周期の優先度を周期で兼用し、周期が長
いほど優先度が高くなることを特徴とする請求項7記載
のグラフ描画方法。
8. The graph drawing method according to claim 7, wherein the priority of the cycle is shared by the cycles, and the longer the cycle, the higher the priority.
JP17277092A 1992-06-30 1992-06-30 Method and device for plotting graph Pending JPH0620058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17277092A JPH0620058A (en) 1992-06-30 1992-06-30 Method and device for plotting graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17277092A JPH0620058A (en) 1992-06-30 1992-06-30 Method and device for plotting graph

Publications (1)

Publication Number Publication Date
JPH0620058A true JPH0620058A (en) 1994-01-28

Family

ID=15948015

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17277092A Pending JPH0620058A (en) 1992-06-30 1992-06-30 Method and device for plotting graph

Country Status (1)

Country Link
JP (1) JPH0620058A (en)

Similar Documents

Publication Publication Date Title
US5046026A (en) Method and apparatus for precisely varying the display rate of computer generated graphic images
JPH0620058A (en) Method and device for plotting graph
JP2000082082A (en) Display device for wiring tray network
JP3247036B2 (en) GUI providing device and GUI providing method
JP3045909B2 (en) Graphic processing method
JPH01205273A (en) Drawings managing device
JP2684609B2 (en) Graphic display method in graphic data processing device
JP2656489B2 (en) Drawing management method and apparatus
JP2998453B2 (en) Control execution order display device
JP2893786B2 (en) Figure selection method
JP2786098B2 (en) Figure enlargement editing method
JPH05135183A (en) Control point data processor
JPH0261774A (en) Indicating device for graphic element
JP2753250B2 (en) Drawing management method and apparatus
JPH0737115A (en) Enlarging plotting method for graphic
JPH02143325A (en) Window displaying system
JP2906059B2 (en) Voyage information display device
JPH08249501A (en) Method and device for making inside of three-dimensional area visible
JPH05334440A (en) Display system for branch shape graphic
JPH0546723A (en) Graphic generating device
JP2000347651A (en) Picture drawing processing device
JPH05250483A (en) Graph plotter
JPS59202568A (en) Graph forming device
JPH05165623A (en) Device and method for instructing tool classified by every processing method
JPH0477876A (en) Data control system