2
$\begingroup$

This question already has an answer here:

I'm trying to get the PlotRange from a ListPlot graphic:

aa = RandomReal[14, {50}] - 40;
bb = RandomReal[140, {50}] - 40;
plt = ListPlot[Transpose[{aa, bb}], Frame -> True, Axes -> False,PlotRange -> Automatic]

Result

AbsoluteOptions[plt, PlotRange]
{PlotRange -> {{0., 1.}, {0., 1.}}}

This is clearly wrong, Why?

This happens using version 8.0.0, 64bit under Linux (Fedora).

$\endgroup$

marked as duplicate by István Zachar, Dr. belisarius, Michael E2, rm -rf Oct 1 '13 at 16:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    $\begingroup$ It works for me, can you try with a fresh kernel ? $\endgroup$ – b.gates.you.know.what Oct 1 '13 at 13:10
  • $\begingroup$ Can't say why it does this, but if you put PlotRange -> Automatic, it will return the correct plot range. Oh, and with respect to b.g's comment, I have reproduced the issue on Mathematica 9, fresh kernel and all. $\endgroup$ – jVincent Oct 1 '13 at 13:10
  • $\begingroup$ @b.gatessucks, a fresh kernel did not change it $\endgroup$ – Andre Oct 1 '13 at 13:14
  • $\begingroup$ @jVincent, thanks, but adding PlotRange->Automatic didn't work $\endgroup$ – Andre Oct 1 '13 at 13:15
  • $\begingroup$ Interesting, what version are you working on? $\endgroup$ – jVincent Oct 1 '13 at 13:15

Browse other questions tagged or ask your own question.