I suddenly cannot save a ListLinePlot (with a legend) as a PDF without it also saving the indicator "Out[.] =" also there. This is really strange since I've been saving them all along (by highlighting the cell and using "save selection as" without it showing, then suddenly out of nowhere, this "Out[.]=" started appearing? I never even closed the notebook. Could it maybe have something to do with having done a Clear["Global`*"]?

  • $\begingroup$ Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour and check the faqs! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! $\endgroup$ – Dunlop Aug 23 '19 at 5:27
  • $\begingroup$ Perhaps try restarting with a new kernel? Please also add a minimal working example to your question so that others can test to see if they can help you solve the problem. $\endgroup$ – Dunlop Aug 23 '19 at 5:29
  • $\begingroup$ You can delete the Out manually. $\endgroup$ – Ulrich Neumann Aug 23 '19 at 6:27
  • $\begingroup$ right click ON the graph and then save. Or use Export. $\endgroup$ – CasperYC Aug 23 '19 at 13:51
  • $\begingroup$ @UlrichNeumann , deleting manually worked perfectly the first time, when Out was showing. Now Out doesn't show on any of them, but shows in the PDF again? $\endgroup$ – Moose Aug 23 '19 at 17:36

Simply right-click the plot and choose Save Graphics As... Do not select its cell bracket and use Save Selection As...! Just right click the plot itself without selecting anything.

If the plot has a legend, select both the plot and the legend with the mouse, as if they were text. Make sure that the cell bracket is not selected. Now right-click and use Save Selection As...

As an alternative to both, use Export instead of the GUI method.

| improve this answer | |
  • $\begingroup$ I forgot to mention that there is also a legend that I would like to save with it. $\endgroup$ – Moose Aug 23 '19 at 17:12
  • $\begingroup$ @Moose Then select the plot and the legend, as if you were selecting text with the mouse. Make sure you are not selecting the cell bracket. $\endgroup$ – Szabolcs Aug 23 '19 at 17:29
  • 1
    $\begingroup$ that worked. Thanks so much. $\endgroup$ – Moose Aug 23 '19 at 17:39

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