Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count_mtn_list
- list: [(1522500.0,), (2097150.0,), (2124600.0,), (1189050.0,), (810300.0,), (1516050.0,)]
- count_utl_list
- list: [(5997L,), (6044L,), (8911L,), (5988L,), (5898L,), (6081L,)]
- count_warid_list
- list: [(185L,), (236L,), (244L,), (205L,), (224L,), (206L,)]
- import matplotlib.pyplot as plot
- #mtn
- count_mtn_list = getCount('mtn')#returns a list of mtn numbers
- #utl
- count_utl_list = getCount('utl')
- #warid
- count_warid_list = getCount('warid')
- #x values
- dates_list = getDatesList('')#it doesn't matter which network here
- x = range(len(dates_list))
- fig = plot.figure()
- ax1 = fig.add_subplot(211)
- ax1.plot(x, count_mtn_list, color='red')
- ax2 = fig.add_subplot(212)
- ax2.plot(x, count_utl_list, color='blue')
- ax3 = fig.add_subplot(213)
- ax3.plot(x, count_warid_list, color='green')
- filename = "/home/oquidave/work/scripts/mt_revenue.png"
- plot.savefig(filename)
- plot.show()
- TRACEBACK
- Traceback (most recent call last):
- File "/home/oquidave/progs/eclipse/plugins/org.python.pydev.debug_1.5.7.2010050621/pysrc/pydevd.py", line 978, in <module>
- debugger.run(setup['file'], None, None)
- File "/home/oquidave/progs/eclipse/plugins/org.python.pydev.debug_1.5.7.2010050621/pysrc/pydevd.py", line 780, in run
- execfile(file, globals, locals) #execute the script
- File "/home/oquidave/workspace/python/ssh/mt_mtn.py", line 165, in <module>
- ax3 = fig.add_subplot(213)
- File "/usr/lib/python2.7/site-packages/matplotlib/figure.py", line 687, in add_subplot
- a = subplot_class_factory(projection_class)(self, *args, **kwargs)
- File "/usr/lib/python2.7/site-packages/matplotlib/axes.py", line 8377, in __init__
- self.update_params()
- File "/usr/lib/python2.7/site-packages/matplotlib/axes.py", line 8409, in update_params
- return_all=True)
- File "/usr/lib/python2.7/site-packages/matplotlib/gridspec.py", line 370, in get_position
- figBottom = figBottoms[rowNum]
- IndexError: list index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement