Navigation:  How do I ...? > Appearance >

Kanji LABELs

 

Previous pageReturn to chapter overviewNext page

lampe

Info: A detailed demonstration for Japanese characters is shown in the example programs DPlot_example10.prg and DPlot_example11.prg.

 

For customers who needs Japanese characters (Kanji) we have implemented a special function called FNDplot_unilabel which supports Kanji characters for the diagram titles, and axis labels as well as common LABELS using Japanese fonts.

The function FNDplot_unilabel is also useful for general usage. This function makes it easy to place any LABEL text on the HTBasic screen. So if you want to overlay any text to the diagrams created by GRAPH-XT we recommend to use the function FNDplot_unilabel.

Supported Features

We currently support the following features:

Feature

Labelid$

Title lines (up to 4)

"Title1", "Title2", "Title3", "Title4"

x axis

"Xaxis"

y axis

"Yaxis"

secondary y axis (y2 axis)

"Y2axis"

z axis

"Zaxis"

Common label (universal usage)

"Common"

Info3

Please note: The GRAPH-XT function FNDplot_unilabel is currently only supported in 256 colour mode. Also, when using Kanji characters, you should use HTBasic 9.5 or higher since older versions have some defects and might become unstable when using Kanji.

 

Implementation

In order to use specialized LABELs created by FNDplot_unilabel you generate your diagram as usual. Just before you call the function DPlot_show you should call a SUB program, e.g. called Kanji_label like this:

GOSUB Kanji_label

CALL Dplot_show(Doc_num)         ! show the diagram and labels

Then, the code within the local SUB program Kanji_label might look like this:

clip0088

The first function call sets up a label for the diagram title 1 at screen position x=36.5, y=95 with Japanese  font "MS Mincho", codepage 128 and CSIZE 4,.7.

For the screen positioning of the LABELs the WINDOW is defined as: WINDOW 0,100,0,100

 

Examples

Screenshot from Dplot_example10.prg:

clip0090

 

Screenshot from Dplot_example11.prg:

clip0089