Re: Plotting library for GTK+
On 02 Dec 2014 17:09 jcup...@gmail.com wrote: On 2 December 2014 at 16:17, Sergei Naumov vo...@rambler.ru wrote: I think this question was asked many times but googling gives a rather patchy answer to it. So, I am writing a piece of C code that acquires some data from hardware controllers and it also has to plot a few simple graphs and histograms out of them. What is a canonical tool for such a purpose? I use goffice for this kind of thing. It's the plot library from gnumeric, so any plot you can make in gnumeric, you can make with goffice. Do you know if it's safe to consider goffice for applications based on gtk3 that should run on win32 and linux? It's fast and beautiful enough, for me anyway. https://github.com/GNOME/goffice John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Plotting library for GTK+
On 8 December 2014 at 15:27, Johannes Deutsch j_deut...@web.de wrote: I use goffice for this kind of thing. It's the plot library from gnumeric, so any plot you can make in gnumeric, you can make with goffice. Do you know if it's safe to consider goffice for applications based on gtk3 that should run on win32 and linux? My app is still trapped in gtk2 so I have to use goffice 0.8. It works well on linux and windows. Current goffice is gtk3 only. As far as I know it works on Windows too. John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Plotting library for GTK+
Hi, folks! I think this question was asked many times but googling gives a rather patchy answer to it. So, I am writing a piece of C code that acquires some data from hardware controllers and it also has to plot a few simple graphs and histograms out of them. What is a canonical tool for such a purpose? I played a bit with GtkExtra but it seems that the project is somewhat forgotten and it does not have all the documentation in it. I also looked at Cairo but it is a low level library so I would have to implement all the scaling, axes, ticks and stuff myself. There are some interactive tools based on GTK but I need a library, as I have to build in plotting functionality. Can anyone help? -- Sergei O. Naumov ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Plotting library for GTK+
On Tue, 2 Dec 2014, Sergei Naumov wrote: Hi, folks! I think this question was asked many times but googling gives a rather patchy answer to it. So, I am writing a piece of C code that acquires some data from hardware controllers and it also has to plot a few simple graphs and histograms out of them. What is a canonical tool for such a purpose? I played a bit with GtkExtra but it seems that the project is somewhat forgotten and it does not have all the documentation in it. I also looked at Cairo but it is a low level library so I would have to implement all the scaling, axes, ticks and stuff myself. There are some interactive tools based on GTK but I need a library, as I have to build in plotting functionality. AFAIK there's no such library, unfortunately. However gnuplot is perhaps the nearest thing to a canonical open-source plotting program. It can be run quite effectively in slave mode and can produce a wide variety of output formats (notably, using cairo and pango). Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
RE: Re: Plotting library for GTK+
I think this question was asked many times but googling gives a rather patchy answer to it. So, I am writing a piece of C code that acquires some data from hardware controllers and it also has to plot a few simple graphs and histograms out of them. What is a canonical tool for such a purpose? I played a bit with GtkExtra but it seems that the project is somewhat forgotten and it does not have all the documentation in it. I also looked at Cairo but it is a low level library so I would have to implement all the scaling, axes, ticks and stuff myself. There are some interactive tools based on GTK but I need a library, as I have to build in plotting functionality. AFAIK there's no such library, unfortunately. However gnuplot is perhaps the nearest thing to a canonical open-source plotting program. It can be run quite effectively in slave mode and can produce a wide variety of output formats (notably, using cairo and pango). Gnuplot would be the best but it is an interactive program. It can also produce all kinds of file formats. Are you suggesting to create such files and display them in GTK application? -- Sergei O. Naumov ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
RE: Re: Plotting library for GTK+
On Tue, 2 Dec 2014, Sergei Naumov wrote: I think this question was asked many times but googling gives a rather patchy answer to it. So, I am writing a piece of C code that acquires some data from hardware controllers and it also has to plot a few simple graphs and histograms out of them. What is a canonical tool for such a purpose? I played a bit with GtkExtra but it seems that the project is somewhat forgotten and it does not have all the documentation in it. I also looked at Cairo but it is a low level library so I would have to implement all the scaling, axes, ticks and stuff myself. There are some interactive tools based on GTK but I need a library, as I have to build in plotting functionality. AFAIK there's no such library, unfortunately. However gnuplot is perhaps the nearest thing to a canonical open-source plotting program. It can be run quite effectively in slave mode and can produce a wide variety of output formats (notably, using cairo and pango). Gnuplot would be the best but it is an interactive program. It can also produce all kinds of file formats. Are you suggesting to create such files and display them in GTK application? Yes, it's not the ideal solution (using a library would be cleaner) but it works quite nicely. You can generate a plot in batch mode using gnuplot's pngcairo terminal and load the PNG into a GTK window. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
RE: Re: Plotting library for GTK+
-Original Message- From: gtk-app-devel-list [mailto:gtk-app-devel-list-boun...@gnome.org] On Behalf Of Allin Cottrell Sent: Tuesday, December 02, 2014 10:51 AM To: Sergei Naumov Cc: gtk-app-devel-list@gnome.org Subject: RE: Re: Plotting library for GTK+ On Tue, 2 Dec 2014, Sergei Naumov wrote: I think this question was asked many times but googling gives a rather patchy answer to it. So, I am writing a piece of C code that acquires some data from hardware controllers and it also has to plot a few simple graphs and histograms out of them. What is a canonical tool for such a purpose? I played a bit with GtkExtra but it seems that the project is somewhat forgotten and it does not have all the documentation in it. I also looked at Cairo but it is a low level library so I would have to implement all the scaling, axes, ticks and stuff myself. There are some interactive tools based on GTK but I need a library, as I have to build in plotting functionality. AFAIK there's no such library, unfortunately. However gnuplot is perhaps the nearest thing to a canonical open-source plotting program. It can be run quite effectively in slave mode and can produce a wide variety of output formats (notably, using cairo and pango). Gnuplot would be the best but it is an interactive program. It can also produce all kinds of file formats. Are you suggesting to create such files and display them in GTK application? Yes, it's not the ideal solution (using a library would be cleaner) but it works quite nicely. You can generate a plot in batch mode using gnuplot's pngcairo terminal and load the PNG into a GTK window. Allin Cottrell I do the same thing with graphs created in a separate python program with matplotlib. The information contained in this message is CONFIDENTIAL. It is intended only for the use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination or copying of this information is strictly prohibited. If you received this communication in error, please immediately notify the sender, and thereafter destroy any electronic copies of the message. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Plotting library for GTK+
On 2 December 2014 at 16:17, Sergei Naumov vo...@rambler.ru wrote: I think this question was asked many times but googling gives a rather patchy answer to it. So, I am writing a piece of C code that acquires some data from hardware controllers and it also has to plot a few simple graphs and histograms out of them. What is a canonical tool for such a purpose? I use goffice for this kind of thing. It's the plot library from gnumeric, so any plot you can make in gnumeric, you can make with goffice. It's fast and beautiful enough, for me anyway. https://github.com/GNOME/goffice John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Plotting library for GTK+
Isn't plplot an option for you? TL;DR, but it seems it can serve that purpose you need it for. On 2 Dec 2014 18:10, jcup...@gmail.com wrote: On 2 December 2014 at 16:17, Sergei Naumov vo...@rambler.ru wrote: I think this question was asked many times but googling gives a rather patchy answer to it. So, I am writing a piece of C code that acquires some data from hardware controllers and it also has to plot a few simple graphs and histograms out of them. What is a canonical tool for such a purpose? I use goffice for this kind of thing. It's the plot library from gnumeric, so any plot you can make in gnumeric, you can make with goffice. It's fast and beautiful enough, for me anyway. https://github.com/GNOME/goffice John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Plotting library for GTK+
On Tue, 2 Dec 2014 19:17:01 +0300 Sergei Naumov vo...@rambler.ru wrote: Can anyone help? GNU plot can be used with 'pipes', so you can send the commands to the program directly. I didn't use it with GNUplot itself, but with a program I made, and that form of 'remote control' is fairly handy. For a little more integration, have a look at xmgrace (http://plasma-gate.weizmann.ac.il/Grace/doc/UsersGuide.html#ss6.2) which can be called as subprocess for a C or fortran program. Xmgrace's plotting capabilities are very wide-ranging. From simple XY plotting to FFT and other niceties. In this day and with modern computers, I'd suggest Python + one of the plotting libraries. With matplotlib as the most sophisticated, but pyplot is sufficient in most cases (part of matplotlib). John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list