Questions on converting data, graphics, sound etc. from Mathematica into other file formats.

learn more… | top users | synonyms

-1
votes
0answers
25 views

read and process hundreds of files txt

This short code is the one that broke my head for a while, are 11 variables that must meet a very specific condition, their difference must be 1. either can take the 11 values, hence all permutations, ...
0
votes
1answer
40 views

Unexpected results from output with NumberForm and ScientificForm

I wrote this little function to help me export tables with formatted numbers to files: (By the way, if you have suggestions on how to make it more efficient and compact, it would be great) ...
6
votes
1answer
121 views

Is Mathematica's (v10.0.2) NetCDF exporter broken?

I'm trying something very simple, namely: Export["file.nc", {"Datasets" -> {"seqs" -> {"AAA", "BBB"}}}, "Rules"] And getting Java errors about "illegal ...
1
vote
1answer
28 views

Save figure using default stylesheet?

I'm using the following to export a figure as .eps for use in latex: ...
8
votes
2answers
134 views

Inconsistent behavior of undocumented Encode->Import->StringToStream->Get on password-locked stream

Let's save a definition. Encode it with password/key and Get it again. We will not use Get ...
0
votes
1answer
163 views

How to export figures with normal spacing in texts?

My OS is Ubuntu 14.04, and I use MMA 10. I export a figure ploted in MMA to a pdf file and then import the pdf in Latex, here is the sreenshot As you can see, the spacing in the text is odd. But ...
1
vote
1answer
74 views

Can Save[] produce a .nb file instead of a text file?

(I use Mathematica 9.0.1 on OS X 10.10.2.) Suppose I have a notebook in which I make some definitions and assignments. ...
5
votes
1answer
88 views

Conversion to TeX results in infinite recursion

I'm trying to export to $\TeX$ a Message cell. For example, after evaluating Sin[a,b], ...
1
vote
1answer
81 views

How do I smooth or remove jitter from an exported Graphics3D plot?

I have exported a Graphics3D plot as gif. But the plot shows jitter (You can see the yellow ball shows somewhat slight move around, which is expected to be still). How does this happen and how to get ...
9
votes
1answer
262 views

Is there a way to convert mathematica code to OpenMP or OpenACC?

I see that Mathematica has limited support for things like OpenCL and CUDA, but what about other standards like OpenMP or OpenACC?
0
votes
1answer
34 views

Writing a text to a file including af mixture of signs

I'm trying to write this to a file: j/?xml version="1.0" encoding="UTF-8"?> However, when using WriteString, the "-marks are not accepted. If I use Write, however, the "-marks are accepted, but ...
1
vote
1answer
80 views

AutoGeneratedPackage Formatting

If you do Ctrl+Shift+o you open an option inspector. And then you can enable ...
2
votes
1answer
64 views

Export collection of plots to A4 pdf

Sometimes I want to Export a collection of plots or other Graphics to a pdf in A4 format. Right now I'm using a GraphicsGrid inside a panel which is an inset in a Graphics object. Here is an example: ...
0
votes
0answers
55 views

Issue with creating gif [closed]

I want to export a gif generated by following code. ...
0
votes
1answer
68 views

Copy/export a plot as vector EMF

I want to generate a plot using Plot, copy it and paste to a Word/PowerPoint document as a vector EMF file in order to preserve best quality of an image. However I found out that if I Copy Graphic ...
1
vote
1answer
80 views

Exporting A4 size

I have a few tables and graphs that I want to export to a PDF file using Export[....,"PDF"], but I would like to be able to print this PDF-file and still be able to read it. So how can I control the ...
4
votes
1answer
37 views

Video encodings in Ubuntu

