Re: [go-nuts] gonum plot : font error

2021-05-18 Thread Fred
@Roland : I saw this change too,  removing the error variable fix the 
problem :) 

Le mardi 18 mai 2021 à 12:44:40 UTC+2, rol...@gmail.com a écrit :

> Hello,
>
> applying Carlas's solution I got a failure in line 20 since plot.New() 
> returns a pointer but no pointer, error pair.
>
> Only after changing usage of New() I got the scatter-demo running. May be 
> error message can be enhanced :-)
>
> scatter-demo]$ go build
>
> # scatter-demo
> ./main.go:20:9: assignment mismatch: 2 variables but plot.New returns 1 
> values
>
>  20 p := plot.New() 21 if p == nil { 22 panic("Plotter cannot 
> be created") 23 }
>
>
> BR,
> Roland
>
>
> Am Mo., 17. Mai 2021 um 16:38 Uhr schrieb Fred :
>
>> Thanks Carla and Sébastien for your quick answer !
>>
>> Carla your solution works, when I use modules I do not have font errors. 
>>
>> What is strange is that I was not using modules in any computer to try 
>> this example and it was working in one an not the other :) 
>>
>> Le lundi 17 mai 2021 à 15:10:55 UTC+2, Sebastien Binet a écrit :
>>
>>> Salut Fred, 
>>>
>>> On Mon May 17, 2021 at 14:11 CET, Fred wrote: 
>>> > Hi, 
>>> > I have 2 computers with Linux Manjaro and go version 1.16.3. 
>>> > The same scatter plot 
>>> >  
>>> works 
>>> > on 
>>> > one computer and produces on the other these already known errors : 
>>> >  
>>> > 
>>> > # gonum.org/v1/plot/text 
>>> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:153:3: cannot use 
>>> > hdlr.Fonts.Lookup(rm, fnt.Size).Face (type *sfnt.Font) as type 
>>> > *truetype.Font in field value 
>>> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:154:3: cannot use 
>>> > hdlr.Fonts.Lookup(rm, fnt.Size).Face (type *sfnt.Font) as type 
>>> > *truetype.Font in field value 
>>> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:155:3: cannot use 
>>> > hdlr.Fonts.Lookup(it, fnt.Size).Face (type *sfnt.Font) as type 
>>> > *truetype.Font in field value 
>>> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:156:3: cannot use 
>>> > hdlr.Fonts.Lookup(bf, fnt.Size).Face (type *sfnt.Font) as type 
>>> > *truetype.Font in field value 
>>> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:157:3: cannot use 
>>> > hdlr.Fonts.Lookup(bfit, fnt.Size).Face (type *sfnt.Font) as type 
>>> > *truetype.Font in field value 
>>> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:221:3: cannot use 
>>> > op.Glyph.Font (type *truetype.Font) as type *sfnt.Font in field value 
>>>
>>> this should indeed be fixed w/ gonum/pl...@v0.9.0. 
>>>
>>> > 
>>> > an update does not fix the error. 
>>> > 
>>> > go get -u gonum.org/v1/plot/... 
>>> > # cd /home/fred/GO/src/github.com/go-latex/latex; git pull --ff-only 
>>> > Votre information de configuration indique de fusionner avec la 
>>> > référence 
>>> > 'refs/heads/master' 
>>> > du serveur distant, mais cette référence n'a pas été récupérée. 
>>> > package github.com/go-latex/latex/drawtex: exit status 1 
>>>
>>> this error may come from the fact that go-latex/latex is now using 
>>> 'main' as its main branch in lieu of 'master'. 
>>>
>>> hth, 
>>> -s 
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "golang-nuts" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to golang-nuts...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/golang-nuts/efb3fb0c-cbeb-4815-a0d9-ee7a4b638ad8n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/9a0b204c-d17b-47a3-a3b9-cad3dc91bbd0n%40googlegroups.com.


Re: [go-nuts] gonum plot : font error

2021-05-18 Thread Roland Müller
Hello,

applying Carlas's solution I got a failure in line 20 since plot.New()
returns a pointer but no pointer, error pair.

Only after changing usage of New() I got the scatter-demo running. May be
error message can be enhanced :-)

scatter-demo]$ go build

