[go-nuts] Re: Graphing libraries in golang

2017-09-29 Thread ajstarks
SVGo is library for SVG generation, but others (some cited in this thread), 
have used it as a basis for building graphics and visualizations.  See: [1] 
 for examples (including how to interface to data, there's even a barchart 
[2]  example :)


[1] 
https://speakerdeck.com/ajstarks/the-other-side-of-go-programming-pictures
[2] https://github.com/ajstarks/svgo/blob/master/barchart/barchart.go


On Friday, September 29, 2017 at 1:42:50 AM UTC-4, Vikram Rawat wrote:
>
> By graphing I actually meant *data visualization libraries*
>
> SVGO would be so hard to pass a data to and design even the basic and 
> simple *BARCHART*
>
> other ones don't have enough documentation to understand how it works.
>
> and The reason I am trying GO is that R is slow. There is no point in 
> calling R from Go.
>
>
> *So is there any package that is implemented in base GO with the speed of 
> GO and worth learning.*
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Re: Graphing libraries in golang

2017-09-29 Thread Sebastien Binet
On Fri, Sep 29, 2017 at 10:33 AM, Vikram Rawat 
wrote:

> thanks a lot for your reply sebestian.
>
>
> You certainly are a good man and I have high hopes for your library too...
>
> But before coming to Mailing list I check almost all of them and I didn't
> find anyone useful. The  https://github.com/aclements/go-gg package is
> not useful at all. Because there is noone using it and the last commit was
> 6 months ago. It's more likely that the developer gave up on it. It's a
> common norm in open source don't use a new package which has a very old
> commit.
>

AFAIK, go-gg (and its "subpackages") is what is used by perf.golang.org:
 https://perf.golang.org/

https://github.com/golang/proposal/blob/master/design/14313-benchmark-format.md
 https://github.com/golang/perf/tree/master/analysis/app

so it's used by that package, and this more focused one:
 https://godoc.org/github.com/aclements/go-misc/benchplot


>
>
> I have checked most of them. I came here seeking for a like-minded people
> who had created any graphs in go for actual projects. I didn't find any.
>
> Hope you understand it. Good luck for your package I hope it can be useful
> in future. Just as a word of advice link it with GOTA. then it can be more
> intuitive for people from analytical background.
>

I don't think gonum/plot nor go-hep/hplot should depend on GOTA.
Nor do I think that GOTA should import any of those.

But, probably there is some space for another 3rd party package that import
both (GOTA, or your prefered data storage access/mangler package, and
gonum/plot or hplot) and then exposes an easy to use interface for quick
throw-away scripts.

-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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: Graphing libraries in golang

2017-09-29 Thread Vikram Rawat

>
> thanks a lot for your reply sebestian. 


You certainly are a good man and I have high hopes for your library too...

But before coming to Mailing list I check almost all of them and I didn't 
find anyone useful. The  https://github.com/aclements/go-gg package is not 
useful at all. Because there is noone using it and the last commit was 6 
months ago. It's more likely that the developer gave up on it. It's a 
common norm in open source don't use a new package which has a very old 
commit.



I have checked most of them. I came here seeking for a like-minded people 
who had created any graphs in go for actual projects. I didn't find any.

Hope you understand it. Good luck for your package I hope it can be useful 
in future. Just as a word of advice link it with GOTA. then it can be more 
intuitive for people from analytical background.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Re: Graphing libraries in golang

2017-09-29 Thread Sebastien Binet
Vikram,


On Sep 29, 2017 8:49 AM, "Vikram Rawat"  wrote:

Thanks for your reply. Library seems promising. but when I run it , this
errors out



cannot find package "bitbucket.org/zombiezen/gopdf/pdf" in any of:
C:\Go\src\bitbucket.org\zombiezen\gopdf\pdf (from $GOROOT)
C:\Projects\Go\src\bitbucket.org\zombiezen\gopdf\pdf (from $GOPATH)



when I try go get on these packages they don't work either.

C:\Projects\Go\src>go get bitbucket.org/zombiezen/gopdf/pdf
go: missing Mercurial command. See https://golang.org/s/gogetcmd
package bitbucket.org/zombiezen/gopdf/pdf: exec: "hg": executable file not
found in %PATH%



You need to install mercurial to retrieve the repository from bitbucket.

