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
  • From: <Daniel.Krajzewicz@xxxxxx>
  • Date: Fri, 3 Sep 2021 06:57:53 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: sumo-dev@xxxxxxxxxxx
  • Ironport-hdrordr: A9a23:ikrt8a3FzqNpE23EW9A+tAqjBJIkLtp133Aq2lEZdPU1SKClfq +V7ZYmPHPP6Qr5O0tOpTnjAtjifZq0z/cciuN9AVq7ZniDhILBFvAG0WKI+V3d8kPFmNK0H8 9bAs9D4B6ZNykdsS6BijPIa+rJm7O8gduVbSK39QYVcemvA5sQlTuQzW6gYzBLeDU=
  • Ironport-phdr: A9a23:cBL2ehBwNl4Lt+NkVcYaUyQUQkQY04WdBeb1wqQuh78GSKm/5ZOqZ BWZua81ygaTA86Cs68MotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7G MNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+5YHfbx9ViDajYL5+I wi6oRnRu8ILnYZsN6E9xwfTrHBVYepW32RoJVySnxb4+Mi9+YNo/jpTtfw86cNOSL32cKskQ 7NWCjQmKH0169bwtRbfVwuP52ATXXsQnxFVHgXK9hD6XpP2sivnqupw3TSRMMPqQbwoXzmp8 qFmQwLqhigaLT406GHZhNJtgqJHrhyvpBJ/zIzVYI6JO/VzZbndcc8YRWdbQspdSy5MD4WhZ IUPFeoBOuNYopH6qlUAtxS+AwisC/3ryjNSg3H2x7c10+YgEA7Y0g0gHs4BsXXPodroMKcSS /q5w7TWwjjaaf5dxDjy5pTSfB87vfGMQax/cdDXyUQ3Cg7IjUmcpJDqMj+IyukBrmyW4uRuW +6zlmMppQF8rzihy8kihYfEmIwbxk3Y+Ct2wos4JN21Rk5lbdO6DJZdqSeXPJZ4TMMlRmFno ic6yrsetJ+1ciUG0pMnxwTQa/CfboeI5gjjWPyMLjhmnH5qZq6whxKz8Ui40e3zSNO40FFQr ipKlNTHq3MD1wTL58SaVvdx5Fqt1DWA2gzJ9+1JL0M5mbDFJ5Mu2rI8i4YfvV7eEiL1l0j6l rKae0sn9+Sy9ejqYrrrq5mBPIFukA7+KL4hmsmnDOQ9NQgBQnaU9Pyn1L3m4U35WLJKjuAqk qXBsJDVO8AbpqmhDgFb1Igt5RmxATem3tofnncJK0hLdAyIgobmOl7DPur0Dfa5g1Swijdk3 erKMaDlApXXNHTMjanuca58605a1gUz0chS649IBr0bPf7+WUD8uMbFAhI3MAG42fjrBdpl2 oMbQ22PA6uZMK3IsV+P4+IiO+eCa5UTuDb8Nfcl4+Tig3ojmVAHf6mo3IUYaX65Hvt6IkSUe mfjgtMbEWsQowUxUvTmiEeeXj5Le3ayQ6U86ykgCIK7CIfDQZmhj6Gf0yelBZBZeHxJClSNE XfwbIWLRe0AaCWIIs9uwXQ5U6O8QdohyQ22r129jKV4MazZ8SkZrYnukt9v6KrWnBA28DVyS MCcyH2MSW9z2XgVQjhz0K1h8nF70UqJ8bR9h6lYCcBL/KEOFRglKtjRxOh7E8v/HAXbcZCMQ VeiR9ygRjUwVc4wxdEJJF1gHtLngh3djBesGKIfq7GbGMk07r7ExCq2YNli1DDL360gl0IrB MxVOiqjj6978gHVQIrIiFmYkaitMr8B2SmI+GqdnlaJ6RVDTQt3FKnIQ1gSbU/Xtc/0oETYQ On9J64gN14V5ceEK6ZOLP7zhFdUSejiM8b2b2ar3Wu9U0XbjoiQZZbnLj1OlB7WD1IJxlh7w A==
  • Ironport-sdr: 33ZPIt80F+Hg8OisXI/G/AOnHX7ni6k6sksHdkLI+p1sJBLQCgCwD3T4BEPAx9Cu/XSbgKIB6/ RrMVUMNp8khg==
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-dev/>
  • List-help: <mailto:sumo-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-dev>, <mailto:sumo-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-dev>, <mailto:sumo-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHXoCLfFW46laUNFk+r78XolAt9WauRrOYAgAADlACAAAmIgIAAImFQ///ioICAACKXcA==
  • Thread-topic: [sumo-dev] plot_net_dump visualization

Well, maybe removing „--min-color-value -1000 --max-color-value 1000 --min-width-value -1000 --max-width-value 1000”?

 

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

 

Yes they are:

<meandata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/meandata_file.xsd">

    <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:

image.png

I used this command:

python SUMO_HOME/tools/visualization/plot_net_dump.py -v -n pr.net.xml --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.

 

Sincerely,

Daniel

 

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:

image.png

The problem is that it is not colored at all.

Also, the path I am using looks looks this:

python D:/prog/tools/visualization/plot_net_dump.py

 

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>:

Hello,

 

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/plot_net_dump.py -v -n pr.net.xml --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 random_trips.py 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:

image.png

 

Do you know which may be the problem?

 

Thanks a lot,

Iulia

_______________________________________________
sumo-dev mailing list
sumo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev

_______________________________________________
sumo-dev mailing list
sumo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev


 

--

Iulia

sumo-dev mailing list
sumo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev

_______________________________________________
sumo-dev mailing list
sumo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-dev


 

 


Back to the top