|
169 | 169 | ax.barh(group_names, group_data) |
170 | 170 | labels = ax.get_xticklabels() |
171 | 171 | plt.setp(labels, rotation=45, horizontalalignment='right') |
172 | | -ax.set(xlim=[-10000, 140000], xlabel='Total Revenue', ylabel='Company', |
| 172 | +ax.set(xlim=(-10000, 140000), xlabel='Total Revenue', ylabel='Company', |
173 | 173 | title='Company Revenue') |
174 | 174 |
|
175 | 175 | # %% |
|
187 | 187 | ax.barh(group_names, group_data) |
188 | 188 | labels = ax.get_xticklabels() |
189 | 189 | plt.setp(labels, rotation=45, horizontalalignment='right') |
190 | | -ax.set(xlim=[-10000, 140000], xlabel='Total Revenue', ylabel='Company', |
| 190 | +ax.set(xlim=(-10000, 140000), xlabel='Total Revenue', ylabel='Company', |
191 | 191 | title='Company Revenue') |
192 | 192 |
|
193 | 193 | # %% |
@@ -220,7 +220,7 @@ def currency(x, pos): |
220 | 220 | labels = ax.get_xticklabels() |
221 | 221 | plt.setp(labels, rotation=45, horizontalalignment='right') |
222 | 222 |
|
223 | | -ax.set(xlim=[-10000, 140000], xlabel='Total Revenue', ylabel='Company', |
| 223 | +ax.set(xlim=(-10000, 140000), xlabel='Total Revenue', ylabel='Company', |
224 | 224 | title='Company Revenue') |
225 | 225 | ax.xaxis.set_major_formatter(currency) |
226 | 226 |
|
@@ -248,7 +248,7 @@ def currency(x, pos): |
248 | 248 | # Now we move our title up since it's getting a little cramped |
249 | 249 | ax.title.set(y=1.05) |
250 | 250 |
|
251 | | -ax.set(xlim=[-10000, 140000], xlabel='Total Revenue', ylabel='Company', |
| 251 | +ax.set(xlim=(-10000, 140000), xlabel='Total Revenue', ylabel='Company', |
252 | 252 | title='Company Revenue') |
253 | 253 | ax.xaxis.set_major_formatter(currency) |
254 | 254 | ax.set_xticks([0, 25e3, 50e3, 75e3, 100e3, 125e3]) |
|
0 commit comments