We may at some point drop this dependency and use one from GitHub (so there
shouldn't be anymore the need to get mercurial first...)



> I saw a talk on some youtube regarding go in data science. I learned go 2
> months ago but now I feel like it's an entirely different beast. look I am
> just trying to learn GOLANG so that when I need to build something may be
> after 5 to 10 months I would be comfirtable working with it. So Right now I
> don't have a use case scnario. I am just trying to learn the language.



But there are a lot of improvements needed like

1. 49 lines of code just to create a flat basic line chart for random
numbers. and that's when I haven't even got my data in from the database or
did some background coloring.
2. Loops are not good while creating graphs you know them I don't I can
miss one and mess it up entirely. With loops, I would never be sure if I
have created the right graph. Loops should just run in the background not
for me to see or create.
3. The syntax just doesn't feel intuitive. I feel like nobody would be able
to predict the next command in the sequence. You must know now there is a
grammar of graphics. it's used in ggplot2, ggvis, vega, vega-lite, and many
python packages as well.
4. Analysts don't care about speed (maybe a bit) but data. What they do
care about is their data code should be easy else your mind will be
occupied by typing and thinking code when it should be thinking about data.


Data is important, indeed, and knowing how you present it too :)

If you prefer a grammar of graphics type of library, there's this one as
well:

https://github.com/aclements/go-gg



today I just feel like golang doesn't have ploting libraries they never
thought it was necessary but straight away starting comparing it to python.

but can you please tell me how to run those examples. I am not able to run
it. what am I doing wrong.

-- 
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.
For more options, visit https://groups.google.com/d/optout.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Re: Graphing libraries in golang

2017-09-29 Thread Dan Kortschak
To get bitbucket.org/zombiezen/gopdf/... to install, you will need to
install mercurial.




On Thu, 2017-09-28 at 23:49 -0700, Vikram Rawat wrote:
> Thanks for your reply. Library seems promising. but when I run it ,
> this 
> errors out
> 
> 
> 
> cannot find package "bitbucket.org/zombiezen/gopdf/pdf" in any of:
> C:\Go\src\bitbucket.org\zombiezen\gopdf\pdf (from $GOROOT)
> C:\Projects\Go\src\bitbucket.org\zombiezen\gopdf\pdf (from $GOPATH)
> 
> 
> 
> when I try go get on these packages they don't work either.
> 
> C:\Projects\Go\src>go get bitbucket.org/zombiezen/gopdf/pdf
> go: missing Mercurial command. See https://golang.org/s/gogetcmd
> package bitbucket.org/zombiezen/gopdf/pdf: exec: "hg": executable
> file not 
> found in %PATH%
>  
>  
> 
> > 
> > I saw a talk on some youtube regarding go in data science. I
> > learned go 2 
> > months ago but now I feel like it's an entirely different beast.
> > look I am 
> > just trying to learn GOLANG so that when I need to build something
> > may be 
> > after 5 to 10 months I would be comfirtable working with it. So
> > Right now I 
> > don't have a use case scnario. I am just trying to learn the
> > language.
> 
> 
> But there are a lot of improvements needed like
> 
> 1. 49 lines of code just to create a flat basic line chart for
> random 
> numbers. and that's when I haven't even got my data in from the
> database or 
> did some background coloring.
> 2. Loops are not good while creating graphs you know them I don't I
> can 
> miss one and mess it up entirely. With loops, I would never be sure
> if I 
> have created the right graph. Loops should just run in the background
> not 
> for me to see or create.
> 3. The syntax just doesn't feel intuitive. I feel like nobody would
> be able 
> to predict the next command in the sequence. You must know now there
> is a 
> grammar of graphics. it's used in ggplot2, ggvis, vega, vega-lite,
> and many 
> python packages as well.
> 4. Analysts don't care about speed (maybe a bit) but data. What they
> do 
> care about is their data code should be easy else your mind will be 
> occupied by typing and thinking code when it should be thinking about
> data.
> 
> 
> today I just feel like golang doesn't have ploting libraries they
> never 
> thought it was necessary but straight away starting comparing it to
> python.
> 
> but can you please tell me how to run those examples. I am not able
> to run 
> it. what am I doing wrong.
> 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: Graphing libraries in golang

2017-09-29 Thread Vikram Rawat
Thanks for your reply. Library seems promising. but when I run it , this 
errors out



cannot find package "bitbucket.org/zombiezen/gopdf/pdf" in any of:
C:\Go\src\bitbucket.org\zombiezen\gopdf\pdf (from $GOROOT)
C:\Projects\Go\src\bitbucket.org\zombiezen\gopdf\pdf (from $GOPATH)



