I'm having some problems with the xticks of the graph here:
Can anyone help?
I tried what they did here: Date ticks and rotation in matplotlib but to no avail.
import numpy as np
from mpl_toolkits.axes_grid1 import host_subplot
import mpl_toolkits.axisartist as AA
import matplotlib.pyplot as plt
import datetime as DT
import matplotlib.dates as mdates
import matplotlib.ticker as ticker
#import data
i, time, temp, hum, light_lv, light_v = np.loadtxt('DHT11.csv', delimiter = ',', skiprows = 1,
usecols = (0,2,3,4,5,6), unpack = 1)
#id, unixtime, temp, humidity, lightlevel, lightvolt
time = [DT.datetime.fromtimestamp(t) for t in time]
light_lv = 250 - light_lv
xfmt = mdates