Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4479
| From | "Rolf.Mertig@gmail.com" <rolf.mertig@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Compression of Plot[] to reduce notebook size |
| Date | 2011-08-19 10:41 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j2leki$nhv$1@smc.vnet.net> (permalink) |
| References | <j2cv27$hes$1@smc.vnet.net> |
Maybe using PerforranceGoal->"Speed" can help? :
In[1]:= p1 =
Plot3D[Sin[x y], {x, 0, 2 \[Pi]}, {y, 0, 2 \[Pi]},
PlotPoints -> 300, Mesh -> None];
ByteCount[p1]
Out[1]= 10162400
In[2]:= p2 =
Plot3D[Sin[x y], {x, 0, 2 \[Pi]}, {y, 0, 2 \[Pi]},
PlotPoints -> 300, PerformanceGoal -> "Speed"];
ByteCount[p2]
Out[2]= 5752640
In[3]:= ExportString[p1, "NB"] // ByteCount
Out[3]= 8447552
In[4]:= ExportString[p2, "NB"] // ByteCount
Out[4]= 4589408
In[5]:= Shallow[InputForm[p1],5
]
Out[5]//Shallow= Graphics3D[GraphicsComplex[{<<141259>>}, {<<2>>},
Rule[<<2>>]], {Rule[<<2>>], Rule[<<2>>], Rule[<<2>>], Rule[<<2>>],
Rule[<<2>>]}]
In[6]:= Shallow[InputForm[p2],5
]
Out[6]//Shallow= Graphics3D[GraphicsComplex[{<<90000>>}, {<<1>>},
Rule[<<2>>]], {Rule[<<2>>], Rule[<<2>>], Rule[<<2>>], Rule[<<2>>],
Rule[<<2>>]}]
(* ********************* *)
Rolf Mertig
GluonVision GmbH, Berlin, Germany
http://www.gluonvision.com
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Compression of Plot[] to reduce notebook size "McHale, Paul" <Paul.McHale@excelitas.com> - 2011-08-16 05:26 +0000 Re: Compression of Plot[] to reduce notebook size "Rolf.Mertig@gmail.com" <rolf.mertig@gmail.com> - 2011-08-19 10:41 +0000
csiph-web