|
Bugzilla – Full Text Bug Listing |
| Summary: | Pyviz visualizer bounds are hardcoded and may be misaligned with mobility | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Nicholas Loulloudes <loulloudes.n> |
| Component: | visualizer | Assignee: | Gustavo J. A. M. Carneiro <gjcarneiro> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | matt-bradbury, ns-bugs, tomh |
| Priority: | P5 | ||
| Version: | ns-3.11 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Attachments: |
NS2 Mobility Traces
Patch to automatically increase visualisation bounds when a node moves |
||
|
Description
Nicholas Loulloudes
2011-07-06 09:58:01 UTC
Created attachment 1189 [details]
NS2 Mobility Traces
It's true, visualizer bounds are hardcoded initially to +/-3000 m. It is only possible to change it with a Python API only at the moment.
In the mean time, if you want to change the hardcoded value, look for this line:
self.canvas.set_bounds(-10000, -10000, 10000, 10000)
in src/visualizer/visualizer/core.py. That value is 3 times the value in meters.
Created attachment 3097 [details]
Patch to automatically increase visualisation bounds when a node moves
I have encountered this issue myself, with nodes mobile over a 40KM^2 area. The default bounds of the visualiser are insufficient to display all the nodes present, as nodes initially start close to each other and then move away from each other.
The attached patch will increase the bounds when a node moves outside the starting area.
fixed in changeset 13629:29680b2a505e |