Hi Michael,

I'm running a (very simple) simulation that I control via TraCI. At each step I 
read the value of some induction loops and I use these values to update how 
many cars have passed through each of the loops. I use matplotlib to plot the 
time series of these values (i.e. one line per loop, with x axis being the 
simulation step and y axis being the number of cars).

I haven't tried writing to a file, only to update the plot at each simulation 
step.

Everything works until the plot window gets the focus (for instance if I want 
to move it somewhere else in my screen). Then, while the simulation still runs, 
the plot is not updated.

Regards,

Didac

Didac Busquets PhD
Senior Technologist

Transport Systems Catapult
3rd Floor, The Pinnacle
170 Midsummer Boulevard
Milton Keynes
MK9 1BP

Tel:  +44 (0)1908 359999 Ext: 1126
Email: [email protected]
Web: ts.catapult.org.uk

To learn more about the Transport Systems Catapult, watch our video



-----Original Message-----
From: Michael Behrisch [mailto:[email protected]]
Sent: 01 June 2015 16:49
To: Didac Busquets; [email protected]
Subject: Re: [sumo-user] Interactive visualisation with Matplotlib

Hi Didac,
I cannot imagine why it should make a difference. Can you explain a bit more in 
detail what you are trying to do? Did you try writing an image file (or 
mutliple ones) instead of painting to the screen?

Regards,
Michael

Am 19.05.2015 um 15:35 schrieb Didac Busquets:
> Hi all,
>
> I'd like to plot some graphs with matplotlib while running a simulation (vai 
> TraCI), but it only works if I run it without GUI. When using the GUI, the 
> matplotlib windows freezes.
>
> Has anyone done such kind of "on-line" plotting.
>
> I've seen the visualization scripts that use matplotlib, but all of them are 
> for off-line plotting, right?
>
> Thanks,
>
>                 Didac
>
>
>
> Didac Busquets PhD
> Senior Technologist
>
> Transport Systems Catapult
> 3rd Floor, The Pinnacle
> 170 Midsummer Boulevard
> Milton Keynes
> MK9 1BP
>
> Tel:  +44 (0)1908 359999 Ext: 1126
> Email:
> [email protected]<mailto:[email protected]
> g.uk>
> Web: ts.catapult.org.uk<http://ts.catapult.org.uk/>
>
> To learn more about the Transport Systems Catapult, watch our
> video<http://bit.ly/TSCVideo>
>
> [cid:[email protected]]
>
> The Transport Systems Catapult is one of a network of elite technology and 
> innovation centres established by Innovate UK as a long-term investment in 
> the UK's economic capability. Applying business-led research, Catapults help 
> businesses transform great ideas into valuable products and services to 
> compete in the global markets of tomorrow. Transport Systems Catapult is a 
> company limited by guarantee, registered in England and Wales with company 
> number 08041919. Registered office: The Pinnacle, Midsummer Boulevard, Milton 
> Keynes, Bucks, MK9 1BP. This email and any attachments are confidential and 
> intended solely for the use of the recipient(s) to whom they are addressed. 
> If you have received it in error, please destroy all copies and inform the 
> sender.
>
>
>
> ----------------------------------------------------------------------
> -------- One dashboard for servers and applications across
> Physical-Virtual-Cloud Widest out-of-the-box monitoring support with
> 50+ applications Performance metrics, stats and reports that give you
> Actionable Insights Deep dive visibility with transaction tracing
> using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>
>
>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>

The Transport Systems Catapult is one of a network of elite technology and 
innovation centres established by Innovate UK as a long-term investment in the 
UK’s economic capability. Applying business-led research, Catapults help 
businesses transform great ideas into valuable products and services to compete 
in the global markets of tomorrow. Transport Systems Catapult is a company 
limited by guarantee, registered in England and Wales with company number 
08041919. Registered office: The Pinnacle, Midsummer Boulevard, Milton Keynes, 
Bucks, MK9 1BP. This email and any attachments are confidential and intended 
solely for the use of the recipient(s) to whom they are addressed. If you have 
received it in error, please destroy all copies and inform the sender.
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to