when I try go get on these packages they don't work either.

C:\Projects\Go\src>go get bitbucket.org/zombiezen/gopdf/pdf
go: missing Mercurial command. See https://golang.org/s/gogetcmd
package bitbucket.org/zombiezen/gopdf/pdf: exec: "hg": executable file not 
found in %PATH%
 
 

> I saw a talk on some youtube regarding go in data science. I learned go 2 
> months ago but now I feel like it's an entirely different beast. look I am 
> just trying to learn GOLANG so that when I need to build something may be 
> after 5 to 10 months I would be comfirtable working with it. So Right now I 
> don't have a use case scnario. I am just trying to learn the language.



But there are a lot of improvements needed like

1. 49 lines of code just to create a flat basic line chart for random 
numbers. and that's when I haven't even got my data in from the database or 
did some background coloring.
2. Loops are not good while creating graphs you know them I don't I can 
miss one and mess it up entirely. With loops, I would never be sure if I 
have created the right graph. Loops should just run in the background not 
for me to see or create.
3. The syntax just doesn't feel intuitive. I feel like nobody would be able 
to predict the next command in the sequence. You must know now there is a 
grammar of graphics. it's used in ggplot2, ggvis, vega, vega-lite, and many 
python packages as well.
4. Analysts don't care about speed (maybe a bit) but data. What they do 
care about is their data code should be easy else your mind will be 
occupied by typing and thinking code when it should be thinking about data.


today I just feel like golang doesn't have ploting libraries they never 
thought it was necessary but straight away starting comparing it to python.

but can you please tell me how to run those examples. I am not able to run 
it. what am I doing wrong.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: Graphing libraries in golang

2017-09-28 Thread Egon


On Friday, 29 September 2017 08:42:50 UTC+3, Vikram Rawat wrote:
>
> By graphing I actually meant *data visualization libraries*
>
> SVGO would be so hard to pass a data to and design even the basic and 
> simple *BARCHART*
>
> other ones don't have enough documentation to understand how it works.
>

https://github.com/gonum/plot/wiki/Example-plots
 

>
> and The reason I am trying GO is that R is slow. There is no point in 
> calling R from Go.
>
>
> *So is there any package that is implemented in base GO with the speed of 
> GO and worth learning.*
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: Graphing libraries in golang

2017-09-28 Thread Vikram Rawat

>
> By graphing I actually meant *data visualization libraries*

SVGO would be so hard to pass a data to and design even the basic and 
simple *BARCHART*

other ones don't have enough documentation to understand how it works.

and The reason I am trying GO is that R is slow. There is no point in 
calling R from Go.


*So is there any package that is implemented in base GO with the speed of 
GO and worth learning.*

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Re: Graphing libraries in golang

2017-09-28 Thread Rich
Not sure if this applies but I did some graphing using 
this: https://godoc.org/github.com/ajstarks/svgo  

On Wednesday, September 27, 2017 at 8:35:49 PM UTC-4, kortschak wrote:
>
> On Wed, 2017-09-27 at 08:54 -0700, Volker Dobler wrote: 
> > One from https://awesome-go.com/#science-and-data-analysis 
> > probably should fit your needs. Or try looking for R bindings and 
> > run your plots through R. 
>
>
> https://godoc.org/gonum.org/v1/plot for the first and 
> https://godoc.org/github.com/kortschak/arrgh for the second. 
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Re: Graphing libraries in golang

2017-09-27 Thread Dan Kortschak
On Wed, 2017-09-27 at 08:54 -0700, Volker Dobler wrote:
> One from https://awesome-go.com/#science-and-data-analysis
> probably should fit your needs. Or try looking for R bindings and
> run your plots through R.


https://godoc.org/gonum.org/v1/plot for the first and 
https://godoc.org/github.com/kortschak/arrgh for the second.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: Graphing libraries in golang

2017-09-27 Thread Volker Dobler
One from https://awesome-go.com/#science-and-data-analysis
probably should fit your needs. Or try looking for R bindings and
run your plots through R.

V.

On Wednesday, 27 September 2017 17:05:36 UTC+2, Vikram Rawat wrote:
>
> I come from an R background and I am not able to find one single decent 
> not too fancy but a decent graphing library that's good enough to work.
>
> Can you please suggest any library that is good enough for production 
> level plots. Visualisation is the need of today. I don't believe that it 
> doesn't have any but I was not able to search any good one.
>
> Please do reply
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.