# Suppress negative y-axis in ListLinePlot even if all values are zero?

I have some lists that will always contain non-negative values, sometimes all zeros. Whatever non-negative values appear in the list, I would like the plots to appear without a negative y-axis. I'll use constant arrays instead of real data for the purpose of this message:

ListLinePlot[ConstantArray[0, 640], PlotRange -> {Full, {0, Full}}]


ListLinePlot[ConstantArray[1, 640], PlotRange -> {Full, {0, Full}}]


Ignore the aspect ratios... Doesn't the {0, Full} portion of PlotRange -> {Full, {0, Full}}] specify that I don't want to see anything under y == 0? If so, why does the first plot (zeros) produce a negative y-axis and is there any way to suppress it?

• Works with PlotRange -> {Automatic, {0, Automatic}} – Öskå May 6 '14 at 21:42
• I get the same result when Full is replaced with Automatic (I'm running 9.0.1.0 if that matters). Besides, I really want the behavior of Full and not Automatic. – Bezewy May 6 '14 at 21:53
• @Bezewy: Probably one of those corner cases where MM's "try and make it pretty" heuristics fail, and you'll need to force it with something like PlotRange->{Full,{0,Max@data}}. FWIW, I see same behavior as you, 9.0.1 on windows, including same using Oska's suggestion. Might be a regression if Oska's on an earlier version, perhaps worth ping to WRI support. – ciao May 6 '14 at 21:56
• @Bezewy:Yep, just noticed that. So you'd need to provide some "minimum maximum" so to speak, like PlotRange -> {Full, {0, Max[1, Max@data]}} – ciao May 6 '14 at 22:12
• @Öskå: Interesting. I'll try to pass this along to WRI Support, as suggested by Rasher. – Bezewy May 6 '14 at 23:34

ListLinePlot[data, PlotRange -> {Full, {0, Max[1, Max@data]}}]
`