When exporting videos from Mathematica 10.0.2 on Ubuntu 12.04, I have one video codec to choose from: Internal`$VideoEncodings (* {"Uncompressed"} *) That means ...
0
votes
2answers
75 views

Exporting a table to Excel in CSV format

I am trying to create a table which when exported in a .csv format and opened in MS.Excel has the following form; ...
0
votes
1answer
45 views

Making a simple text log file

I have a model and want to export the run parameters to a log file. The idea is to get the following example into a decent text export: ...
1
vote
1answer
71 views

Exporting File Outside Home Directory

When running Mathematica (v10) on my Raspberry Pi, I'd like to output an image file to a directory other than /home/pi. I understand that letting Mathematica write ...
-1
votes
1answer
39 views

ListLinePlot plots my table, but the table doesn't contain numerical values

I am trying to export a table of data to file, but the code does not appear to be returning numerical data even though ListLinePlot can plot it. Can you please ...
5
votes
1answer
73 views

Exporting pdf with a precise page dimension in metric units, rather than printer points

Mathematica uses a screen resolution of 72 dpi. For post-processing figures I use Corel, which conveniently allows me to use metric units (mm) for positioning and resizing figures. Say, I want to ...
2
votes
1answer
87 views

Export generated mesh

Say I have generated a mesh using ToElementMesh, following one of the examples here: http://reference.wolfram.com/language/FEMDocumentation/ref/ToElementMesh.html ...
68
votes
6answers
12k views

$\LaTeX$ and Mathematica

I quite often would like to draw graphics in my $\LaTeX$ documents using Mathematica. I have encountered three problems. I would like to know if there are any workarounds to these problems I would ...
10
votes
1answer
133 views
6
votes
2answers
111 views

How to export Speak output?

I made a series of interval workouts based on Speak[], where the voice tells me when the intervals start, when they stop and how much time I have left to prepare. ...
0
votes
1answer
69 views

Animating a Large Graphic Aborts, but Dynamic Works Fine

I'm trying to animate a large Graphics output, and it is returning $Aborted. I'm confused because when I use Dynamic and Slider, the graphics output is exactly what I want, i.e., I can 'animate' the ...
1
vote
1answer
55 views

Export and Import a list of graphs?

I want to export a list of graphs that come as output to my program. However, I tried exporting all the graphs as graphs using Map and an Export statement with "graph.gml" statement, but got an error. ...
2
votes
0answers
47 views

Export to JSON format specifically for MongoDB

It is a nice thing that, if you have a data as a list of rules (even nested), Mathematica can export them in JSON format. After generating useful data in Mathematica, Therefore, it seems it ought to ...
5
votes
1answer
123 views

Does PrivateFontOptions -> {“OperatorSubstitution” ->False} fail in version 10?

Please consider the following, version 10.0.1, OS X Mavericks: ...
1
vote
1answer
32 views

Export nested list with complex structure

I have a list that looks like this l = {elem1, elem2, ...} Where elem_={t, {d1,d2,d3} } How can I export it? I tried ...
0
votes
1answer
42 views

Huge eps file in Export with ListPlot and Filling

I'm trying to export and eps file from a plot which contains a ListPlot with Filling ...
-1
votes
1answer
48 views

Exporting Data file in .dat format [duplicate]

Here I'm solving two simultaneous to get different values of the roots depending upon another variable 'x'. I've written up to the following using 'Find Root' ...
29
votes
4answers
2k views

Saner alternative to ContourPlot fill

I am producing a large number of ContourPlot objects, which when exported generate notoriously large PDF files because it basically generates lots of little ...
23
votes
1answer
3k views

Autorotating 3D plots

These days, I have to produce quite a few 3D surface plots (mostly functions of the type $\rho(\theta,\phi)$ plotted with SphericalPlot3D). To exchange these ...
0
votes
0answers
36 views

“Enlarge” a plot for export

I wish to export a plot with more resolution than it starts with. Interactively, I can do this by enlarging the image, and then exporting. Is there a way to do this programmatically? I attempted to ...
6
votes
1answer
170 views

Prevent Export from overwriting files

Export["filepath1",Expression1] works for me, but if filepath1 already exists, it will be overwritten. I'd like ...
2
votes
2answers
65 views

Math diacritics go missing when exporting graphics

Take this example plot: plot = Plot[x, {x, -1, 1}, Frame -> True, FrameLabel -> {"x", "\!\(\*OverscriptBox[\(x\), \(_\)]\)"}] When I export it to PDF, ...
1
vote
1answer
44 views

BarLegend rasterized in EMF and EPS export

A while ago you guys gave me a splendid workaround to the rasterization bug in exported BarCharts. Now I noticed that the workaround is not working for BarLegends. My problem is, that ...
9
votes
2answers
500 views

Image of input and output cells is not exported correctly

Wolfram Blog uses PNG images to display input and output cells in a notebook. For example, the following is an image from Samuel Chen's post: I should be able to produce a similar image by ...
1
vote
1answer
61 views

PNG image is exported smaller size than imported

I upload a PNG file and then split it into its red, green and blue components. I then save these components. The original image is 1440 x 764 pixels, 2.21MB. But the 3 saved files are each 360x198 ...
-1
votes
1answer
45 views

How to encrypt an arbitrary file?

I'd like to use Mathematica to password protect a zip file I have, instead of using the terminal or buying an app like keka. You can use the terminal zip -e but not ...
1
vote
2answers
37 views

How to export many images within a For-loop [duplicate]

I'm trying to export a lot of files at one time with a For-loop. I'm using ToString so I can number the output files. It's not working. Does anyone know how to ...
2
votes
1answer
66 views

Export Multiple Arrays Into a Single Worksheet with Column Headers

I'm importing financial data into Mathematica, creating column headers for each array and exporting to Excel. The code below accomplishes most of this, but it creates a different worksheet for each ...
2
votes
1answer
57 views

Export a Pyramid to VRML format

How do you export a Pyramid to vrml format in Mathematica ? I have been trying to do this the following way ...
6
votes
1answer
363 views

Export to PDF on OS X, font missing on Windows

Here is another problem with Mathematica plots and PDF. I have Mathematica 9.0.1 on Mac OS X. I want to export my plots to PDF to include them in a LaTeX document. If I export the plot with the ...
4
votes
1answer
582 views

Mathematica EPS graphics and psfrag in $\LaTeX$

I used to to use MathPSFrag in Mathematica to export graphics to EPS for inclusion in $\LaTeX$ files. However, with recent versions of Mathematica this does not seem to work very well anymore, see ...
2
votes
1answer
112 views

Rasterized density plot with vector axes

I'm wondering if there is an easy way to get the plot below exported in a small pdf? The plot below is made in the following steps: step 1: Create a streamplot step 2: Create a densityplot, where ...