<jupyter_start><jupyter_text>For side-by-side comparison<jupyter_code>plt.xticks(xpos,company)           # xticks will replace xpos's integer with company name
plt.ylabel('Revenue(Nill $)')
plt.title('Top Indian Companies by Revenue Forbes')

plt.bar(xpos-0.2,revenue, width=0.4, label='Revenue')
plt.bar(xpos+0.2,profit, width=0.4, label='Profie')
plt.legend()

# to save

plt.savefig('Output/bar_output.png', dpi=200)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.155902004454343, 'fraction_numerical': 0.024498886414253896, 'mean_word_length': 6.377049180327869, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '439301', 'license': 'MIT', 'n_tokens_mistral': 191, 'n_tokens_neox': 173, 'n_words': 29, 'path': 'Matplotlib/Bar Chart.ipynb', 'repo_name': 'rahulhgdev/Data-Science', 'size': '449'}