Re: plotting points formatted iran utf8

Tatsuro MATSUOKA <[email protected]> Fri, 4 Feb 2022 14:36:20 +0900 (JST)
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
Geoff

I have confirmed unicode state in postscript terminal in the beta ML.

Ethan answered to me :

https://sourceforge.net/p/gnuplot/mailman/message/37603807/

There exists not-simple way to use unicode in the postscript terminal.

From your reply, I understand you want use many symbols for plot.
Postscript terminal have prepared symbols. See the below

http://tmacchant33.starfree.jp/Files/ps_symbols.pdf
 
I am not a LaTeX user so that I cannot reply your interest LaTeX related matters.

Good Luck

Tatsuro
 

> ----- Original Message -----
> 
> From: "Geoff Kaniuk" <>
> To: "gnuplot-info
> Date: 2022/02/04 金 07:45
> Subject: Re: [Gnuplot-info] plotting points formatted in utf8
> 
> 
> Thanks to Tatsuro's suggestion to use epscairo, I have made further 
> progress and can now see the bullseye points in test-pt.eps
> 
> The only change I made was in the terminal setting for the .eps output:
> 
> set term epscairo enhanced color font 'Dejavu Sans' size 20 cm, 10 cm
> 
> Referring to my original file test-pt.eps:
> 
> Graph POINT shows	◎	progress!
> Graph UNICODE shows 	U 	no change
> Graph HASH shows 	#	correct
> 
> I was interested in the comment by James Cloos.
> " ◎ is not 0x9678"
> I took my information from
> 	www.w3schools.com/charsets/ref_utf_geometric.asp,
> and misread the column heading! Oops.  I would be interested to know if 
> there is a better reference to utf-8 codes for these geometric shapes.
> 
> I have now tried pt "0x25CE" and pt "9678", both of which failed.  It 
> looks as if these producethe first character of the string following pt
> 
> My interest in these geometric shapes is improvement in the presentation 
> of plots with many curves. I find the standard point shapes provided by 
> gnuplot too limited.
> 
> It whould be very useful if I could extend my test-unicode.gp so that it 
> can plot all the 96 geometric shapes, and produce the .eps file.  Of 
> course I still have to confirm that Latex copes with such graphics!
> 
> Regarding the comments by Norwid Behrnd, the bottom line is that one can 
> create a .pdf from Latex which shows these geometric points in graphics. 
>   You are right that Latex mathmode has symbols that could be very 
> useful as points in data graphs. THere are several such terminals in my 
> system, but how would one access these in the gnuplot
> 	pt THING
> option?
> 
> The other issue in all of this seems to be how does one identify a 
> suitable font to use in a particular terminal. Is there a tool like 
> "display all characters in a particular font" for a given terminal?
> 
> Geoff
> 
> 33 Ashbury Close, Cambridge CB1 3RW 01223 710582
> 
> On 03/02/2022 08:21, Tatsuro MATSUOKA wrote:
> > Unicode support of postscript terminal should be comfirmed because of view result of inkscape by Norwid.]
> > 
> > I will make in another post in the beta ML.
> > 
> > Tatsuro
> > 
> >> ----- Original Message -----
> >>
> >> From: "Norwid Behrnd via gnuplot-info" t>
> >> To: "Geoff Kaniuk" <geoff>
> >> Cc: "gnuplot-info
> >> Date: 2022/02/03 木 02:54
> >> Subject: Re: [Gnuplot-info] plotting points formatted in utf8
> >>
> >>
> >> 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 <[email protected]> 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
> >>>>>>> [email protected]
> >>>>>>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >>>>>>>   
> >>>>>>   
> >>>>>   
> >>>>    
> >>>
> >>>
> >>> _______________________________________________
> >>> gnuplot-info mailing list
> >>> [email protected]
> >>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >>
> >>
> >>
> >> _______________________________________________
> >> gnuplot-info mailing list
> >> [email protected]
> >> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >>
> > 
> 
> 
> _______________________________________________
> gnuplot-info mailing list
> [email protected]
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> 



_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info