The vehicle ID is printed to the console (the command line window to start 
the script from), not inside the plot window. For example on Windows:
    * run a cmd instance
    * start the script from there
    * click on a line in the plot
    * you should be able to see a line with vehicle ID and plot coordinates
      printed in the cmd
Best regards
Mirko
 
 
 
-----Original-Nachricht-----
Betreff: Re: [sumo-user] Vehicle trajectory plotting
Datum: 2022-08-19T08:34:12+0200
Von: "Chithra Saikrishna" <[email protected]>
An: "Sumo project User discussions" <[email protected]>
 
 
 
Hi,
I have obtained trajectory plot using the command:
 plot_trajectories.py fcd_output.xml -t td -o plot.png -s --filter-route 
J1L1
But vehicle names are not displayed on the interactive console for 
identifying the vehicle types. How can this be resolved?
 
Regards, 
Chithra

On Fri, Aug 19, 2022 at 6:29 AM Chithra Saikrishna <[email protected]
<mailto:[email protected]> > wrote:
  Thank you.

  On Thu, Aug 18, 2022, 11:59 PM Mirko Barthauer <[email protected]
  <mailto:[email protected]> > wrote:
    Hi,
    for example use FCD device
    <https://sumo.dlr.de/docs/Simulation/Output/FCDOutput.html> to generate
    the trajectory data. It can be restricted locally and attached to a
    subset of your vehicles, either a fraction or specific ones (read the
    docs carefully). Pass the FCD data to plotXMLAttributes
    <https://sumo.dlr.de/docs/Tools/Visualization.html#plotxmlattributespy> 
    script to generate the plot. There you can also generate separate plots
    for subsets of vehicles.
    Best regards
    Mirko
    Am 18.08.2022 um 19:18 schrieb Chithra Saikrishna:

        Hello all,
        Is it possible to directly plot  trajectories of selected vehicles
        passing through selected edges of the network  ?
         Thanks in advance.
         
        Regards
        Chithra


        _______________________________________________ sumo-user mailing list 
[email protected]
        <mailto:[email protected]> To unsubscribe from this list, visit 
        <https://www.eclipse.org/mailman/listinfo/sumo-user> 

    _______________________________________________
    sumo-user mailing list
    [email protected] <mailto:[email protected]>
    To unsubscribe from this list, visit
    <https://www.eclipse.org/mailman/listinfo/sumo-user>

_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to