From: Norwid B. <nb...@ya...> - 2022-02-02 17:53:18
|
Hello Tatsuro, I speculate the bullseys are present when running the script shared by Geoff; their display however depends on the device used. For reference: Linux Debian 12/bookworm, branch testing, with Gnuplot from the distro repositories (i.e., Version 5.4 patchlevel 2, last modified 2021-06-01). After addition of the executable bit with chmod, briefly gnuplot's interface was seen, yet disappeared in less than a second, right after the creation of file `test-pt.eps`. In the preview of the file browser (thunar 4.16.10, xfce4 desktop), no marks are seen. This might be a matter of scale. Evince (verson 41.3) displays only the hash tags on the third trace. With Inkscape (version 1.1.1), the bullseyes eventually are visible by adjusting the parameters how to read the files: disable the option to replace pdf-fonts, then change from poppler/cairo import (default) to internal import. A few screen photos taken are deposit here: https://justpaste.it/8if03 /Maybe/ generating the diagram for one of the terminals aware of LaTeX/PSTricks/tikz is a more reliable approach, because the `\odot` character (mathmode) bears similarities to the bullseye. Norwid Norwid On Wed, 2 Feb 2022 16:56:06 +0000 Geoff Kaniuk <ge...@ka...> wrote: > Hello Tatsuro, > > Sorry, my reply-to was not set. The correction you mentioned was > actually the first variant I tried. > > I have now repeated the test with pt "\U+25CE" in terminal wxt and also > added the font specification to set terminal. This gives me the bullseye > in the Gnuplot display, but not in the .eps file. > > I have created a test script and a screenshot: > > SCRIPT > http://kaniuk.co.uk/tests/test-unicode.gp > > SCREENSHOT > http://kaniuk.co.uk/tests/test-unicode-GK.png > > This shows the output on the Gnuplot display and also the resulting .eps > file. > > So some progress - Thanks! > > Geoff > > 33 Ashbury Close, Cambridge CB1 3RW 01223 710582 > > On 02/02/2022 08:51, Tatsuro MATSUOKA wrote: > > Hello Geoff > > > > Please keep replying to the mailing list. > > > > I found the mistakes of your command. > > > > pt "U+25CE" > > > > should be > > > > pt "\U+25CE" > > > > (back slash "\" is forgotten) > > > > For me, pt "◎" and pt "\U+25CE" are coincident. > > > > reset session > > set encoding utf8 > > set terminal wxt nopersist enhanced font 'Dejavu Sans' # font selection seems to be important > > set sample 20 > > plot -x w p pt "◎", \ > > -0.8 * x w p pt "0x9678" , \ > > -0.6 * x w p pt "\U+25CE" > > > > See > > http://tmacchant33.starfree.jp/Files/unicode_test2.png > > > > As I wrote in the comment in the script, the font selection seem to be important. > > If I use 'Arial' font instead of 'Dejavu Sans' font, I got broken plot > > > > http://tmacchant33.starfree.jp/Files/unicode_test3.png > > > > Arial font does not support Bulls eye charrcter. > > > > I am windows user and see windows font map using windows tool. > > You are Debian user and on debian has similar tool to see font map and may select proper font. > > > > Tatsuro > > > > > >> ----- Original Message ----- > >> <geoff > >> To: "Tatsuro MATSUOKA" > >> Date: 2022/02/02 水 07:32 > >> Subject: Re: [Gnuplot-info] plotting points formatted in utf8 > >> > >> > >> Thank you so much for the test case. I have repeated your test on my > >> Linux system including producing the .eps file > >> > >> I get the same results as you for the hex and unicode syntax > >> > >> However for > >> plot x w p pt "◎" > >> > >> I get: > >> > >> Gnuplot 1: accented letter a circumflex followed by faint box > >> .eps no plotted points > >> > >> I get exactly the same results with terminal wxt. There must be some > >> fundamental setting or mapping I am missing > >> > >> Geoff > >> > >> 33 Ashbury Close, Cambridge CB1 3RW 01223 710582 > >> > >> On 01/02/2022 20:40, Tatsuro MATSUOKA wrote: > >>> I tried the following script on 5.4.3 and 5.5 (last modified 2022-01-29) on cygwin > >>> also tried 5.2.8 on windows (I do not have version 5.2 on cygwin) with wxt terminal. > >>> > >>> The results are the same. > >>> The screenshot the below was taken on 5.4.3. > >>> http://tmacchant33.starfree.jp/Files/unicode_test2.png > >>> > >>> Used script is > >>> > >>> # begin > >>> reset session > >>> set encoding utf8 > >>> set terminal x11 1 nopersist enhanced > >>> set sample 20 > >>> plot x w p pt "◎", \ > >>> 0.8 * x w p pt "0x9678" , \ > >>> 0.6 * x w p pt "U+25CE" > >>> # end > >>> > >>> For 5.2.8 on windows, I used the wxt terminal instead of the x11 terminal. > >>> > >>> Tatsuro > >>>> ----- Original Message ----- > >>>> > >>>> From: "Geoff Kaniuk" > >>>> To: "gnuplot-info > >>>> Date: 2022/02/02 水 03:15 > >>>> Subject: [Gnuplot-info] plotting points formatted in utf8 > >>>> > >>>> > >>>> I am trying to plot points specified in utf8 using the pt "..." option > >>>> as mentioned in the gnuplot manual. I am using gnuplot v5.2 running in > >>>> Debian Buster. > >>>> > >>>> My settings are: > >>>> reset session > >>>> set encoding utf8 > >>>> set terminal x11 1 nopersist enhanced > >>>> > >>>> As an example I tried the Bullseye point: > >>>> ◎ 9678(hex) 25CE(utf8) > >>>> > >>>> It is not clear what syntax I should use to express the character. > >>>> All of the versions: > >>>> pt "◎" > >>>> pt "0x9678" > >>>> pt "U+25CE" > >>>> > >>>> failed to plot the > >>>> > >>>> What am I missing? > >>>> > >>>> Any help much appreciated > >>>> > >>>> -- > >>>> Geoff > >>>> > >>>> 33 Ashbury Close, Cambridge CB1 3RW 01223 710582 > >>>> > >>>> > >>>> _______________________________________________ > >>>> gnuplot-info mailing list > >>>> gnu...@li... > >>>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info > >>>> > >>> > >> > > > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |