Hot answers tagged

4

Add Bookmarks: anim = Animate[Plot[Sin[x + a], {x, 0, 10}], {a, 0, 5}, Bookmarks -> {"start" :> {a = 0}, "stop" :> {a = 5}}]; Export["animation.gif", anim]


3

The allowed options for Export to mp4 are But your command is Export["anim.mp4", anim, "FrameRate" -> 60, ImageResolution -> 800, Antialiasing -> True] Therefore 2 of the options you used do not apply to mp4. These are ImageResolution and Antialiasing. That is why you get the errors. If you remove these options then it works. V 12.1 on ...


3

This is what I do for all my school HW's. At start of each notebook, I have SetDirectory[NotebookDirectory[]]; ...above makes default directory the same as the one where the notebook is [CELL] image is generated in this cell using Mathematica Plot command ... in the next cell, type [CELL] Export["../my_images_folder/image1234.pdf", ...


3

Update Control the number of digits format[number_, digits_ : 4] := StringReplace[ TextString[ EngineeringForm[number, digits, ExponentFunction -> (If[-10 < # < 10, Null, #] &)]], {".*10^" -> "E", "*10^" -> "E"}] Table[format[w[x]], {x, 0, 1, .2}] (* {"0.", "0.0008398", &...


2

Export will work correctly when you use a different audio encoder: Export["file.mp4", {"Animation" -> m, "Audio" -> a}, "Rules", AudioEncoding -> "AAC-HE-AVF"] We will try to fix this issue in the next release, but I strongly encourage everyone to install a full version of FFmpeg: https://reference....


1

I cannot try your code in version 10.1 but I suspect this is similar: table = {{0.1, Row[{"first", "row"}, " "]}, {0.2, Row[{"second", "row"}, " "]}, {0.3, Row[{"third", "row"}, " "]}}; ExportString[table, "CSV"] 0.1,Row[{"first", "row&...


1

Okay, this appears to be a version and os-specific issue. So in my desperate attempts I recalled the old $\LaTeX$ rule to make a box around everything. What comes closest to a box is an invisible frame. And indeed Framed allows for an ImageSize option, leading to this workaround: plot = Labeled[ Graphics[{}, ImageSize -> size, Background -> ...


1

It may be that the file DOES have an EOF character, but it gets consumed due to another data error. Check that you don't have any unclosed strings. For example, the missing quote after Mary: "John","Bob","Mary,"Phillip" Or an unescaped quote, like in the third cell here: "period is .","parenthesis is )",...


Only top voted, non community-wiki answers of a minimum length are eligible