Patches item #1495059, was opened at 2006-05-25 10:19 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=681143&aid=1495059&group_id=118428
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Bjorn Hansen (holomorph) Assigned to: Nobody/Anonymous (nobody) Summary: easily adjust numberOfContours for matplotlibViewer Initial Comment: This adds an optional numberOfContours argument to the matplotlibViewer plot() method, instead of having it hard coded to 10. It is then possible to do: viewer.plot(numberOfContours = 50) and get a plot with 50 contours instead of ten, but still : viewer.plot() gives the same results as before (ten contours). diff fipy/viewers/matplotlibViewer/matplotlib2DViewer.py /usr/lib/python2.4/site-packages/fipy/viewers/matplotlibViewer/matplotlib2DViewer.py 86c86 < def _plot(self): --- > def _plot(self, numberOfContours): 107d106 < numberOfContours = 10 diff fipy/viewers/matplotlibViewer/matplotlibViewer.py /usr/lib/python2.4/site-packages/fipy/viewers/matplotlibViewer/matplotlibViewer.py 86c86 < def plot(self, filename = None): --- > def plot(self, filename = None, numberOfContours = 10): 99c99 < self._plot() --- > self._plot(numberOfContours=numberOfContours) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=681143&aid=1495059&group_id=118428
