Python - Pyplot x-axis not showing on graph
pyplot is not showing the x-axis on the graph: import pandas as pd import matplotlib.pyplot as plt df = pd.read_csv('sitka_weather_2014.csv') df['AKST'] = pd.to_datetime(df.AKST) df['Dates'] = df['AKST'].dt.strftime('%b %d, %Y') df.set_index("Dates", inplace= True) # Plot Data fig = plt.figure(dpi=256, figsize=(14, 7)) plt.title("Daily high and low temperature - 2014") df['Max TemperatureF'].plot(linewidth=1, c='blue', label="Max Temperature °F") df['Min TemperatureF'].plot(linewidth=1, c='red', label="Min Temperature °F") plt.grid(True) plt.rc('grid', linestyle=":", linewidth=1, color='gray')
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.