New answers tagged export
0
Try this, one I compiled for my thesis writing:
Export2PDF[PlotName_] :=
Module[{A = 600},
Export[SystemDialogInput["FileSave",
StringJoin[{ToString[FileName], ".pdf"}]], PlotName,
"AllowRasterization" -> True, ImageSize -> 360,
ImageResolution -> A]]
Plot example:
Plot1 = Plot3D[
Sin[x] Sin[y], {x, -\[Pi], \[Pi]}, {y, -2 \[Pi], 2 \[Pi]}]
...
3
This is definitely a problem in Xorg or multiple drivers. The behavior you describe, i.e. logging out, appears on machine with Intel graphics. If you try this on nVidia machine with nvidia driver, you'll have a hang.
Now, you may be lucky to have something in /var/log/Xorg.0.log*. Here's what I have near the end of /var/log/Xorg.0.log.old.
The workaround is ...
0
A very simple workaround is to save your image as JPG or PNG. It is important to choose a good ImageResolution as Export Option.
This sounds like dirty workaround but If you have very many points in you vector-based pdf-file you will end up with a very large file. Then a rasterized image is better. In your document (especially in print), no difference can ...
1
Extended comment
I ran this code several times, with different values for n, and using Map or Do as well as ParallelMap. Each time a plot was created and exported, Mathematica's memory in use increased by about 1.7MB. We can call this a 'leak', but it seems to be by design.
So, with n as 1000, and allowing for some memory for the front end and the kernel ...
0
Mathematica does not put information about width and height into <svg> tag, but the first group contains a filled rectangle (<rect fill ...>) that does have width and height.
You may extract width and height attributes from that <rect> and assign them to the root <svg> element.
1
Actually, *.avi or *. SWF can be read by Adobe Acrobat Pro.
You can try as Michael E2 did:
movie = Animate[Plot[Sin[x + a], {x, 0, 10}], {a, 0, 5}];
Export["C:\\movie.avi", movie]
Use Adobe Acrobat Pro to open the file exported, i.e., C:\movie.avi.
Double click on the figure will animate it.
6
You can export animations to SWF:
movie = Animate[Plot[Sin[x + a], {x, 0, 10}], {a, 0, 5}];
Export["movie.swf", movie]
You can import them in LaTeX (see TeX SE):
\documentclass{article}
\usepackage{media9}
\begin{document}
\includemedia[
activate=pageopen,
width=405pt,height=292pt,
]{}{movie.swf}
\end{document}
(I had to insert ...
0
Select the figure, and use your AdobePDF to print it. The quality remains while the size is significantly reduced.
1
If you are working in version 9, there is a function called ImageFileFilter which applies any function f to all the pixels of an image, without reading the whole image into memory. So if your data happened to be an image your problem would be solved. But of course an image is just an array of numbers, so another strategy you could consider would be to ...
Top 50 recent answers are included

