Commit 85eeb72a authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Restore the grid on the plots.

parent 0cd732cb
......@@ -45,7 +45,7 @@ def do_empty(db, selector, target=None):
dates = to_datetime(["%i-01-01" % year, "%i-12-31" % year])
df = DataFrame([0]*2, index=dates)
ax = df.plot(legend=False, x_compat=True, ax=target)
ax = df.plot(legend=False, grid=True, x_compat=True, ax=target)
do_tick(ax)
return ax
......@@ -168,7 +168,7 @@ def do_linechart(publications, selector, target=None):
# instantiate the plot
# x_compat is required to have a nice x axis labelling in all cases
# target = axn when the target is specified
kwargs = dict(ax=target, legend=False, x_compat=True)
kwargs = dict(ax=target, grid=True, legend=False, x_compat=True)
# NOTE
# 151103 pandas 0.15.2 / matplotlib 1.3.1
......@@ -313,6 +313,7 @@ def do_stackedchart(publications, selector, graph, target=None):
kwargs = dict(kind='bar', width=1., linewidth=0)
ax = df.plot(colormap="Pastel1",
grid=True,
stacked=True,
ylim=(0, None),
ax=target,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment