Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Saving notebooks without graphics

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27022] Re: [mg26977] Saving notebooks without graphics
  • From: Andrew Watson <abwatson at mail.arc.nasa.gov>
  • Date: Tue, 30 Jan 2001 23:22:38 -0500 (EST)
  • References: <200101300838.DAA29973@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

At 3:38 AM -0500 1/30/01, David Chapman wrote:
>I'm generating lots of plots in a notebook that I'm working on on two
>different computers.  The notebook is very big because of the graphics,
>so to fit the notebook on a floppy disk when I take it from one computer
>to the other I delete output cells containin the graphics.  Is there any
>way I can automatically delete all the graphics (or all the output
>cells), to save having to go through each one individually (or,
>equivalently, save the notebook without the graphics/output cells)?
>
>Thanks for any ideas,
>David

David,

Based on some code provided earlier by Wolfram, the attached notebook 
creates a palette with two buttons: "Delete (all) Graphics" and 
"Delete (selected graphic) and Find Next Graphic".
Enjoy.

Andrew

(***********************************************************************

                     Mathematica-Compatible Notebook

This notebook can be used on any computer system with Mathematica 3.0,
MathReader 3.0, or any compatible application. The data for the notebook
starts with the line of stars above.

To get the notebook into a Mathematica-compatible application, do one of
the following:

* Save the data starting with the line of stars above into a file
   with a name ending in .nb, then open the file inside the application;

* Copy the data starting with the line of stars above to the
   clipboard, then use the Paste menu command inside the application.

Data for notebooks contains only printable 7-bit ASCII and can be
sent directly in email or through ftp in text mode.  Newlines can be
CR, LF or CRLF (Unix, Macintosh or MS-DOS style).

NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing the
word CacheID, otherwise Mathematica-compatible applications may try to
use invalid cache data.

For more information on notebooks and Mathematica-compatible
applications, contact Wolfram Research:
   web: http://www.wolfram.com
   email: info at wolfram.com
   phone: +1-217-398-0700 (U.S.)

Notebook reader applications are available free of charge from
Wolfram Research.
***********************************************************************)

(*CacheID: 232*)


(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[      3387,        102]*)
(*NotebookOutlinePosition[      4653,        145]*)
(*  CellTagsIndexPosition[      4609,        141]*)
(*WindowFrame->Palette*)



Notebook[{
Cell[BoxData[
     ButtonBox[\(Delete\ Graphics\),
       ButtonFunction:>CompoundExpression[
           NotebookFind[
             SelectedNotebook[ ], "Graphics", All, CellStyle],
           NotebookDelete[
             SelectedNotebook[ ]]],
       ButtonStyle->None]], NotebookDefault,
   CellMargins->{{Inherited, Inherited}, {5, Inherited}},
   Evaluatable->True,
   CellGroupingRules->"InputGrouping",
   PageBreakAbove->True,
   PageBreakWithin->False,
   GroupPageBreakWithin->False,
   CellLabelMargins->{{11, Inherited}, {Inherited, Inherited}},
   DefaultFormatType->DefaultInputFormatType,
   LineSpacing->{1.25, 0},
   AutoItalicWords->{},
   ScriptMinSize->9,
   ShowStringCharacters->True,
   NumberMarks->True,
   CounterIncrements->"Input",
   StyleMenuListing->None,
   FontFamily->"Courier",
   FontWeight->"Bold"],

Cell[BoxData[
     ButtonBox[\(Delete\ and\ Find\ Next\ Graphic\),
       ButtonFunction:>CompoundExpression[
           NotebookDelete[
             SelectedNotebook[ ]],
           NotebookFind[
             SelectedNotebook[ ], "Graphics", Next, CellStyle]],
       ButtonStyle->None]], NotebookDefault,
   CellMargins->{{Inherited, Inherited}, {5, Inherited}},
   Evaluatable->True,
   CellGroupingRules->"InputGrouping",
   PageBreakAbove->True,
   PageBreakWithin->False,
   GroupPageBreakWithin->False,
   CellLabelMargins->{{11, Inherited}, {Inherited, Inherited}},
   DefaultFormatType->DefaultInputFormatType,
   LineSpacing->{1.25, 0},
   AutoItalicWords->{},
   FormatType->InputForm,
   ScriptMinSize->9,
   ShowStringCharacters->True,
   NumberMarks->True,
   CounterIncrements->"Input",
   StyleMenuListing->None,
   FontFamily->"Courier",
   FontWeight->"Bold"]
},
FrontEndVersion->"Macintosh 3.0",
ScreenRectangle->{{0, 1280}, {0, 1004}},
Editable->False,
WindowToolbars->{},
PageWidth->422,
WindowSize->{Fit, Fit},
WindowMargins->{{Automatic, 249}, {Automatic, 339}},
WindowFrame->"Palette",
WindowElements->"VerticalScrollBar",
WindowFrameElements->"CloseBox",
WindowClickSelect->False,
ScrollingOptions->{"PagewiseScrolling"->True},
ShowCellBracket->False,
CellMargins->{{0, 0}, {Inherited, 0}},
Active->True,
CellOpen->True,
ShowCellLabel->False,
ShowCellTags->False,
ImageMargins->{{0, Inherited}, {Inherited, 0}},
Magnification->1,
MacintoshSystemPageSetup->"\<\
00<0001804P000000]P2:?oQon82n@960dL5:0?l0080001804P000000]P2:001
0000I00000400`<300000BL?00400@0000000000000006P801T1T00000000000
00000000000000000000000000000000\>"
]


(***********************************************************************
Cached data follows.  If you edit this Notebook file directly, not using
Mathematica, you must remove the line containing CacheID at the top of
the file.  The cache data will then be recreated when you save this file
from within Mathematica.
***********************************************************************)

(*CellTagsOutline
CellTagsIndex->{}
*)

(*CellTagsIndex
CellTagsIndex->{}
*)

(*NotebookFileOutline
Notebook[{
Cell[1710, 49, 814, 24, 24, NotebookDefault,
   Evaluatable->True,
   CellGroupingRules->"InputGrouping",
   PageBreakAbove->True,
   PageBreakWithin->False,
   CounterIncrements->"Input"],
Cell[2527, 75, 856, 25, 24, NotebookDefault,
   Evaluatable->True,
   CellGroupingRules->"InputGrouping",
   PageBreakAbove->True,
   PageBreakWithin->False,
   CounterIncrements->"Input"]
}
]
*)




(***********************************************************************
End of Mathematica Notebook file.
***********************************************************************)


  • Prev by Date: RE: RE: 1. Input of screen coordinates; 2. Fast graphics
  • Next by Date: Re: Queries: notebook, matrices
  • Previous by thread: Saving notebooks without graphics
  • Next by thread: Re: Saving notebooks without graphics