# scatter-demo
./main.go:20:9: assignment mismatch: 2 variables but plot.New returns 1
values

 20 p := plot.New() 21 if p == nil { 22 panic("Plotter
cannot be created") 23 }


BR,
Roland


Am Mo., 17. Mai 2021 um 16:38 Uhr schrieb Fred :

> Thanks Carla and Sébastien for your quick answer !
>
> Carla your solution works, when I use modules I do not have font errors.
>
> What is strange is that I was not using modules in any computer to try
> this example and it was working in one an not the other :)
>
> Le lundi 17 mai 2021 à 15:10:55 UTC+2, Sebastien Binet a écrit :
>
>> Salut Fred,
>>
>> On Mon May 17, 2021 at 14:11 CET, Fred wrote:
>> > Hi,
>> > I have 2 computers with Linux Manjaro and go version 1.16.3.
>> > The same scatter plot
>> > 
>> works
>> > on
>> > one computer and produces on the other these already known errors :
>> > 
>> >
>> > # gonum.org/v1/plot/text
>> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:153:3: cannot use
>> > hdlr.Fonts.Lookup(rm, fnt.Size).Face (type *sfnt.Font) as type
>> > *truetype.Font in field value
>> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:154:3: cannot use
>> > hdlr.Fonts.Lookup(rm, fnt.Size).Face (type *sfnt.Font) as type
>> > *truetype.Font in field value
>> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:155:3: cannot use
>> > hdlr.Fonts.Lookup(it, fnt.Size).Face (type *sfnt.Font) as type
>> > *truetype.Font in field value
>> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:156:3: cannot use
>> > hdlr.Fonts.Lookup(bf, fnt.Size).Face (type *sfnt.Font) as type
>> > *truetype.Font in field value
>> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:157:3: cannot use
>> > hdlr.Fonts.Lookup(bfit, fnt.Size).Face (type *sfnt.Font) as type
>> > *truetype.Font in field value
>> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:221:3: cannot use
>> > op.Glyph.Font (type *truetype.Font) as type *sfnt.Font in field value
>>
>> this should indeed be fixed w/ gonum/pl...@v0.9.0.
>>
>> >
>> > an update does not fix the error.
>> >
>> > go get -u gonum.org/v1/plot/...
>> > # cd /home/fred/GO/src/github.com/go-latex/latex; git pull --ff-only
>> > Votre information de configuration indique de fusionner avec la
>> > référence
>> > 'refs/heads/master'
>> > du serveur distant, mais cette référence n'a pas été récupérée.
>> > package github.com/go-latex/latex/drawtex: exit status 1
>>
>> this error may come from the fact that go-latex/latex is now using
>> 'main' as its main branch in lieu of 'master'.
>>
>> hth,
>> -s
>>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/efb3fb0c-cbeb-4815-a0d9-ee7a4b638ad8n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2B8p0G04%2B_HsOaNtojqWsy8gLpQfFa%3DKe9%3DyZ_RRnAMOpBSLmg%40mail.gmail.com.


Re: [go-nuts] gonum plot : font error

2021-05-17 Thread Fred
Thanks Carla and Sébastien for your quick answer !

Carla your solution works, when I use modules I do not have font errors. 

What is strange is that I was not using modules in any computer to try this 
example and it was working in one an not the other :) 

Le lundi 17 mai 2021 à 15:10:55 UTC+2, Sebastien Binet a écrit :

> Salut Fred,
>
> On Mon May 17, 2021 at 14:11 CET, Fred wrote:
> > Hi,
> > I have 2 computers with Linux Manjaro and go version 1.16.3.
> > The same scatter plot
> >  works
> > on
> > one computer and produces on the other these already known errors :
> > 
> >
> > # gonum.org/v1/plot/text
> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:153:3: cannot use
> > hdlr.Fonts.Lookup(rm, fnt.Size).Face (type *sfnt.Font) as type
> > *truetype.Font in field value
> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:154:3: cannot use
> > hdlr.Fonts.Lookup(rm, fnt.Size).Face (type *sfnt.Font) as type
> > *truetype.Font in field value
> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:155:3: cannot use
> > hdlr.Fonts.Lookup(it, fnt.Size).Face (type *sfnt.Font) as type
> > *truetype.Font in field value
> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:156:3: cannot use
> > hdlr.Fonts.Lookup(bf, fnt.Size).Face (type *sfnt.Font) as type
> > *truetype.Font in field value
> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:157:3: cannot use
> > hdlr.Fonts.Lookup(bfit, fnt.Size).Face (type *sfnt.Font) as type
> > *truetype.Font in field value
> > /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:221:3: cannot use
> > op.Glyph.Font (type *truetype.Font) as type *sfnt.Font in field value
>
> this should indeed be fixed w/ gonum/pl...@v0.9.0.
>
> >
> > an update does not fix the error.
> >
> > go get -u gonum.org/v1/plot/...
> > # cd /home/fred/GO/src/github.com/go-latex/latex; git pull --ff-only
> > Votre information de configuration indique de fusionner avec la
> > référence
> > 'refs/heads/master'
> > du serveur distant, mais cette référence n'a pas été récupérée.
> > package github.com/go-latex/latex/drawtex: exit status 1
>
> this error may come from the fact that go-latex/latex is now using
> 'main' as its main branch in lieu of 'master'.
>
> hth,
> -s
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/efb3fb0c-cbeb-4815-a0d9-ee7a4b638ad8n%40googlegroups.com.


