Questions relating to working with textual information: textual analysis, data mining, etc.
19
votes
3answers
579 views
13
votes
2answers
468 views
Computing the bounding boxes for Text objects
Regardless of AspectRatio, the Text boxes overlap.
...
23
votes
5answers
742 views
How can I wrap text around a circle?
How can I wrap text around a circle?
For example: the text in the sectors of this chord plot.
Perhaps one could use FilledCurve[] and then apply a ...
25
votes
3answers
449 views
Is there a convenient way to copy/paste text-interspersed SE code snippets into Mathematica?
Is there a way to copy and paste code snippets from SE to Mathematica if these snippets are interspersed with text?
Like e.g. in Morphing Graphics, color and location in both the question and answer, ...
17
votes
2answers
407 views
Movable text on a curve
Having an arbitrary curve defined as InterpolatingFunction, what is the best way to place a text on this curve? The text generally has two rows, for example: ...
9
votes
1answer
191 views
Dimensions of the results of Text[] within Graphics[]
Is there a way to get the dimensions that the results of a Text[] will occupy within a Graphics[]? Specifically, if I run ...
12
votes
3answers
443 views
How to determine the convex hull of some text?
How can I get the co-ordinates of the convex hull of a piece of Text?
3
votes
2answers
803 views
Importing .txt or .csv financial data
I am trying to import some financial data exported from Excel. You can find the relevant file here : Text File or CSV File
This is what the data looks like in Excel :
Using the following code to ...
9
votes
1answer
233 views
Poor anti-aliasing in Rotated text with ClearType on
There is a problem on my system that occurs when text is rotated 90 degrees as it is in frame labels. This only happens when ClearType is turned on, and only around 90 degrees of rotation.
I am ...
10
votes
2answers
492 views
How to dynamically name and date a file for export?
I have various functions that export Excel and text files, and need to have them named with a name based on the content of some variables in the function and the time and date. How can this be done ...
12
votes
2answers
649 views
How to import all files of a folder at once?
I know how to import one textfile by calling its name
filestring = Import["myfile.tex", "Text"];
Then "filestring" is a string with the myfile content.
How do ...
6
votes
2answers
284 views
How can I convert a formatted text cell to latex code?
I have a formatted text cell, I want to export it as latex. How can I do that?
Since copy as LaTeX doesn't work, I thought of pasting it into a string and exporting, but it's a no go:
...
9
votes
2answers
313 views
Keeping Text Size the Same Throughout Entire Notebook File
Is there a way in which when you choose to format the size of the font within your notebook, for a particular cell, when you go into another cell, the default size font (12pt) will not be ...
13
votes
2answers
310 views
Lexicographic ordering of strings in Mathematica
I recently realized that Mathematica seems incapable of comparing strings in the "normal" expected lexicographic order. Indeed, for some simulations, I need to process text directly, without fiddling ...
6
votes
4answers
2k views
subscripts in plot axis labels
Superscripts can be included in axis labels by the use of the caret symbol (e.g., Plot[x^2, {x, -1, 1}, AxesLabel -> {x, x^2}]).
How does one include subscripts ...
2
votes
2answers
149 views
3D scatter plot from a txt file
I have a txt file with space-delimited x, y, z coordinates of several points. The points are organized into groups of unequal size; the groups are delimited by skipping a line, like this:
...
2
votes
4answers
129 views
How to write a function to remove comments from a .m source file preserving formatting such as line wrapping reasonably?
How to write a function to remove comments from a .m source file preserving formatting such as line wrapping reasonably?
This means if I have
...
-2
votes
1answer
73 views
Mathematica output in ASCII or larger text size for the output?
I am trying to read the output of this code that has crosses, circles and spaces. For some reason, the output is in very-very small alphabets so I would like to get it in ASCII and/or in larger ...
6
votes
2answers
267 views
Generate Random Text within a Rectangle
I would like to generate images such as the four below.
That is: some text of different length fit within a Rectangle[] using ...


