|
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" |
|
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:
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:
Screenshot from Dplot_example11.prg: