### Communities

tag:snake search within a tag
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
created:<1w created < 1 week ago
post_type:xxxx type of post
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

# Post History

71%
+3 −0

One possibility with axvline: import pandas as pd import numpy as np import matplotlib.pyplot as plt df = pd.DataFrame(np.random.rand(9, 4), columns=['a', 'b', 'c', 'd']) df.plot.bar() plt....

posted 1y ago by samcarter‭  ·  edited 1y ago by samcarter‭

#2: Post edited by samcarter‭ · 2022-07-23T18:11:43Z (over 1 year ago)
• ```
• import pandas as pd
• import numpy as np
• import matplotlib.pyplot as plt
• df = pd.DataFrame(np.random.rand(9, 4), columns=['a', 'b', 'c', 'd'])
• df.plot.bar()
• plt.axvline(x=2.5, ymin=0, ymax=1)
• plt.axvline(x=5.5, ymin=0, ymax=1)
• plt.show()
• ```
• One possibility with `axvline`:
• ```
• import pandas as pd
• import numpy as np
• import matplotlib.pyplot as plt
• df = pd.DataFrame(np.random.rand(9, 4), columns=['a', 'b', 'c', 'd'])
• df.plot.bar()
• plt.axvline(x=2.5, ymin=0, ymax=1)
• plt.axvline(x=5.5, ymin=0, ymax=1)
• plt.show()
• ```
#1: Initial revision by samcarter‭ · 2022-07-23T18:11:05Z (over 1 year ago)
``````
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

df = pd.DataFrame(np.random.rand(9, 4), columns=['a', 'b', 'c', 'd'])
df.plot.bar()
plt.axvline(x=2.5, ymin=0, ymax=1)
plt.axvline(x=5.5, ymin=0, ymax=1)
plt.show()
```