5.23 Tuesday, July 26, 2016

================================== 
Top new questions this week: 
==================================

[Generate a certain colorful triangle] http://mathematica.stackexchange.com/questions/121353/generate-a-certain-colorful-triangle

I want to get a colorful triangle like this:

I hope to get a triangle with any number of layers. This is my current method. Actually, I’m not very content with these graph theory functions, since ...

- asked by yode (13 votes), answered by Mr.Wizard (7 votes)

—————————-

[Bad interaction between Join and ListPlot (or Plot)] http://mathematica.stackexchange.com/questions/121289/bad-interaction-between-join-and-listplot-or-plot

When you write this code:

tab = {{1, 1}}; tab = Join[tab, {{2,2}}]; 
 
 
you expect to get the following table: 
 
{{1, 1}, {2, 2}} 
 
 
but, if you write the following code instead: 
 
tab = {{1, 1}}; tab =  ...

- asked by Francisco (11 votes), answered by C. E. (8 votes)

—————————-

[Handwriting recognition with Mathematica] http://mathematica.stackexchange.com/questions/121051/handwriting-recognition-with-mathematica

I am trying to teach Mathematica to read my handwriting. Since I don’t want to ruin my reputation by showing my own handwriting, I am going to use a font called blackjack.

Lets say this is a ...

- asked by Sumit (11 votes)

—————————-

[Can one effectively edit a Front End Resource that is already loaded?] http://mathematica.stackexchange.com/questions/121059/can-one-effectively-edit-a-front-end-resource-that-is-already-loaded

A number of special definitions are loaded from .tr files on Front End initialization and are accessible via FrontEndResource. These are used among other things for various menus and toolsbars, e.g.:

- asked by Mr.Wizard (11 votes)

—————————- [Bug with Compile and Log2?] http://mathematica.stackexchange.com/questions/121336/bug-with-compile-and-log2

It seems that Log2 in Compile gives numerical errors (CompiledFunction::cfn) if the input is not a power of 2.

For instance:

test1 = Compile[{{in, _Integer}}, Log2[in]]; 
test1[3]

gives an error ...

- asked by JHM (10 votes), answered by Michael E2 (4 votes)

—————————-

[What is the effect of giving ColorFunctionScaling a numerical argument?] http://mathematica.stackexchange.com/questions/121231/what-is-the-effect-of-giving-colorfunctionscaling-a-numerical-argument

(by making a mistake) I realised that ColorFunctionScaling can take a list of numerical arguments rather than just booleans. The following is true for ContourPlot and DensityPlot but not Plot3D and ...

- asked by gpap (10 votes), answered by Mr.Wizard (4 votes)

—————————-

[Reproducing the xkcd "Self-Description" comic] http://mathematica.stackexchange.com/questions/121160/reproducing-the-xkcd-self-description-comic

Trying to brush up on my programming, I wanted to see if I can reproduce at least the first two panels of the following comic in Mathematica:

I have some code for trying to reproduce the first ...

- asked by Mayumi It (10 votes), answered by Alexey Popkov (7 votes)

================================== Greatest hits from previous weeks: ==================================

[Exporting graphics to PDF - huge file] http://mathematica.stackexchange.com/questions/1542/exporting-graphics-to-pdf-huge-file

I want to draw some basic surfaces, export them to PDF and include them in a LaTeX file. I create a simple 3D graphics object, for instance with

 ParametricPlot3D[{r Cos[\[Theta]], r Sin[\[Theta]],  ...

- asked by Matthew Leingang (84 votes), answered by Heike (71 votes)

—————————-

[Calculate the 2D Fourier transform of an Image] http://mathematica.stackexchange.com/questions/29203/calculate-the-2d-fourier-transform-of-an-image

I am new to Mathematica, and using version 8.0.

I would like to calculate the 2D Fourier Transform of an Image with Mathematica and plot the magnitude and phase spectrum, as well as reconstruct the ...

- asked by user8727 (2 votes), answered by Nasser (22 votes)

================================== Can you answer these? ==================================

[single slit diffraction numerical simulation] http://mathematica.stackexchange.com/questions/121474/single-slit-diffraction-numerical-simulation

I’m trying to simulate the Fraunhoffer diffraction at slits(single,double,triple) with Mathematica.

In the picture, the red one is analytical result and the green one is numerical result.

The ...

- asked by Taeshin Kim (5 votes)

—————————-

[How does the Contours->f_1, g1, f_2, g_2,... setting work?] http://mathematica.stackexchange.com/questions/121205/how-does-the-contours%e2%86%92f-1-g1-f-2-g-2-setting-work

I want to plot some wavefronts in Mathematica, and I’m having some trouble reining in one of the options for my ContourPlot3D.

More specifically, the documentation for ContourPlot3D says that the ...

- asked by Emilio Pisanty (5 votes)

—————————-

[Is every menu command equivalent to a command that can be executed within a notebook?] http://mathematica.stackexchange.com/questions/121453/is-every-menu-command-equivalent-to-a-command-that-can-be-executed-within-a-note

If so, is there a directory which gives the in-notebook command associated with each menu command ?

In particular, I would like to know how to replicate the 
menu command Evaluation -> Quit Kernel ->  ...

- asked by Simon (3 votes)