Re: [Plplot-general] Plotting from multithreaded environment

2015-01-26 Thread Arjen Markus
Hi Sergei, I took example x00 and turned it into a multithreaded version. It worked as you would expect - the picture is drawn correctly in the separate thread, no problems there. It would seem that there is more to it than "merely" a multithreaded environment. Could you try this code and

Re: [Plplot-general] Plotting from multithreaded environment

2015-01-14 Thread Arjen Markus
Hi Sergei, > -Original Message- > From: Sergei Naumov [mailto:vo...@rambler.ru] > Sent: Tuesday, January 13, 2015 5:45 PM > To: Arjen Markus > Cc: plplot-general@lists.sourceforge.net > Subject: RE: RE: RE: RE: RE: [Plplot-general] Plotting from multithreaded > envir

Re: [Plplot-general] Plotting from multithreaded environment

2015-01-13 Thread Sergei Naumov
> I do not know anything about the GTK multithreading capabilities, so what I > would like to know is, where are the threads introduced, is that in > g_timeout()? > But I would think that it initialises a single extra thread. Plplot itself is > not threadsafe, that is, you should not use the

Re: [Plplot-general] Plotting from multithreaded environment

2015-01-13 Thread Sergei Naumov
 13.01.2015, 17:12:27 пользователь Arjen Markus (arjen.mar...@deltares.nl) написал: > What happens if you do not use g_timeout()? I’d say the plot should appear > (at least the axes). Nop... I moved it to the end if init_app() and the axes appeared. Probably because plotting happens in the ma

Re: [Plplot-general] Plotting from multithreaded environment

2015-01-13 Thread Arjen Markus
; To: Plplot General > Cc: Arjen Markus > Subject: RE: RE: RE: RE: [Plplot-general] Plotting from multithreaded > environment > > > > > 13.01.2015, 17:09:55 пользователь Sergei Naumov (vo...@rambler.ru) > написал: > > > > > > > > 13.01.2015, 16:50:49

Re: [Plplot-general] Plotting from multithreaded environment

2015-01-13 Thread Sergei Naumov
> 13.01.2015, 17:09:55 пользователь Sergei Naumov (vo...@rambler.ru) написал: > > > > 13.01.2015, 16:50:49 пользователь Arjen Markus (arjen.mar...@deltares.nl) > написал: > > > Hi Sergei, > > The purpose of plend() (called in setup_plot_drawable()) is to close off > > the Plplot library, so

Re: [Plplot-general] Plotting from multithreaded environment

2015-01-13 Thread Arjen Markus
; Cc: plplot-general@lists.sourceforge.net > Subject: RE: RE: RE: [Plplot-general] Plotting from multithreaded environment > > > > > > > 13.01.2015, 16:50:49 пользователь Arjen Markus (arjen.mar...@deltares.nl) > написал: > > > Hi Sergei, > > The purpose of plen

Re: [Plplot-general] Plotting from multithreaded environment

2015-01-13 Thread Arjen Markus
: Tuesday, January 13, 2015 2:07 PM > To: Arjen Markus > Cc: plplot-general@lists.sourceforge.net > Subject: RE: RE: [Plplot-general] Plotting from multithreaded environment > > > 13.01.2015, 16:01:48 пользователь Arjen Markus (arjen.mar...@deltares.nl) > написал: > > &g

Re: [Plplot-general] Plotting from multithreaded environment

2015-01-13 Thread Sergei Naumov
13.01.2015, 16:01:48 пользователь Arjen Markus (arjen.mar...@deltares.nl) написал: > Hi Sergei, >  > Can you give us a (preferrably small) example of this behaviour? Seems the attachment did not come to the mailing list. Did it come to you? -- Sergei --

[Plplot-general] Plotting from multithreaded environment

2015-01-13 Thread Sergei Naumov
Hi! I am writing a program that periodically pulls data over a serial line. It has to process and plot them. The plotting is done into a GDK_PIXMAP. In order to pull data periodically I start a separate gdk thread with g_timeout_add_seconds(). What I find however is that all plplot commands that