JP6286977B2 - Electronic device, display method, and display program - Google Patents
Electronic device, display method, and display program Download PDFInfo
- Publication number
- JP6286977B2 JP6286977B2 JP2013196146A JP2013196146A JP6286977B2 JP 6286977 B2 JP6286977 B2 JP 6286977B2 JP 2013196146 A JP2013196146 A JP 2013196146A JP 2013196146 A JP2013196146 A JP 2013196146A JP 6286977 B2 JP6286977 B2 JP 6286977B2
- Authority
- JP
- Japan
- Prior art keywords
- axis
- coordinate
- display
- graph
- display range
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims description 89
- 230000008569 process Effects 0.000 claims description 73
- 230000008859 change Effects 0.000 claims description 42
- 230000006870 function Effects 0.000 description 79
- 230000010365 information processing Effects 0.000 description 16
- 238000012545 processing Methods 0.000 description 12
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000011946 reduction process Methods 0.000 description 5
- 230000009467 reduction Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Landscapes
- Image Generation (AREA)
- Calculators And Similar Devices (AREA)
- Processing Or Creating Images (AREA)
Description
本発明は、電子機器、表示方法、及び、表示プログラムに関する。 The present invention relates to an electronic device, a display method, and a display program .
関数電卓や表計算ソフトなどにおいて、関数のグラフを見やすく表示するための技術が知られている。例えば、特許文献1は一旦表示したグラフの表示範囲を変更する技術を開示している。特許文献1のグラフ表示装置では、予め表示されたグラフから一部を選択すると、その部分を拡大して表示する。また、特許文献2は、ユーザの操作によりグラフの座標軸を対数軸に設定して表示する技術を開示している。
A technique for displaying a function graph in an easy-to-read manner in a scientific calculator or spreadsheet software is known. For example,
特許文献1の技術を用いてグラフの表示範囲を変更すると、座標軸同士の表示範囲の差が大きくなる場合がある。このような場合には対数軸でグラフを表示することが望ましい。しかしながら、特許文献2の技術を適用するだけでは、ユーザが対数軸に変更する操作を実行する必要がある。そのため、操作が煩雑となりユーザにとって利便性が低いという問題があった。
When the display range of a graph is changed using the technique of
本発明は、上記問題に鑑みてなされたものであって、グラフの表示範囲を変更する、利便性が高い電子機器、表示方法、及び、表示プログラムを提供することを目的とする。 The present invention has been made in view of the above problems, and an object thereof is to provide a highly convenient electronic device, a display method, and a display program that change a display range of a graph.
上記目的を達成するため、本発明に係る電子機器は、
制御部を備える電子機器であって、
前記制御部は、
グラフを表示しようとする座標の2つの座標軸の1つを線形軸と対数軸との間で切替えて、かつ、前記座標軸の1つが切替えられた第1の座標と前記座標軸の1つが切替えられない第2の座標とを同時に表示する第1処理を、前記2つの座標軸の表示範囲の差に基づいて自動的に実行するか、または、前記表示範囲の差にかかわらず前記第1処理を実行しないか、の設定を受け付け、
受け付けた前記設定に基づいて、前記第1処理を実行するか否かを決定し、
前記第1処理を実行すると決定した場合、前記第1の座標及び当該第1の座標上の第1のグラフとともに、前記第2の座標及び当該第2の座標上の第2のグラフを、表示部に表示させる。
また、本発明に係る他の態様の電子機器は、
制御部を備える電子機器であって、
前記制御部は、
グラフを表示しようとする座標の2つの座標軸のうちの少なくとも1つの座標軸の表示範囲を変更する指示を受け付け、
前記指示に基づいて表示範囲が変更された前記座標の一方の座標軸の表示範囲に対する他方の座標軸の表示範囲の比が閾値よりも大きいときに前記他方の座標軸を線形軸から対数軸に切替えるか或いは前記指示に基づいて表示範囲が変更された前記座標の他方の座標軸の表示範囲に対する一方の座標軸の表示範囲の比が閾値よりも大きいときに前記一方の座標軸を線形軸から対数軸に切替える第2処理を実行する。
In order to achieve the above object, an electronic apparatus according to the present invention provides:
An electronic device including a control unit,
The controller is
One of the two coordinate axes of the coordinates for which the graph is to be displayed is switched between a linear axis and a logarithmic axis, and the first coordinate in which one of the coordinate axes is switched and one of the coordinate axes cannot be switched. The first process for simultaneously displaying the second coordinates is automatically executed based on the difference between the display ranges of the two coordinate axes, or the first process is not executed regardless of the difference between the display ranges. Or accept settings,
Determining whether to execute the first process based on the received setting;
When it is determined to execute the first process, the second graph and the second graph on the second coordinate are displayed together with the first graph on the first coordinate and the first graph on the first coordinate. Display on the screen.
In addition, an electronic device according to another aspect of the present invention is
An electronic device including a control unit,
The controller is
Accepting an instruction to change the display range of at least one of the two coordinate axes of the coordinates for which the graph is to be displayed,
When the ratio of the display range of the other coordinate axis to the display range of one coordinate axis of the coordinate whose display range has been changed based on the instruction is greater than a threshold, the other coordinate axis is switched from a linear axis to a logarithmic axis, or The one coordinate axis is switched from a linear axis to a logarithmic axis when the ratio of the display range of one coordinate axis to the display range of the other coordinate axis of the coordinate whose display range is changed based on the instruction is larger than a threshold value. Two processes are executed.
本発明によれば、グラフの表示範囲を変更する、利便性が高い電子機器、表示方法、及び、表示プログラムを提供できる。 According to the present invention, it is possible to provide a highly convenient electronic device, display method, and display program for changing the display range of a graph.
以下、本発明を実施するための形態に係る関数電卓を、図を参照して説明する。なお、図中同一又は相当する部分には同一符号を付す。 Hereinafter, a scientific calculator according to an embodiment for carrying out the present invention will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals.
(実施形態1)
関数電卓1は、(i)関数のグラフを表示する機能、(ii)関数のグラフの表示範囲を変更する操作を受け付ける機能、(iii)変更されたグラフの表示範囲に応じて、グラフの座標軸を線形軸と対数軸とで切り替えるか否かを決定する機能、(iv)決定に応じて座標軸を切り替えたグラフを表示する機能、等を有する。
(Embodiment 1)
The
関数電卓1は図1に示すように入力部10と、情報処理部20と、タッチパネル30と、を備える。
As shown in FIG. 1, the
入力部10は、キーボード、ボタン、ポインティングデバイス等の、ユーザの操作を受付ける操作受付装置と、操作受付装置が受け付けた操作の情報を情報処理部20に伝達する伝達部と、から構成される。入力部10は、このような物理構成によりユーザの操作を受け付けて、操作情報を情報処理部20に伝達する。
The
情報処理部20は、物理的には、図2に示すようにCPU(Central Processing Unit)21と、RAM(Random Access Memory)22と、ROM(Read−Only Memory)23と、I/O(Input/Output)部24と、内部バス26と、から構成される。
As shown in FIG. 2, the
CPU21は、関数電卓1の諸機能を制御する中央演算装置であり、ROM23からRAM22にロードされたプログラムを実行して、後述する処理を実行する。
The
RAM22は、CPU21が実行するプログラムや中間データを一時的に保存し、CPU21が各種処理を行う際の作業領域として使用する揮発性メモリである。
ROM23は、CPU21が実行するプログラムを格納している不揮発性メモリである。
The
The
I/O部24は、USB(Universal Serial Bus)やシリアルポート、LAN(Local Area Network)アダプタ等のインターフェース機器から構成され、情報処理部20に接続された入力部10やタッチパネル30、その他外部装置等との情報の入出力を実現する。
The I /
なお、情報処理部20は、RAM22やROM23の他に、一時作業領域や必要なデータを記憶するための外部記憶装置を備えていても良い。CPU21と、RAM22と、ROM23と、I/O部24とは内部バス26によってそれぞれ接続され、相互に情報の送信が可能である。
In addition to the
情報処理部20は、上記物理構成により関数取得部210と、表示制御部220と、操作受付部230と、切替決定部240と、変更部250と、関数記憶領域2610及び設定記憶領域2620が設定された記憶部260と、として機能する。情報処理部20の各部の機能については後述する。
In the
タッチパネル30は、液晶ディスプレイ等の表示装置から構成される表示部310と、表示部310に重ねられたセンサ部320と、から構成される。本実施形態では、センサ部320には、静電容量式のタッチセンサといった、マルチタッチを判別可能なセンサを用いる。タッチパネル30はこのような構成により、情報処理部20からの指示に応じた画面を表示する。更に、タッチパネル30は表示した画面に対するユーザの操作を検知し、情報処理部20に伝達する。
The
次に、関数電卓1が実行する処理に付いて、フローチャートを参照して説明する。関数電卓1は、ユーザが入力部10のうち設定操作に対応するボタンを押下すると、図3に示す設定処理を開始する。
Next, processing executed by the
設定処理では、まずCPU21が表示部310に図4に示すような設定画面を表示させる(ステップS101)。図4の例では、ユーザがラジオボタンをセット/アンセットすることで、関数電卓1の機能の有効/無効を切り替えることができる。図4の「対数軸と線形軸とを自動的に切り替える」のラジオボタンをチェックすると、グラフの座標軸を線形軸から対数軸に自動的に切り替える機能が有効となる。この場合、切り替えたグラフと切り替えないグラフとを同時に表示するか否かを、さらに設定することが出来る。
一方、「自動的には切り替えない」をチェックすると、切り替え機能は無効となる。
In the setting process, the
On the other hand, when “Do not automatically switch” is checked, the switching function is disabled.
CPU21は、次に表示した設定画面を用いた設定操作を受け付けたか否か判別する(ステップS102)。未だ受けつけて居ない場合には(ステップS102;No)、ステップS101を繰り返して、ユーザが設定操作を実行するまで待ち受ける。
The
例えば図4のラジオボタンを操作した後にユーザが確定のボタンをタッチした場合には、設定操作を受け付けたと判別する(ステップS102;Yes)。この場合には、CPU21は、受け付けた設定内容を、記憶部260に設定された設定記憶領域2620に記憶する(ステップS103)。設定記憶領域2620に記憶された設定情報は、情報処理部20の各部から参照・上書き更新される。そして、設定処理は終了する。
For example, if the user touches the confirmation button after operating the radio button in FIG. 4, it is determined that the setting operation has been accepted (step S102; Yes). In this case, the
このようにして予め記憶された設定情報に基づき、関数電卓1はグラフ表示を制御する。関数電卓1は、入力部10のうち関数のグラフ表示を指示するボタンが押下されると、図5に示すグラフ表示処理を開始する。図1に示す情報処理部20の各部(関数取得部210、表示制御部220、操作受付部230、切替決定部240、変更部250、記憶部260)は、CPU21が図5以下の処理を実行することで実現されるが、以下便宜的に各部を処理の主体として説明する。
Based on the setting information stored in advance in this way, the
グラフ表示処理では、まず関数取得部210がグラフ表示する関数を取得する(ステップS201)。関数取得部210は、入力部10を用いたユーザのキー操作が指定する関数を取得しても良いし、予め関数記憶領域2610に記憶されている関数を読み出しても良い。
In the graph display process, first, the
次に、表示制御部220が、取得した関数を表示するための設定情報を取得する(ステップS202)。本実施形態では、記憶部260の設定記憶領域2620に記憶されたデフォルトの表示設定を取得するものとする。ここでは、xを変数とする関数y(x)を、x軸とy軸が共に線形軸のグラフ上に描写することを指定する設定情報を取得した場合について説明する。なお、デフォルト設定は工場出荷時に記憶される他、ユーザが入力部10を用いて設定可能としてもよい。
Next, the
次に、表示制御部220が、ステップS201で取得した関数を、ステップS202で取得した表示設定でグラフ表示する(ステップS203)。このように、表示制御部220は、ステップS201で取得した関数のグラフを、複数の座標軸のうち少なくとも一つ(この例ではy軸及びx軸の二つ)が線形軸である座標上に生成し、表示装置であるタッチパネル30に表示させる。
Next, the
次に、操作受付部230が、センサ部320から伝達された情報に基づいて、表示されたグラフに対するタッチ操作を検出したか否かを判別する(ステップS204)。タッチ操作を検出していない場合には(ステップS204;No)、ステップS210にスキップする。一方、タッチ操作を検出した場合には(ステップS204;Yes)、操作受付部230は、設定記憶領域2620に記憶された設定情報を参照して、切替機能が有効であるか否か判別する(ステップS204A)。例えば図3のステップS103で記憶した設定情報において、切り替え機能が有効でないと指定されている場合には(ステップS204A;No)、ステップS210まで処理をスキップする。
Next, based on the information transmitted from the
一方、切り替え機能が有効であると指定されている場合には(ステップS204A;Yes)、次に操作受付部230は、タッチ操作が2本の指が離れるように移動するピンチアウトであるか否か判別する(ステップS205)。
On the other hand, when it is designated that the switching function is valid (step S204A; Yes), the
ステップS205にてピンチアウトであると判別すると(ステップS205;Yes)、操作受付部230は、図6に示す表示領域拡大処理を開始する(ステップS206)。
If it is determined in step S205 that it is a pinch out (step S205; Yes), the
表示領域拡大処理では、まず操作受付部230がピンチアウトの変化量を算出する(ステップS301)。例えば、ピンチアウトの開始時点で2指が(X1,Y1)と(X2,Y2)の位置にあり、終了時点で(X1’,Y1’)と(X2’,Y2’)に移動したとする(図9(A))。X軸の変化量として、開始時点の2指の距離(X1−X2)と終了時点の距離(X1’−X2’)の比drXを算出する(式(1))。同様に、Y軸の変化量drYも下記式(2)で算出される。
In the display area expansion process, first, the
drX=(X1’−X2’)/(X1−X2)・・・(1)
drY=(Y1’−Y2’)/(Y1−Y2)・・・(2)
drX = (X1′−X2 ′) / (X1−X2) (1)
drY = (Y1′−Y2 ′) / (Y1−Y2) (2)
次に、切替決定部240がピンチアウトによって変更される新たなグラフの表示範囲を決定する(ステップS302)。例えば、更新前のyが最大値YHから最小値YLまで表示されていたとすると、更新後のY軸の表示範囲を最小値Ymin=YL×drY〜最大値Ymax=YH×drYまでとすればよい。図9(A)のように、YがYL=−5〜YH=+5まで表示されているときに、18倍のピンチアウトが実行された場合(drYが18)、更新後のY軸の表示範囲は−90〜+90になる(図9(B))。X軸についても同様に、更新前のxが最大値XHから最小値XLまで表示されていたとすると、更新後のX軸の表示範囲は最大値Xmax=XH×drX〜最小値Xmin=XL×drXに決定される。
Next, the switching
なお、ステップS301とS302における決定方法は上記の例に限定されない。例えば、上記の式(1)、(2)に限らず、1ドット分ピンチアウトされる毎に、拡大率を1%に設定するなど、ユーザの好みに合わせて既知の任意の方法で新たな表示範囲を決定すればよい。また、原点を中心としない場合には現在の表示範囲の中心を拡大の中心として、更新された表示範囲とする。 Note that the determination method in steps S301 and S302 is not limited to the above example. For example, not only in the above formulas (1) and (2), each time a dot is pinched out, the enlargement ratio is set to 1%. The display range may be determined. If the origin is not the center, the updated display range is set with the center of the current display range as the center of enlargement.
次に、切替決定部240は更新後の表示範囲において、グラフの複数の座標軸(X軸及びY軸)上で関数の値(Yの値)又は変数(Xの値)が表示される範囲の差が所定の閾値(例えば100倍)を超えるか否かを判別する。具体的には、まず関数の値yが表示される範囲(Ymax−Ymin)と変数xが表示される範囲(Xmax−Xmin)との比rY=(Xmax−Xmin)/(Ymax−Ymin)を算出する。そして比rYが100:1より大きいか否か判別する(S303)。
Next, the switching
Y軸の表示範囲がX軸の表示範囲と比べて閾値である100倍超、即ち比rY100:1より大きい場合には(ステップS303;Yes)、Y軸が線形軸から対数軸に切り替えるか否かの判定対象となる。 If the display range of the Y axis is more than 100 times the threshold value compared to the display range of the X axis, that is, the ratio rY100: 1 is larger (step S303; Yes), whether or not the Y axis is switched from the linear axis to the logarithmic axis. It becomes the judgment object.
ステップS303でYesと判別すると、次に切替決定部240は変更された表示範囲全体で、y>0に関数が描写されるか否か判別する(ステップS304)。例えば、取得された関数y(x)=10^xである場合には、xの表示範囲に関わらずy>0である。一方、関数y(x)=xである場合には、xの表示範囲がx>0である場合には表示範囲全体でy>0であるが、x≦0が表示範囲に含まれる場合には表示範囲全体でy>0ではない。
If it is determined Yes in step S303, the switching
変更された表示範囲全体で、y>0に関数が描写されると判別すると(ステップS304;Yes)、一つの切り替え条件が成立したと判断できるので、ステップS305で次の切り替え条件が成立したか否か判別する。このように、y=f(x)の変数域をXmin≦x≦Xmaxとして、変数域内の全てのxについてy(x)>0が成立すると、ステップS304に関する切り替え条件が成立したと判断できる。 If it is determined that the function is drawn at y> 0 in the entire changed display range (step S304; Yes), it can be determined that one switching condition is satisfied, so whether the next switching condition is satisfied in step S305. Determine whether or not. Thus, if the variable range of y = f (x) is set to Xmin ≦ x ≦ Xmax, and y (x)> 0 is satisfied for all x in the variable range, it can be determined that the switching condition for step S304 is satisfied.
なお、変更された表示範囲全体で、y>0に関数がプロットされていないと判別すると(ステップS304;No)、y軸についての対称軸に切り替えないと決定してステップS313までスキップする。 If it is determined that the function is not plotted at y> 0 in the entire changed display range (step S304; No), it is determined not to switch to the symmetry axis about the y axis, and the process skips to step S313.
ステップS305では、切替決定部240は変更されたx軸(判定対象でない座標軸)の表示範囲で、y>Ymaxの部分に関数が描写されるか否か判別する(ステップS305)。つまり、y軸の正方向に関数が振り切れていることが対数軸に切り替ると決定するための条件の一つとなる。変更されたx軸の表示範囲(Xmin〜Xmax)を変数域とするyの値が、Ymax以下の範囲に収まれば(値域がy≦Ymaxであれば)、y>Ymaxの部分に関数が描写されないと判別する(ステップS305;No)。この場合には、この条件は成立しないので、y軸についての対称軸に切り替えないと決定してステップS313までスキップする。
In step S305, the switching
一方、変更されたx軸の表示範囲(Xmin〜Xmax)を変数域とするyの値に、Ymaxより大きい値があれば(値域がy≦Ymaxに収まらない)、y>Ymaxの部分に関数がプロットされていると判別する(ステップS305;Yes)。この場合に、ステップS305の切替条件は成立するので、ステップS306に移行して次の条件について判別する。この切替条件が成立することは、y=f(x)の変数域をXmin≦x≦Xmaxとして、変数域内の何れかxについてはy(x)>0が成立することと等しい。 On the other hand, if there is a value larger than Ymax in the value of y having the changed x-axis display range (Xmin to Xmax) as the variable range (the range does not fall within y ≦ Ymax), a function is added to the portion where y> Ymax. Is plotted (step S305; Yes). In this case, since the switching condition in step S305 is satisfied, the process proceeds to step S306 to determine the next condition. Satisfying this switching condition is equivalent to satisfying y (x)> 0 for any x in the variable range, where the variable range of y = f (x) is Xmin ≦ x ≦ Xmax.
そして、ステップS306にて切替決定部240は、現在Y軸が線形軸として表示されているか否か判別する(ステップS306)。線形軸でない場合(対数軸の場合)には(ステップS306;No)、対数軸に切り替えても無意味なのでステップS313に移行する。一方、線形軸で有る場合には(ステップS306;Yes)、ステップS307にてY軸を対数軸に切り替える(図9(C))。切り替えられたグラフは、後述するステップS313で新たに表示される。
In step S306, the switching
なお、ステップS307ではY軸の表示範囲を対数の底(例えば10)で割り切れる位置にさらに変更して、グラフの可視性を向上しても良い。例えば、対数の底が10(自然対数)であれば、Y軸の表示範囲の上限及び下限を1、10、100、…といった切りの良い値に変更する。 In step S307, the visibility of the graph may be improved by further changing the display range of the Y axis to a position divisible by the logarithm base (for example, 10). For example, if the base of the logarithm is 10 (natural logarithm), the upper and lower limits of the Y-axis display range are changed to good values such as 1, 10, 100,.
ステップS303に戻って、y軸:x軸の表示領域の比が100:1以下の場合には(ステップS303;No)、切替決定部240はx軸を対数軸に切り替えるか否かを判別する。まず、切替決定部240はx軸:y軸が閾値である100:1より大きい(x軸の表示領域がy軸の100倍より大きい)か否か判別する(ステップS308)。X軸対Y軸の比が閾値である100:1以下の場合には(ステップS308;No)、X軸を対数軸に切り替えないと判定して、ステップS313にスキップする。一方、100:1より大きい場合には(ステップS308;Yes)、切替決定部240は、ステップS304と同様に、表示範囲全体でx>0であるか否か判別する(ステップS309)。例えば、更新された表示範囲でx軸の表示範囲(表示されるf(x)の変数域)が1<x<100で有る場合には、表示範囲全体でx>0であると判別し(ステップS309;Yes)、ステップS310の判定処理に移行する。一方、表示範囲全体でx>0でない場合には、X軸を対数軸に切り替えないと判別(ステップS309;No)してステップS313までスキップする。
Returning to step S303, if the ratio of the y-axis: x-axis display area is 100: 1 or less (step S303; No), the switching
次に、ステップS305と同様に、切替決定部240は変更されたy軸(判定対象でない座標軸)の表示範囲で、x>Xmaxの部分に関数がプロットされるか否か判別する(ステップS310)。更新された表示範囲でx軸の正の方向に関数が振り切れている場合には、x>Xmaxの部分に関数がプロットされていると判別して(ステップS310;Yes)、ステップS311に移行する。一方、振り切れていない場合には、x>Xmaxの部分に関数がプロットされていないと判別して(ステップS310;No)、そのままステップS313に移行する。この場合、x軸は対数軸には切り替えられない。
Next, similarly to step S305, the switching
そして、ステップS311にて切替決定部240は、現在x軸が線形軸として表示されているか否か判別する(ステップS311)。線形軸でない場合には(ステップS311;No)、対数軸に切り替えても無意味なのでステップS313に移行する。一方、線形軸で有る場合には(ステップS311;Yes)、ステップS312にてX軸を対数軸に切り替えることを決定する。
In step S311, the switching
なお、ステップS307と同様に、ステップS312でx軸の表示範囲を対数の底で割り切れる位置にさらに変更して、グラフの可視性を向上しても良い。 Similar to step S307, the visibility of the graph may be improved by further changing the display range of the x-axis to a position divisible by the logarithm base in step S312.
ステップS313では、変更部250が、表示制御部220を用いて、表示範囲を変更(拡大)したグラフをタッチパネル30に表示させる。このとき、ステップS307を実行した際にはy軸を、ステップS312を実行した場合にはx軸を、それぞれ線形軸から対数軸に変更した上でグラフを表示させる。
In step S <b> 313, the changing
ステップS313が終了すると、表示領域拡大処理は終了する。図5に戻って、ステップS206が終わると、次にプロセスはステップS209に移る。一方、ステップS205にてタッチ操作がピンチアウトでないと判別すると(ステップS205;No)、次に操作受付部230はそのタッチ操作が2本の指が近づくように移動するピンチインであるか否か判別する(ステップS207)。
When step S313 ends, the display area enlargement process ends. Returning to FIG. 5, after step S206 is completed, the process then moves to step S209. On the other hand, when it is determined in step S205 that the touch operation is not a pinch-out (step S205; No), the
ステップS207にてピンチインであると判別すると(ステップS207;Yes)、操作受付部230は、図7に示す表示領域縮小処理を開始する(ステップS208)。
If it is determined in step S207 that it is a pinch-in (step S207; Yes), the
表示領域縮小処理では、操作受付部230が、図6のステップS301とS302と同様に、ピンチインの変化量を算出し(ステップS401)、変更後の新たな表示範囲を決定する(ステップS402)。ステップS205やS301、S207,S401の処理を実行することで、操作受付部230は、グラフにおける関数の表示範囲を変更する変更指示を受け付ける機能を発揮する。
In the display area reduction process, the
そして、切替決定部240は、ステップS303とは逆に、ステップS402で決定した変更後の表示範囲において、x軸に対するy軸の比(y軸:x軸)が所定の閾値である100:1以下か否か判別する(ステップS403)。100:1以下の場合には(ステップS403;Yes)、現在Y軸が対数軸として表示されているか否か判別する(ステップS404)。対数軸でない場合には(ステップS404;No)、線形軸に切り替えても無意味なのでステップS409に移行する。一方、対数軸で有る場合には(ステップS404;Yes)、ステップS405にてy軸を線形軸に切り替える。切り替えられたグラフは、後述するステップS409で新たに表示される。
Then, contrary to step S303, in the display range after the change determined in step S402, the switching
ステップS403に戻って、y軸:x軸の比が100:1より大きい場合には(ステップS403;No)、切替決定部240はx軸を線形軸に切り替えるか否かを判別する。まず、切替決定部240はx軸:y軸が閾値である100:1以下か否か判別する(ステップS406)。y軸に対するx軸の比が閾値である100:1以下の場合には(ステップS406;No)、x軸を線形軸に切り替えないと判別して、ステップS409にスキップする。
Returning to step S403, if the ratio of y-axis: x-axis is greater than 100: 1 (step S403; No), the switching
一方、100:1未満である場合には(ステップS406;Yes)、切替決定部240は、現在x軸が対数軸として表示されているか否か判別する(ステップS407)。対数軸でない場合には(ステップS407;No)、線形軸に切り替えても無意味なのでステップS409に移行する。一方、対数軸である場合には(ステップS407;Yes)、ステップS408にてx軸を線形軸に切り替える。切り替えられたグラフは、後述するステップ409で新たに表示される。
On the other hand, if it is less than 100: 1 (step S406; Yes), the switching
ステップS409では、変更部250が、表示制御部220を用いて、表示範囲を変更(縮小)したグラフをタッチパネル30に表示させる。このとき、ステップS405を実行した際にはY軸を、ステップS408を実行した場合にはX軸を、それぞれ対数軸から線形軸に変更した上でグラフを表示させる。
In step S409, the
ステップS409が終了すると、表示領域縮小処理は終了する。図5に戻って、ステップS206又はS208が終わると、変更部250は図8に示す同時表示処理を開始する(ステップS209)。
When step S409 ends, the display area reduction process ends. Returning to FIG. 5, when step S206 or S208 ends, the changing
同時表示処理では、まず変更部250が図5のステップS206又はS208で座標軸を線形軸と対数軸とで切り替えたか否か判別する(ステップS501)。切り替えていない場合には(ステップS501;No)、同時表示処理を終了する。
In the simultaneous display process, first, the changing
一方、切り替えていた場合には(ステップS501;Yes)、次に変更部250は設定記憶領域2620に記憶された設定情報を参照して、図3の設定処理で「同時表示する」に設定されていたか判別する(ステップS502)。同時表示設定が有効でない場合には(ステップS502;No)、同時表示処理を終了する。
On the other hand, when switching has been performed (step S501; Yes), the changing
同時表示設定が有効である場合には(ステップS502;Yes)、座標軸を線形軸と対数軸とで切り替えたグラフに加えて、座標軸を線形軸から対数軸に、あるいは対数軸から線形軸に切り替えることなく表示範囲のみを変更したグラフをさらに同時に表示させる(ステップS503)。 When the simultaneous display setting is valid (step S502; Yes), in addition to the graph in which the coordinate axis is switched between the linear axis and the logarithmic axis, the coordinate axis is switched from the linear axis to the logarithmic axis, or from the logarithmic axis to the linear axis. A graph in which only the display range is changed is displayed at the same time (step S503).
ステップS503では、座標軸を線形軸と対数軸とで切り替えたグラフと切り替えた座標軸(例えば黒)とを同じ色で表示する。また、切り替えることなく表示範囲のみを変更したグラフについても、切り替えなかった座標軸と同じ色(切り替えたグラフとは異なる色、例えば赤)で表示する(図10(B))。
このような構成によれば、ユーザは煩雑な操作の要なく、自動的に座標軸を線形軸と対数軸とで切り替えたグラフと、切り替えなかったグラフを比較して、所望のグラフを選択して表示することが出来る。また、同時に表示されたグラフと座標軸とを色分けすることで、二つの座標軸とグラフが重ねて同時に表示されても何れが何れであるか判別することが出来る。
なお、ここでは座標軸を切り替えたグラフと切り替えなかったグラフとを重ねて表示したが、別のグラフとして並べて表示しても良い。
In step S503, the graph in which the coordinate axis is switched between the linear axis and the logarithmic axis and the switched coordinate axis (for example, black) are displayed in the same color. Further, a graph in which only the display range is changed without switching is also displayed in the same color as the coordinate axis that has not been switched (a color different from the switched graph, for example, red) (FIG. 10B).
According to such a configuration, the user can select a desired graph by comparing the graph in which the coordinate axis is automatically switched between the linear axis and the logarithmic axis and the graph in which the coordinate axis is not switched without requiring a complicated operation. Can be displayed. Further, by color-coding the graph and the coordinate axis displayed at the same time, it is possible to determine which is the same even if the two coordinate axes and the graph are displayed simultaneously.
Although the graph in which the coordinate axes are switched and the graph in which the switching has not been performed are overlapped and displayed here, they may be displayed side by side as separate graphs.
図5に戻って、ステップS209が終わるか、ステップS204でタッチ操作を検出しないと判別するか(ステップS204;No)、ステップS204Aで切り替え機能が有効でないと判別するか(ステップS204A;No)、ステップS207でピンチインでないと判別すると(ステップS207;No)、情報処理部20は、その他の処理を実行する(ステップS210)。その他の処理とは、グラフ表示の中断や計算機能の実行といった、グラフの表示・更新とは異なる関数電卓1の機能を実行するための処理である。
ステップS210が終わると、情報処理部20はステップS203に戻ってグラフを表示し、次のタッチ操作を待ち受ける。
Returning to FIG. 5, whether step S209 ends, whether it is determined in step S204 that no touch operation is detected (step S204; No), whether it is determined in step S204A that the switching function is not valid (step S204A; No), If it is determined in step S207 that it is not a pinch-in (step S207; No), the
When step S210 ends, the
上述した処理によって、関数電卓1は例えば図9や図10に示すような機能をユーザに提供する。例えば、関数y(x)=10^xをグラフ表示させる入力するとする。これに応じて、図9(A)のようにデフォルトの表示範囲で、x軸とy軸とが線形軸のグラフ上に関数が描写(プロット)される。これに対してy軸を拡大するように縦方向にピンチアウトすると、図9(B)のように自動的にy軸の表示範囲が拡大して表示される。
Through the processing described above, the
図9(B)では、y軸の表示範囲が−100から+100、x軸の表示範囲は−8から+8であるので、図6のステップS303とS308とでNoと判別され、X軸もY軸も対数軸に切り替えられずそのまま表示されている。 In FIG. 9B, since the y-axis display range is −100 to +100 and the x-axis display range is −8 to +8, it is determined No in steps S303 and S308 in FIG. The axes are displayed as they are without being switched to logarithmic axes.
図9(B)の状態でさらにピンチアウトし、Y軸の表示範囲がX軸に対して100倍を超えると、図9(C)のようにY軸が対数軸に変換される。この結果、煩雑な操作の要なく、X軸とY軸とで100倍を超えるなど、表示領域の差が大きい場合でも変数xと関数の値yとの関係が確認しやすいグラフを表示することが出来る。ここで、図3の設定処理で自動切り替え機能を無効にすると、図9(D)のようにY軸が線形軸のまま表示される。この場合、2つの軸の表示範囲が大きく異なるので、関数の曲線がどのような形状であるのか把握しにくい。しかしながら、常に自動で切りかわると、線形軸のままのグラフを利用したい場合に却って不便である。そこで、通常時は自動切り替え機能を有効にし、不要な場合には機能を無効にできるようにして利便性を確保している。 If pinch out is further performed in the state of FIG. 9B and the display range of the Y axis exceeds 100 times the X axis, the Y axis is converted to a logarithmic axis as shown in FIG. 9C. As a result, it is possible to display a graph in which the relationship between the variable x and the function value y can be easily confirmed even when there is a large difference in display area, such as exceeding 100 times between the X axis and the Y axis without requiring complicated operations. I can do it. If the automatic switching function is disabled in the setting process of FIG. 3, the Y axis is displayed as a linear axis as shown in FIG. 9D. In this case, since the display ranges of the two axes are significantly different, it is difficult to grasp the shape of the function curve. However, always switching automatically is inconvenient if you want to use a graph with a linear axis. Therefore, convenience is ensured by enabling the automatic switching function in normal times and disabling the function when unnecessary.
また、図3の設定処理で同時表示機能を有効にした状態では、切り替える前(図10(A))からピンチアウトして切り替え条件が成立すると、図10(B)のように対数軸に変化したグラフと線形軸のままのグラフとが同時に表示される。この状態でさらにピンチアウトすると、対数軸の表示範囲が拡大される(図10(C))。 Also, in the state where the simultaneous display function is enabled in the setting process of FIG. 3, if the switching condition is satisfied by pinching out before switching (FIG. 10A), the logarithmic axis is changed as shown in FIG. 10B. And the graph with the linear axis are displayed at the same time. Further pinching out in this state expands the display range of the logarithmic axis (FIG. 10C).
以上説明したとおり、本実施形態の関数電卓1は、関数取得部210が取得した関数が描画された、x軸とy軸といった複数の座標軸のうち少なくとも一つが線形軸であるグラフを、表示制御部220がタッチパネル30に表示させる。そして、操作受付部230が、表示されたグラフの表示範囲を変更する変更指示として、タッチ操作(ピンチイン・ピンチアウト)を受け付け、表示範囲を変更する。ここで、更新される表示範囲において、x軸で変数xが表示される範囲と、y軸で関数の値yが表示される範囲と、の差が所定の差(例えば100倍)を超えたか否か判別し、超えていた場合には切替決定部240が一方を対数軸に切り替えることを決定する。そして、変更部250が大きい方の線形軸を対数軸に切り替えた上で、表示範囲を変更したグラフをタッチパネル30に表示させる。
As described above, the
このような構成によれば、グラフの座標軸同士で表示される変数や関数の値の差が大きくなり、数値同士の関係がわかりにくくなった場合に、煩雑な操作の要なく見やすい片対数グラフに変更することが出来る。そのため、ユーザにとって利便性が高くなる。 According to such a configuration, when the difference between the values of variables and functions displayed between the coordinate axes of the graph becomes large and it becomes difficult to understand the relationship between the numerical values, it becomes a semilogarithmic graph that is easy to see without the need for complicated operations. Can be changed. Therefore, convenience for the user is increased.
また、表示装置と操作の受け付け手段として、タッチパネルを採用している。そのため、ピンチアウト・ピンチインといった直感的な操作でグラフの表示範囲の拡大・縮小が可能となる。一方で、タッチパネルを用いた操作は確実性に欠け、ユーザの意図よりも拡大や縮小が行き過ぎ、曲線の差が読み取りにくい、意味のないグラフとなってしまう場合も多い。そこで関数電卓1では、タッチパネルを用いた構成で、関数軸の表示範囲の差が大きくなった場合には自動で対数軸に切り替えることで、意味のないグラフが表示される割合を小さくしてタッチパネルの弱点をカバーしている。
Further, a touch panel is adopted as a display device and an operation receiving means. Therefore, the graph display range can be enlarged or reduced by an intuitive operation such as pinch-out and pinch-in. On the other hand, an operation using a touch panel lacks certainty, and in many cases, enlargement or reduction is excessive than the user's intention, resulting in a meaningless graph in which a difference in curves is difficult to read. Therefore, the
さらに、線形軸を対数軸に切り替えたグラフを表示した場合には、同時表示処理により図10(B)や(C)のように線形軸を対数軸に切り替えることなく表示範囲を変更したグラフをさらに(同時に)表示する。このような構成により、自動切り換えを行った場合と行わない場合とを容易に比較することができるため、よりユーザにとっての利便性を高めることが出来る。 Furthermore, when a graph in which the linear axis is switched to the logarithmic axis is displayed, the graph in which the display range is changed without switching the linear axis to the logarithmic axis as shown in FIGS. 10B and 10C by the simultaneous display processing. Further (at the same time) display. With such a configuration, it is possible to easily compare the case where automatic switching is performed with the case where automatic switching is not performed, and thus the convenience for the user can be further improved.
また、グラフの複数の座標軸のうち、表示される範囲が他の座標軸よりも所定の閾値を超えて大きい線形軸を対数軸に切り替えるため、煩雑な操作の要なく表示範囲の大きい座標軸を選択的に対数軸に切り替えることができる。 In addition, among the multiple coordinate axes of the graph, a linear axis whose displayed range exceeds a predetermined threshold value than the other coordinate axes is switched to a logarithmic axis, so that a coordinate axis having a large display range can be selectively selected without requiring a complicated operation. You can switch to the logarithmic axis.
また、対数軸に変換するか決定するにあたって、更新される表示範囲において、他の座標軸よりも所定の閾値を超えて大きい線形軸(切り替え対象の座標軸)では表示範囲外だが、他の座標軸では表示範囲内の部位に関数が描画される場合に、線形軸を対数軸に切り替える。例え座標軸同士で表示範囲の差が大きくなっても、グラフがその正の方向に振り切れていなければ、グラフにおいて関数の形状を把握できる割合は高い。このような構成によれば、グラフの形状に応じて、必要性が高い場合に限って自動的に対数軸を線形軸に変換できるので、不要な変換を避けユーザの利便性を高めることが出来る。 Also, when deciding whether to convert to a logarithmic axis, in the updated display range, the linear axis (coordinate axis to be switched) that is larger than the other coordinate axes and exceeds a predetermined threshold is outside the display range, but is displayed on the other coordinate axes When a function is drawn in a region within the range, the linear axis is switched to the logarithmic axis. Even if the difference in display range between coordinate axes increases, if the graph does not swing in the positive direction, the ratio of the function shape in the graph is high. According to such a configuration, the logarithmic axis can be automatically converted to a linear axis only when the necessity is high according to the shape of the graph, so that unnecessary conversion can be avoided and user convenience can be improved. .
さらに、対数軸に切り替えるにあたって、表示される範囲が他の座標軸よりも所定の閾値を超えて大きい線形軸を対数軸に切り替えると決定することで、対数に変換できない負の値が含まれない場合にかぎって対数軸に変換することができる。このため、負の対数を計算することによって生じるエラーを防ぐことが出来る。 Furthermore, when switching to the logarithmic axis, if the displayed range is larger than the other coordinate axes and exceeds the predetermined threshold, it is determined that the linear axis is switched to the logarithmic axis, so that negative values that cannot be converted to logarithm are not included It can be converted to logarithmic axis only. For this reason, the error which arises by calculating a negative logarithm can be prevented.
また、切替決定部240は、複数の座標軸のうち少なくとも一つが対数軸であるグラフが表示されている場合に、受け付けた更新指示によって更新される表示範囲において、グラフの複数の座標軸上で関数の値y又は変数xが表示される範囲の差が所定の閾値以下であるか否かを判別し、判別の結果に基づいてグラフの座標軸を対数軸から線形軸に切り替えるか否かを決定する。そして、線形軸に切り替えると決定された場合には、変更部250が判定対処の対数軸を線形軸に切り替えた上で、表示範囲を変更したグラフをタッチパネルに表示させる。
このような構成によれば、一旦対数軸に変更したグラフについても、容易に線形軸にもどすことができる。そのため、ユーザの利便性が高い。
In addition, when a graph in which at least one of the plurality of coordinate axes is a logarithmic axis is displayed, the switching
According to such a configuration, a graph once changed to the logarithmic axis can be easily returned to the linear axis. Therefore, user convenience is high.
(変形例)
以上、本発明の実施形態1について説明したが、本発明の実施形態はこれに限られない。
例えば、上記実施形態1では、ピンチアウトの操作を受けた場合に線形軸から対数軸に切り替える処理を実行すると共に、ピンチインの操作を受け付けた場合には対数軸から線形軸に切り替える処理を実行した。これに限定されず、表示範囲の拡大指示(ピンチアウト)を受け付けたときに対数軸から線形軸に切り替える処理を実行する構成や、縮小指示(ピンチイン)を受け付けたときに線形軸から対数軸に切り替える処理を実行する構成も有効である。このためには領域拡大処理と表示領域縮小処理とを区別せず、何れを受け付けたときにも図6と図7のうち重複しない処理を全て実行すればよい。
例えば2つの座標軸のうち、一方(例えばx軸)が対数軸で、他方(例えばy軸)が線形軸で表示されているときに、対数軸(x軸)が縮小されるのみならず、線形軸(y軸)が拡大されて両者の表示範囲の差が100倍を下回る場合がある。あるいは、共に線形軸の状態で、一方を大幅に縮小した結果、表示範囲の差が100倍を超える場合も考えられる。この変形例の構成によれば、このような場合でも柔軟に対数軸と線形軸とを切り替えることができる。
(Modification)
As mentioned above, although
For example, in the first embodiment, a process of switching from a linear axis to a logarithmic axis is performed when a pinch-out operation is received, and a process of switching from a logarithmic axis to a linear axis is performed when a pinch-in operation is received. . The configuration is not limited to this, and a process of switching from a logarithmic axis to a linear axis when a display range enlargement instruction (pinch-in) is received, or from a linear axis to a logarithmic axis when a reduction instruction (pinch-in) is received A configuration for executing the switching process is also effective. For this purpose, the area enlargement process and the display area reduction process are not distinguished from each other, and all of the non-overlapping processes in FIG. 6 and FIG.
For example, when one of the two coordinate axes (for example, the x axis) is displayed with a logarithmic axis and the other (for example, the y axis) is displayed with a linear axis, the logarithmic axis (x axis) is not only reduced but linear In some cases, the axis (y-axis) is enlarged and the difference between the two display ranges is less than 100 times. Alternatively, there may be a case where the difference between the display ranges exceeds 100 times as a result of greatly reducing one of them in a linear axis state. According to the configuration of this modification, the logarithmic axis and the linear axis can be flexibly switched even in such a case.
また、上記実施例では、拡大・縮小の操作を受け付ける手段としてタッチパネルを例に説明した。しかし、これに限定されず、文字入力やマウス操作といった、グラフの表示範囲を変更可能な任意の入力受付手段を用いた構成で代用することが出来る。 In the above embodiment, the touch panel is described as an example of the means for accepting the enlargement / reduction operation. However, the present invention is not limited to this, and a configuration using any input receiving means that can change the display range of the graph, such as character input or mouse operation, can be used instead.
尚、本発明は、実施形態1、若しくはその変形例に係る関数電卓1として提供できることはもとより、プログラムの適用により、既存のパーソナルコンピュータなど、汎用の計算機を関数電卓1として機能させることもできる。すなわち、関数電卓1による各機能構成を実現させるためのグラフ表示制御プログラムを、既存のが表示装置を制御するコンピュータ(CPUなど)が実行できるように適用することで、実施形態1、若しくは変形例に係る関数電卓1として機能させることができる。
Note that the present invention can be provided as the
このようなプログラムの配布方法は任意であり、例えば、メモリカード、CD−ROM(Compact Disc Read Only Memory)又はDVD−ROM(Digital Versatile Disc Read Only Memory)などの記録媒体に格納して配布できる他、インタネットなどの通信媒体を介して配布することもできる。 The distribution method of such a program is arbitrary. For example, the program can be stored and distributed on a recording medium such as a memory card, a CD-ROM (Compact Disc Read Only Memory), or a DVD-ROM (Digital Versatile Disc Read Only Memory). It can also be distributed via a communication medium such as the Internet.
また、本発明は、本発明の広義の精神と範囲を逸脱することなく、様々な実施形態及び変形が可能とされるものである。つまり、本発明のいくつかの実施形態を説明したが、上述した実施形態は本発明を説明するためのものであり、本発明の範囲を限定するものではない。本発明の範囲は、実施形態ではなく、特許請求の範囲に記載された発明とその均等の範囲を含む。
以下に本願出願の当初の特許請求の範囲に記載された発明を付記する。
Various embodiments and modifications of the present invention are possible without departing from the broad spirit and scope of the present invention. That is, although several embodiments of the present invention have been described, the above-described embodiments are for explaining the present invention and do not limit the scope of the present invention. The scope of the present invention includes the invention described in the scope of claims and its equivalents, not the embodiments.
The invention described in the scope of claims of the present application is appended below.
(付記1)
関数に基づくグラフを、複数の座標軸のうち少なくとも一つが線形軸である座標上に生成し、表示装置に表示させる表示制御手段と、
前記グラフの表示範囲を変更する変更指示を受け付ける受付手段と、
前記受け付けた変更指示によって変更される表示範囲において、前記グラフの複数の座標軸に対応する表示範囲の差が所定の閾値を超えるか否かを判別し、判別の結果に基づいて該グラフの座標軸を線形軸から対数軸に切り替えるか否かを決定する決定手段と、
前記対数軸に切り替えると決定した場合には、前記線形軸を対数軸に切り替えた上で、前記変更指示に基づき表示範囲を変更したグラフを前記表示装置に表示させる変更手段と、
を備えることを特徴とする表示制御装置。
(Appendix 1)
A display control means for generating a graph based on the function on coordinates where at least one of the plurality of coordinate axes is a linear axis, and displaying the display on a display device;
Accepting means for accepting a change instruction to change the display range of the graph;
In the display range changed by the received change instruction, it is determined whether or not the difference between the display ranges corresponding to the plurality of coordinate axes of the graph exceeds a predetermined threshold, and the coordinate axes of the graph are determined based on the determination result. Determining means for determining whether to switch from a linear axis to a logarithmic axis;
If it is determined to switch to the logarithmic axis, after changing the linear axis to the logarithmic axis, changing means for causing the display device to display a graph whose display range has been changed based on the change instruction;
A display control apparatus comprising:
(付記2)
前記表示制御手段はタッチパネルに前記グラフを表示させ、
前記受付手段は、前記タッチパネルに対するユーザのタッチ操作を、前記変更指示として受け付け、
前記変更手段は、前記タッチパネルに表示されたグラフを変更する、
ことを特徴とする付記1に記載の表示制御装置。
(Appendix 2)
The display control means displays the graph on a touch panel,
The accepting means accepts a user touch operation on the touch panel as the change instruction,
The changing means changes a graph displayed on the touch panel.
The display control apparatus according to
(付記3)
前記変更手段は、前記線形軸を対数軸に切り替えたグラフに加え、前記線形軸を対数軸に切り替えることなく表示範囲を変更したグラフを同時に表示させる、
ことを特徴とする付記1又は2に記載の表示制御装置。
(Appendix 3)
In addition to the graph in which the linear axis is switched to the logarithmic axis, the changing means simultaneously displays a graph in which the display range is changed without switching the linear axis to the logarithmic axis.
The display control apparatus according to
(付記4)
前記決定手段は、前記複数の座標軸のうち、前記表示される範囲が他の座標軸よりも所定の閾値を超えて大きい線形軸を対数軸に切り替えると決定する、
ことを特徴とする付記1乃至3の何れかに記載の表示制御装置。
(Appendix 4)
The determining means determines that, among the plurality of coordinate axes, the displayed range is switched to a logarithmic axis that is larger than the other coordinate axes and exceeds a predetermined threshold.
The display control device according to any one of
(付記5)
前記決定手段は、前記変更される表示範囲において、前記他の座標軸よりも所定の閾値を超えて大きい線形軸では表示範囲外だが、他の座標軸では表示範囲内の部位に前記関数が描画される場合に、該線形軸を対数軸に切り替えると決定する、
ことを特徴とする付記4に記載の表示制御装置。
(Appendix 5)
In the display range to be changed, the determination means is outside the display range for a linear axis that is larger than a predetermined threshold value than the other coordinate axes but is outside the display range, but for the other coordinate axes, the function is drawn in a portion within the display range. Determining to switch the linear axis to a logarithmic axis,
The display control apparatus according to
(付記6)
前記決定手段は、前記変更される表示範囲の全体で、前記関数が前記他の座標軸よりも所定の閾値を超えて大きい線形軸の0を超える部分に描画される場合に、該線形軸を対数軸に切り替えると決定する、
ことを特徴とする付記4又は5に記載の表示制御装置。
(Appendix 6)
The determining means is configured to logarithmize the linear axis when the function is drawn on a portion of the linear axis that exceeds a predetermined threshold and exceeds 0 of the linear axis over the entire display range to be changed. Decide to switch to axis,
The display control apparatus according to
(付記7)
前記決定手段は、複数の座標軸のうち少なくとも一つが対数軸であるグラフが表示されている場合に、前記受け付けた変更指示によって変更される表示範囲において、前記グラフの複数の座標軸上で前記関数の値又は変数が表示される範囲の差が前記所定の閾値以下であるか否かを判別し、判別の結果に基づいて該グラフの座標軸を対数軸から線形軸に切り替えるか否かを決定し、
前記変更手段は、前記線形軸に切り替えると決定した場合には、該対数軸を線形軸に切り替えた上で、前記変更指示に基づき表示範囲を変更した前記グラフを前記表示制御手段に表示させる、
ことを特徴とする付記1乃至6の何れかに記載の表示制御装置。
(Appendix 7)
When the graph having at least one logarithmic axis as a logarithmic axis is displayed, the determining unit is configured to display the function on the plurality of coordinate axes of the graph in the display range changed by the received change instruction. It is determined whether or not the difference in the range in which the value or variable is displayed is equal to or less than the predetermined threshold, and based on the determination result, it is determined whether or not to switch the coordinate axis of the graph from a logarithmic axis to a linear axis,
When the change unit determines to switch to the linear axis, the logarithmic axis is switched to the linear axis, and then the display control unit displays the graph with the display range changed based on the change instruction.
The display control device according to any one of
(付記8)
関数に基づくグラフを、複数の座標軸のうち少なくとも一つが線形軸である座標上に生成し、表示装置に表示させ、
前記グラフの表示範囲を変更する変更指示を受け付け、
前記受け付けた変更指示によって変更される表示範囲において、前記グラフの複数の座標軸に対応する表示範囲の差が所定の閾値を超えるか否かを判別し、判別の結果に基づいて該グラフの座標軸を線形軸から対数軸に切り替えるか否かを決定し、
前記対数軸に切り替えると決定した場合には、前記線形軸を対数軸に切り替えた上で、前記変更指示に基づき表示範囲を変更したグラフを前記表示装置に表示させる、
ことを特徴とする表示制御方法。
(Appendix 8)
A graph based on the function is generated on coordinates where at least one of the plurality of coordinate axes is a linear axis, and is displayed on a display device.
Accepting a change instruction to change the display range of the graph;
In the display range changed by the received change instruction, it is determined whether or not the difference between the display ranges corresponding to the plurality of coordinate axes of the graph exceeds a predetermined threshold, and the coordinate axes of the graph are determined based on the determination result. Decide whether to switch from linear axis to logarithmic axis,
If it is determined to switch to the logarithmic axis, after switching the linear axis to the logarithmic axis, to display a graph with the display range changed based on the change instruction on the display device,
A display control method characterized by the above.
(付記9)
表示装置を制御するコンピュータに、
関数に基づくグラフを、複数の座標軸のうち少なくとも一つが線形軸である座標上に生成し、前記表示装置に表示させる処理、
前記グラフの表示範囲を変更する変更指示を受け付ける処理、
前記受け付けた変更指示によって変更される表示範囲において、前記グラフの複数の座標軸に対応する表示範囲の差が所定の閾値を超えるか否かを判別し、判別の結果に基づいて該グラフの座標軸を線形軸から対数軸に切り替えるか否かを決定する処理、
前記対数軸に切り替えると決定した場合には、前記線形軸を対数軸に切り替えた上で、前記変更指示に基づき表示範囲を変更したグラフを前記表示装置に表示させる処理、
を実行させるためのプログラム。
(Appendix 9)
To the computer that controls the display device
Generating a graph based on a function on coordinates in which at least one of the plurality of coordinate axes is a linear axis, and displaying the graph on the display device;
A process of accepting a change instruction to change the display range of the graph;
In the display range changed by the received change instruction, it is determined whether or not the difference between the display ranges corresponding to the plurality of coordinate axes of the graph exceeds a predetermined threshold, and the coordinate axes of the graph are determined based on the determination result. Processing to determine whether to switch from linear axis to logarithmic axis,
When it is determined to switch to the logarithmic axis, after switching the linear axis to the logarithmic axis, a process for displaying on the display device a graph whose display range has been changed based on the change instruction;
A program for running
(付記10)
表示手段と、
関数を入力する入力手段と、
前記入力された関数に基づくグラフを、複数の座標軸のうち少なくとも一つが線形軸である座標上に生成し、前記表示手段に表示させる表示制御手段と、
前記グラフの表示範囲を変更する変更指示を受け付ける受付手段と、
前記受け付けた変更指示によって変更される表示範囲において、前記グラフの複数の座標軸に対応する表示範囲の差が所定の閾値を超えるか否かを判別し、判別の結果に基づいて該グラフの座標軸を線形軸から対数軸に切り替えるか否かを決定する決定手段と、
前記対数軸に切り替えると決定した場合には、前記線形軸を対数軸に切り替えた上で、前記変更指示に基づき表示範囲を変更したグラフを前記表示手段に表示させる変更手段と、
を備えることを特徴とするグラフ表示装置。
(Appendix 10)
Display means;
An input means for inputting a function;
A display control unit that generates a graph based on the input function on coordinates in which at least one of the plurality of coordinate axes is a linear axis, and causes the display unit to display the graph;
Accepting means for accepting a change instruction to change the display range of the graph;
In the display range changed by the received change instruction, it is determined whether or not the difference between the display ranges corresponding to the plurality of coordinate axes of the graph exceeds a predetermined threshold, and the coordinate axes of the graph are determined based on the determination result. Determining means for determining whether to switch from a linear axis to a logarithmic axis;
When it is determined to switch to the logarithmic axis, after changing the linear axis to the logarithmic axis, changing means for displaying on the display means a graph whose display range has been changed based on the change instruction;
A graph display device comprising:
1…関数電卓、10…入力部、20…情報処理部、21…CPU、22…RAM、23…ROM、24…I/O部、26…内部バス、210…関数取得部、220…表示制御部、230…操作受付部、240…切替決定部、250…変更部、260…記憶部、2610…関数記憶領域、2620…設定記憶領域、30…タッチパネル、310…表示部、320…センサ部
DESCRIPTION OF
Claims (9)
前記制御部は、 The controller is
グラフを表示しようとする座標の2つの座標軸の1つを線形軸と対数軸との間で切替えて、かつ、前記座標軸の1つが切替えられた第1の座標と前記座標軸の1つが切替えられない第2の座標とを同時に表示する第1処理を、前記2つの座標軸の表示範囲の差に基づいて自動的に実行するか、または、前記表示範囲の差にかかわらず前記第1処理を実行しないか、の設定を受け付け、 One of the two coordinate axes of the coordinates for which the graph is to be displayed is switched between a linear axis and a logarithmic axis, and the first coordinate in which one of the coordinate axes is switched and one of the coordinate axes cannot be switched. The first process for simultaneously displaying the second coordinates is automatically executed based on the difference between the display ranges of the two coordinate axes, or the first process is not executed regardless of the difference between the display ranges. Or accept settings,
受け付けた前記設定に基づいて、前記第1処理を実行するか否かを決定し、 Determining whether to execute the first process based on the received setting;
前記第1処理を実行すると決定した場合、前記第1の座標及び当該第1の座標上の第1のグラフとともに、前記第2の座標及び当該第2の座標上の第2のグラフを、表示部に表示させる When it is determined to execute the first process, the second graph and the second graph on the second coordinate are displayed together with the first graph on the first coordinate and the first graph on the first coordinate. To display
電子機器。Electronics.
前記座標の2つの座標軸のうちの少なくとも1つの座標軸の表示範囲を変更する指示を受け付け、 Receiving an instruction to change a display range of at least one of the two coordinate axes of the coordinates;
前記指示に基づく変更後の、前記座標の2つの座標軸の表示範囲の差に基づいて、前記第1処理を自動的に実行する The first process is automatically executed based on the difference between the display ranges of the two coordinate axes of the coordinates after the change based on the instruction.
請求項1に記載の電子機器。The electronic device according to claim 1.
前記制御部は、 The controller is
グラフを表示しようとする座標の2つの座標軸のうちの少なくとも1つの座標軸の表示範囲を変更する指示を受け付け、 Accepting an instruction to change the display range of at least one of the two coordinate axes of the coordinates for which the graph is to be displayed,
前記指示に基づいて表示範囲が変更された前記座標の一方の座標軸の表示範囲に対する他方の座標軸の表示範囲の比が閾値よりも大きいときに前記他方の座標軸を線形軸から対数軸に切替えるか或いは前記指示に基づいて表示範囲が変更された前記座標の他方の座標軸の表示範囲に対する一方の座標軸の表示範囲の比が閾値よりも大きいときに前記一方の座標軸を線形軸から対数軸に切替える第2処理を実行する When the ratio of the display range of the other coordinate axis to the display range of one coordinate axis of the coordinate whose display range has been changed based on the instruction is greater than a threshold, the other coordinate axis is switched from a linear axis to a logarithmic axis, or The one coordinate axis is switched from a linear axis to a logarithmic axis when the ratio of the display range of one coordinate axis to the display range of the other coordinate axis of the coordinate whose display range is changed based on the instruction is larger than a threshold value. 2 process is executed
電子機器。Electronics.
前記第2処理を、前記指示に基づいて変更された前記2つの座標軸の表示範囲に応じて自動的に実行するか否かの設定を受け付ける Accepting a setting as to whether or not to automatically execute the second process according to the display range of the two coordinate axes changed based on the instruction
請求項3に記載の電子機器。The electronic device according to claim 3.
前記座標の少なくとも1つの座標軸の表示範囲を変更する指示を、タッチパネルへの操作、文字入力及びマウス操作のいずれかにより受け付ける An instruction to change the display range of at least one coordinate axis of the coordinates is received by any of an operation on the touch panel, a character input, and a mouse operation.
請求項1ないし請求項4の何れかに記載の電子機器。The electronic device according to any one of claims 1 to 4.
グラフを表示しようとする座標の2つの座標軸の1つを線形軸と対数軸との間で切替えて、かつ、前記座標軸の1つが切替えられた第1の座標と前記座標軸の1つが切替えられない第2の座標とを同時に表示する第1処理を、前記2つの座標軸の表示範囲の差に基づいて自動的に実行するか、または、前記表示範囲の差にかかわらず前記第1処理を実行しないか、の設定を受け付け、 One of the two coordinate axes of the coordinates for which the graph is to be displayed is switched between a linear axis and a logarithmic axis, and the first coordinate in which one of the coordinate axes is switched and one of the coordinate axes cannot be switched. The first process for simultaneously displaying the second coordinates is automatically executed based on the difference between the display ranges of the two coordinate axes, or the first process is not executed regardless of the difference between the display ranges. Or accept settings,
受け付けた前記設定に基づいて、前記第1処理を実行するか否かを決定し、 Determining whether to execute the first process based on the received setting;
前記第1処理を実行すると決定した場合、前記第1の座標及び当該第1の座標上の第1のグラフとともに、前記第2の座標及び当該第2の座標上の第2のグラフを、表示部に表示させる When it is determined to execute the first process, the second graph and the second graph on the second coordinate are displayed together with the first graph on the first coordinate and the first graph on the first coordinate. To display
ことを含む表示方法。Display method including that.
グラフを表示しようとする座標の2つの座標軸のうちの少なくとも1つの座標軸の表示範囲を変更する指示を受け付け、 Accepting an instruction to change the display range of at least one of the two coordinate axes of the coordinates for which the graph is to be displayed,
前記指示に基づいて表示範囲が変更された前記座標の一方の座標軸の表示範囲に対する他方の座標軸の表示範囲の比が閾値よりも大きいときに前記他方の座標軸を線形軸から対数軸に切替えるか或いは前記指示に基づいて表示範囲が変更された前記座標の他方の座標軸の表示範囲に対する一方の座標軸の表示範囲の比が閾値よりも大きいときに前記一方の座標軸を線形軸から対数軸に切替える第2処理を実行する When the ratio of the display range of the other coordinate axis to the display range of one coordinate axis of the coordinate whose display range has been changed based on the instruction is greater than a threshold, the other coordinate axis is switched from a linear axis to a logarithmic axis, or The one coordinate axis is switched from a linear axis to a logarithmic axis when the ratio of the display range of one coordinate axis to the display range of the other coordinate axis of the coordinate whose display range is changed based on the instruction is larger than a threshold value. 2 process is executed
ことを含む表示方法。Display method including that.
グラフを表示しようとする座標の2つの座標軸の1つを線形軸と対数軸との間で切替えて、かつ、前記座標軸の1つが切替えられた第1の座標と前記座標軸の1つが切替えられない第2の座標とを同時に表示する第1処理を、前記2つの座標軸の表示範囲の差に基づいて自動的に実行するか、または、前記表示範囲の差にかかわらず前記第1処理を実行しないか、の設定を受け付けさせ、 One of the two coordinate axes of the coordinates for which the graph is to be displayed is switched between a linear axis and a logarithmic axis, and the first coordinate in which one of the coordinate axes is switched and one of the coordinate axes cannot be switched. The first process for simultaneously displaying the second coordinates is automatically executed based on the difference between the display ranges of the two coordinate axes, or the first process is not executed regardless of the difference between the display ranges. Or accept the setting of
受け付けた前記設定に基づいて、前記第1処理を実行するか否かを決定させ、 Based on the received setting, it is determined whether to execute the first process,
前記第1処理を実行すると決定した場合、前記第1の座標及び当該第1の座標上の第1のグラフとともに、前記第2の座標及び当該第2の座標上の第2のグラフを、表示部によって表示させる When it is determined to execute the first process, the second graph and the second graph on the second coordinate are displayed together with the first graph on the first coordinate and the first graph on the first coordinate. Display by part
表示プログラム。Display program.
グラフを表示しようとする座標の2つの座標軸のうちの少なくとも1つの座標軸の表示範囲を変更する指示を受け付けさせ、 An instruction to change the display range of at least one of the two coordinate axes of the coordinates for which the graph is to be displayed is received;
前記指示に基づいて表示範囲が変更された前記座標の一方の座標軸の表示範囲に対する他方の座標軸の表示範囲の比が閾値よりも大きいときに前記他方の座標軸を線形軸から対数軸に切替えるか或いは前記指示に基づいて表示範囲が変更された前記座標の他方の座標軸の表示範囲に対する一方の座標軸の表示範囲の比が閾値よりも大きいときに前記一方の座標軸を線形軸から対数軸に切替える第2処理を実行させる When the ratio of the display range of the other coordinate axis to the display range of one coordinate axis of the coordinate whose display range has been changed based on the instruction is greater than a threshold, the other coordinate axis is switched from a linear axis to a logarithmic axis, or The one coordinate axis is switched from a linear axis to a logarithmic axis when the ratio of the display range of one coordinate axis to the display range of the other coordinate axis of the coordinate whose display range is changed based on the instruction is larger than a threshold value. 2 process is executed
表示プログラム。Display program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013196146A JP6286977B2 (en) | 2013-09-20 | 2013-09-20 | Electronic device, display method, and display program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013196146A JP6286977B2 (en) | 2013-09-20 | 2013-09-20 | Electronic device, display method, and display program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2015060572A JP2015060572A (en) | 2015-03-30 |
JP6286977B2 true JP6286977B2 (en) | 2018-03-07 |
Family
ID=52817993
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013196146A Active JP6286977B2 (en) | 2013-09-20 | 2013-09-20 | Electronic device, display method, and display program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6286977B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI710516B (en) | 2018-10-24 | 2020-11-21 | 日商住友重機械工業股份有限公司 | Crane system, crane positioning device, and crane positioning method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3665137B2 (en) * | 1996-05-23 | 2005-06-29 | 日置電機株式会社 | Waveform display method |
JP2004118447A (en) * | 2002-09-25 | 2004-04-15 | Casio Comput Co Ltd | Logarithmic axial graph plotter and logarithmic axial graph plotting processing program |
-
2013
- 2013-09-20 JP JP2013196146A patent/JP6286977B2/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI710516B (en) | 2018-10-24 | 2020-11-21 | 日商住友重機械工業股份有限公司 | Crane system, crane positioning device, and crane positioning method |
Also Published As
Publication number | Publication date |
---|---|
JP2015060572A (en) | 2015-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2601173C2 (en) | Split-screen display method and device, and electronic apparatus thereof | |
RU2666236C2 (en) | Method of block display operation and terminal therefor | |
KR100686165B1 (en) | Portable terminal having osd function icon and method of displaying osd function icon using same | |
JP5664147B2 (en) | Information processing apparatus, information processing method, and program | |
CN106354373B (en) | Icon moving method and mobile terminal | |
EP2833607A1 (en) | Method for automatically switching handheld modes and wireless handheld device | |
US9823773B2 (en) | Handheld device and method for implementing input area position adjustment on handheld device | |
CN106055242B (en) | Operation processing method and mobile terminal | |
CN107066176A (en) | A kind of control method and device of the singlehanded pattern of terminal | |
US20180356934A1 (en) | Image display device | |
JP2013196100A (en) | Drawing display device and drawing display program | |
JP2005276120A (en) | Touch panel input device and its input control system | |
US20140223328A1 (en) | Apparatus and method for automatically controlling display screen density | |
JP6286977B2 (en) | Electronic device, display method, and display program | |
US9519424B2 (en) | Touch-control method, related apparatus, and terminal device | |
JP5882973B2 (en) | Information processing apparatus, method, and program | |
CN109960483B (en) | Control method and electronic equipment | |
US10303346B2 (en) | Information processing apparatus, non-transitory computer readable storage medium, and information display method | |
US20140165011A1 (en) | Information processing apparatus | |
JP2010113459A (en) | Image display device, method, and program | |
EP4227783A1 (en) | Information processing method and apparatus, and electronic device | |
JP5418713B1 (en) | Image forming apparatus and program | |
KR20110011845A (en) | Mobile communication terminal comprising touch screen and control method thereof | |
CN112162667A (en) | Object display control method and device and electronic equipment | |
JP6716519B2 (en) | Display device and display method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160914 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170524 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170606 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170807 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20180109 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180122 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6286977 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |