Fix X and Y bound setting and make plotting optional for mobility.

Refs #5234

Change-Id: I68440d941642dcc4e1924b0d0581cb21b364136e
diff --git a/minindn/wifi/minindnwifi.py b/minindn/wifi/minindnwifi.py
index 6a6ad88..849621e 100644
--- a/minindn/wifi/minindnwifi.py
+++ b/minindn/wifi/minindnwifi.py
@@ -270,15 +270,17 @@
         except configparser.NoSectionError:
             debug("Mobility section is optional\n")
 
-    def startMobility(self, max_x=1000, max_y=1000, **kwargs):
+    def startMobility(self, max_x=1000, max_y=1000, plot=True, **kwargs):
         """ Method to run a basic mobility setup on your net"""
-        self.net.plotGraph(max_x=max_x, max_y=max_y)
-        self.net.startMobility(**kwargs)
+        if plot:
+            self.net.plotGraph(max_x=max_x, max_y=max_y)
+        self.net.startMobility(max_x=max_x, max_y=max_y, **kwargs)
 
-    def startMobilityModel(self, max_x=1000, max_y=1000, **kwargs):
+    def startMobilityModel(self, max_x=1000, max_y=1000, plot=True, **kwargs):
         """ Method to run a mobility model on your net until exited"""
-        self.net.plotGraph(max_x=max_x, max_y=max_y)
-        self.net.setMobilityModel(**kwargs)
+        if plot:
+            self.net.plotGraph(max_x=max_x, max_y=max_y)
+        self.net.setMobilityModel(max_x=max_x, max_y=max_y, **kwargs)
 
     def getWifiInterfaceDelay(self, node, interface=None):
         """Method to return the configured tc delay of a wifi node's interface as a float"""