1
$\begingroup$

I have imported data (which are so many numbers and if necessary please see http://pastebin.com/RgWLJmTS) and I plotted them with

ListLogPlot[{data},
   Frame -> True,
   Joined -> True}

I have this fig enter image description here

But when I use

ListLogPlot[{data},
   Frame -> True,
   Joined -> False}

I have enter image description here

There is a problem with Joined which caused a cut in plot. How can I have joined data in ListLogPlot without any being cut.

$\endgroup$
2
$\begingroup$

I cannot reproduce your problem with only ListLogPlot but addition of PlotRange -> All option should solve it:

ListLogPlot[data, Frame -> True, Joined -> True, PlotRange -> All]

plot

I can reproduce your problem only using Show:

Show[ListLogPlot[data, Frame -> True, Joined -> True], PlotRange -> {Automatic, 10^-3}]

plot

This behavior is not a bug: it is documented (under the "Details" section) behavior of the default PlotRange -> Automatic option:

screenshot

Options[ListLogPlot, PlotRange]
{PlotRange -> Automatic}
| improve this answer | |
$\endgroup$
  • $\begingroup$ I don't see in the docs where points may be dropped even though they fall within the auto generated plot range. $\endgroup$ – george2079 Dec 24 '15 at 15:55
  • $\begingroup$ @george2079 I have added screenshot of the web page with the Documentation statement encircled. $\endgroup$ – Alexey Popkov Dec 24 '15 at 16:02
  • $\begingroup$ @george2079 The points are not dropped if they fall withing the auto generated plot range (I mean PlotRange -> Automatic). $\endgroup$ – Alexey Popkov Dec 24 '15 at 16:03
  • $\begingroup$ I see..the issue is that ListPlot has discarded points beyond its auto range and then after the fact you set a larger range in Show. I guess I'm confused because @Bstates didn't indicate using Show, but most likely he did and just didn't include all the code. $\endgroup$ – george2079 Dec 24 '15 at 16:17
  • $\begingroup$ I also was confused by the code given by @Bstates and suspected that there is unknown bug with his particular dataset. But actually there is no bug and the code in the original question is misleading. Should we edit the question to correct the code? I'm not quite sure how we should handle such situations... $\endgroup$ – Alexey Popkov Dec 24 '15 at 16:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.