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?
PlotRange -> {Automatic, {0, Automatic}}
$\endgroup$Full
is replaced withAutomatic
(I'm running 9.0.1.0 if that matters). Besides, I really want the behavior ofFull
and notAutomatic
. $\endgroup$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. $\endgroup$