Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-dev] plot_net_dump visualization

Yes they are:
<meandata xmlns:xsi="" xsi:noNamespaceSchemaLocation="">
    <interval begin="0.00" end="20.00" id="dumps_0_10000">
        <edge id="-240593088#5" sampledSeconds="0.06" traveltime="10.01" overlapTraveltime="10.94" density="0.06" laneDensity="0.02" occupancy="0.00" waitingTime="0.00" timeLoss="0.04" speed="5.39" departed="0" arrived="0" entered="1" left="0" laneChangedFrom="1" laneChangedTo="1"/>
        <edge id="-25368524#3" sampledSeconds="0.16" traveltime="8.84" overlapTraveltime="9.62" density="0.14" laneDensity="0.07" occupancy="0.00" waitingTime="0.00" timeLoss="0.07" speed="6.43" departed="0" arrived="0" entered="1" left="0" laneChangedFrom="0" laneChangedTo="0"/>
        <edge id="-25368524#4" sampledSeconds="3.97" traveltime="3.19" overlapTraveltime="3.97" density="7.53" laneDensity="3.77" occupancy="1.59" waitingTime="0.00" timeLoss="1.31" speed="7.90" departed="0" arrived="0" entered="1" left="1" laneChangedFrom="1" laneChangedTo="1"/>

I have tried also with sampledSeconds,traveltime and still did not work:
I used this command:
python SUMO_HOME/tools/visualization/ -v -n --measures sampledSeconds,traveltime --xlabel [m] --ylabel [m]  --default-width 0.5 -i  dumps_0_10000.xml,dumps_0_10000.xml --xlim 300,1500 --ylim 1100,2300 --min-color-value -1000 --max-color-value 1000 --min-width-value -1000 --max-width-value 1000 --colormap seismic
 Any more ideas :( ?

On Fri, Sep 3, 2021 at 9:40 AM <Daniel.Krajzewicz@xxxxxx> wrote:

Hello there,


You pass “--measures speed,entered” as measures to show, but they are not included in your files. Use “--measures sampledSeconds,traveltime” instead.





Von: sumo-dev <sumo-dev-bounces@xxxxxxxxxxx> Im Auftrag von Jakob Erdmann
Gesendet: Freitag, 3. September 2021 08:36
An: sumo developer discussions <sumo-dev@xxxxxxxxxxx>
Betreff: Re: [sumo-dev] plot_net_dump visualization


Both files passed to the plotting script must cover the same time intervals. The first file is used for the colors and the second for the width (the same file may be used for both parts).

By passing two files with different time ranges to the script, no color and width data with the same timestamps are found.


Am Fr., 3. Sept. 2021 um 08:01 Uhr schrieb Iulia Onică <onica.iulia26@xxxxxxxxx>:

It is not like there is no plot at all. By removing the limits it gets zoomed out.

It is plotted like this:


The problem is that it is not colored at all.

Also, the path I am using looks looks this:

python D:/prog/tools/visualization/


Do you have any idea what might be?


Thank you!


On Fri, Sep 3, 2021 at 8:49 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:

Possibly, you are plotting an empty spatial range. Try running your command without --xlim and --ylim.  Also, the tool is located at SUMO_HOME/tools/visualization. If you put it someplace else it may not find it's libraries.


Am Do., 2. Sept. 2021 um 19:49 Uhr schrieb Iulia Onică <onica.iulia26@xxxxxxxxx>:



I was trying to get a plot using plot_net_dump python script but it seems like nothing is plotted.

I used the following command:

python .SUMO HOME/ -v -n --measures speed,entered --xlabel [m] --ylabel [m]  --default-width 0.5 -i  dumps_0_500.xml,dumps_500_1000.xml --xlim 300,1500 --ylim 1100,2300 --min-color-value -1000 --max-color-value 1000 --min-width-value -1000 --max-width-value 1000 --colormap seismic


And nothing gets colored on the map. I ran the simulation with a random traffic using and with this code for the additional file:

<edgeData id="dumps_0_500" freq="20" file="dumps_0_500.xml" excludeEmpty="true" begin="0" end="500"/>

<edgeData id="dumps_500_1000" freq="20" file="dumps_500_1000.xml" excludeEmpty="true" begin="500" end="1000"/>


The output file looks like this:



Do you know which may be the problem?


Thanks a lot,


sumo-dev mailing list
To unsubscribe from this list, visit

sumo-dev mailing list
To unsubscribe from this list, visit




sumo-dev mailing list
To unsubscribe from this list, visit

sumo-dev mailing list
To unsubscribe from this list, visit

Back to the top