Re: [go-nuts] gonum plot : font error

2021-05-17 Thread 'Sebastien Binet' via golang-nuts
Salut Fred,

On Mon May 17, 2021 at 14:11 CET, Fred wrote:
> Hi,
> I have 2 computers with Linux Manjaro and go version 1.16.3.
> The same scatter plot
>  works
> on
> one computer and produces on the other these already known errors :
> 
>
> # gonum.org/v1/plot/text
> /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:153:3: cannot use
> hdlr.Fonts.Lookup(rm, fnt.Size).Face (type *sfnt.Font) as type
> *truetype.Font in field value
> /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:154:3: cannot use
> hdlr.Fonts.Lookup(rm, fnt.Size).Face (type *sfnt.Font) as type
> *truetype.Font in field value
> /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:155:3: cannot use
> hdlr.Fonts.Lookup(it, fnt.Size).Face (type *sfnt.Font) as type
> *truetype.Font in field value
> /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:156:3: cannot use
> hdlr.Fonts.Lookup(bf, fnt.Size).Face (type *sfnt.Font) as type
> *truetype.Font in field value
> /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:157:3: cannot use
> hdlr.Fonts.Lookup(bfit, fnt.Size).Face (type *sfnt.Font) as type
> *truetype.Font in field value
> /home/fred/GO/src/gonum.org/v1/plot/text/latex.go:221:3: cannot use
> op.Glyph.Font (type *truetype.Font) as type *sfnt.Font in field value

this should indeed be fixed w/ gonum/plot@v0.9.0.

>
> an update does not fix the error.
>
> go get -u gonum.org/v1/plot/...
> # cd /home/fred/GO/src/github.com/go-latex/latex; git pull --ff-only
> Votre information de configuration indique de fusionner avec la
> référence
> 'refs/heads/master'
> du serveur distant, mais cette référence n'a pas été récupérée.
> package github.com/go-latex/latex/drawtex: exit status 1

this error may come from the fact that go-latex/latex is now using
'main' as its main branch in lieu of 'master'.

hth,
-s

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CBFJN9SW6KFZ.1AH0ARTYSCO4O%40zoidberg.


[go-nuts] gonum plot : font error

2021-05-17 Thread Fred
Hi,
I have 2 computers with Linux Manjaro and  go version 1.16.3.
The same scatter plot 
 works on 
one computer and produces on the other these already known errors : 


# gonum.org/v1/plot/text
/home/fred/GO/src/gonum.org/v1/plot/text/latex.go:153:3: cannot use 
hdlr.Fonts.Lookup(rm, fnt.Size).Face (type *sfnt.Font) as type 
*truetype.Font in field value
/home/fred/GO/src/gonum.org/v1/plot/text/latex.go:154:3: cannot use 
hdlr.Fonts.Lookup(rm, fnt.Size).Face (type *sfnt.Font) as type 
*truetype.Font in field value
/home/fred/GO/src/gonum.org/v1/plot/text/latex.go:155:3: cannot use 
hdlr.Fonts.Lookup(it, fnt.Size).Face (type *sfnt.Font) as type 
*truetype.Font in field value
/home/fred/GO/src/gonum.org/v1/plot/text/latex.go:156:3: cannot use 
hdlr.Fonts.Lookup(bf, fnt.Size).Face (type *sfnt.Font) as type 
*truetype.Font in field value
/home/fred/GO/src/gonum.org/v1/plot/text/latex.go:157:3: cannot use 
hdlr.Fonts.Lookup(bfit, fnt.Size).Face (type *sfnt.Font) as type 
*truetype.Font in field value
/home/fred/GO/src/gonum.org/v1/plot/text/latex.go:221:3: cannot use 
op.Glyph.Font (type *truetype.Font) as type *sfnt.Font in field value

an update does not fix the error.

go get -u gonum.org/v1/plot/...
# cd /home/fred/GO/src/github.com/go-latex/latex; git pull --ff-only
Votre information de configuration indique de fusionner avec la référence 
'refs/heads/master'
du serveur distant, mais cette référence n'a pas été récupérée.
package github.com/go-latex/latex/drawtex: exit status 1

the go/src/gonum.org/v1/plot/font directory is the same on both computers. 
Do I need to install some missing fonts ?

Thanks in advance,

Fred

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/826ba085-1506-4f07-a44e-c334fd7198bdn%40googlegroups.com.