As of May 31, 2023, we have updated our Code of Conduct.
89 votes
Accepted

How can we make publication-quality PlotMarkers without version 10?

Based on Oleksandr's excellent design idea here is my re-implementation of his package which offers a much richer set of shapes. UPDATE from July 2022 A minor update: now the form ...
Alexey Popkov's user avatar
76 votes

Trying to visualize the Collatz conjecture

If you want to make several sequences of the Collatz function for turning it into a graph, you probably want to memorize, which parts you already calculated. What we try to do is to create a graph ...
halirutan's user avatar
  • 112k
70 votes

How to make this beautiful animation

Edit: Added the reversal and some refinements ...
Quantum_Oli's user avatar
  • 7,784
68 votes
Accepted

How to make this beautiful animation

I'd like to expand on Quantum_Oli's answer to give an intuitive explanation for what's happening, because there's a neat geometric interpretation. At one point in the animation it looks like there is ...
C. E.'s user avatar
  • 69.5k
68 votes

How do I draw a pair of buttocks?

Scientific progress! In v10.3 with all the goodies in AnatomyData we can now use the simple code: ...
Sjoerd C. de Vries's user avatar
63 votes
Accepted

Python-style plots in Mathematica

In this answer, I will concentrate on the colors only to create something like this Copying the colors from python is a very fast way to get similar results. Nevertheless, the best way to understand ...
halirutan's user avatar
  • 112k
61 votes

Is it possible to define a new PlotTheme?

Illuminated by @Mr.Wizard's answer, here I provide a complete example of a self-made plot theme, called "Academic". It can be used as a base theme. The axes ...
Everett You's user avatar
  • 2,227
60 votes
Accepted

How to Make a Sankey Diagram

Here's the start of a SankeyDiagram function: ...
Carl Woll's user avatar
  • 127k
46 votes
Accepted

Hightlight all the self-intersections of a Lissajous figure

I will start with the most general Lissajous figure, which has a parametric equation as follows: $$ x(t) = f_a(at+\phi_a) \\ y(t) = f_b(bt+\phi_b) \\ t \in [0,2\pi) $$ Where: $$ f_a, f_b \in \{\sin, \...
2012rcampion's user avatar
  • 7,782
45 votes

How can we make publication-quality PlotMarkers without version 10?

Fortunately, Wikipedia has the answer, as long as we are content to restrict ourselves to non-intersecting closed polygons. This will probably be an acceptable limitation, given that excessively ...
Oleksandr R.'s user avatar
  • 22.8k
44 votes

Drawing Clifford Attractors in Mathematica

Parameters: a = -1.24458; b = -1.25191; c = -1.815908; d = -1.90866; Compiled function used for iteration: ...
Szabolcs's user avatar
  • 231k
43 votes

Python-style plots in Mathematica

Styling closer to your example, using The Toad's colors: ...
Mr.Wizard's user avatar
  • 267k
41 votes
Accepted

Trying to visualize the Collatz conjecture

This is the Collatz function I know: ...
Sjoerd C. de Vries's user avatar
41 votes

Python-style plots in Mathematica

Using color functions efficiently in data visualizations is more of an art than a recipe, so don't worry if you're not "good" at it yet. It's only a matter of time :) Copying the color schemes from ...
rm -rf's user avatar
  • 87.9k
40 votes
Accepted

How to implement the sample-point process like the built-ins of Mathematica?

Plot uses two different algorithms depending on whether PerformanceGoal is set to Quality or ...
C. E.'s user avatar
  • 69.5k
39 votes
Accepted

Make a beautiful Moiré effect

I feel that once you start with Moire patterns, there's no ending. The way I would replicate these is by making a grid into a function (like @JasonB) but also parametrise the angle of rotation into it:...
gpap's user avatar
  • 9,616
38 votes
Accepted

How can I reproduce this mandala with Mathematica?

Update: We can get a shape similar (except for colors) to the one in OP using ScalingTransform as follows: ...
kglr's user avatar
  • 364k
38 votes
Accepted

How to draw an interactive, mouse clickable, 3D Bloch sphere?

Here is an attempt to draw a 3D Bloch sphere, on which we can select a point simply clicking on it with the mouse and obtain the corresponding qubit representation. In the code I made use of Szabolcs' ...
glS's user avatar
  • 7,513
38 votes
Accepted

Plot 3D model of DNA in Mathematica

The easiest way to do this is if you have a PDB file, then it's as easy as using Import. Here are a few examples from the RCSB's Protein Data Bank. To get the URLs,...
Jason B.'s user avatar
  • 66.4k
37 votes

How to implement the sample-point process like the built-ins of Mathematica?

Wanna listen to a story? :) It was around 2002 when I finally became fed up with ParametricPlot3D[] and its inability to adaptively plot space curves. Recall that ...
J. M.'s persistent exhaustion's user avatar
35 votes

Placing a ContourPlot under a Plot3D

Here's one using SliceContourPlot3D (introduced in 10.2) and Vitaliy's stylings. ...
Greg Hurst's user avatar
  • 34.7k
34 votes

Place a small gap between axes and plot?

This can be done more-or-less easily with a combination of options for AxesOrigin, PlotRange, and ...
Virgil's user avatar
  • 3,367
33 votes
Accepted

How can I plot this spirally surface?

A manual way of doing it is: ...
Thies Heidecke's user avatar
32 votes
Accepted

How to generate image like QR code with Mathematica

This version of generation code is originally posted at wolfram community. I guess a story-telling type post would attract more upvotes and probably give some insight about how to 'solve problems' ...
Wjx's user avatar
  • 9,373
32 votes
Accepted

Import and Plot Git Commit History

This package provides couple of functions for plotting commits data from GiHub: ...
Anton Antonov's user avatar
31 votes
Accepted

Visualize an irrational number

With a pie chart around it: ...
halmir's user avatar
  • 14.3k
30 votes
Accepted

How to plot data by counties?

Updated text I made a tutorial out of this answer and posted it on Wolfram Community. It's slightly different, and may be worth to check out. Data from Wolfram Knowledgebase The most ...
C. E.'s user avatar
  • 69.5k
30 votes

Zoom in on a 2D graph

This is a prototype, it can not handle Text Inset and some more complicated directives efficiently but I don't have time / ...
Kuba's user avatar
  • 135k
30 votes
Accepted

Zoom in on a 2D graph

You can do this using Show and PlotRange which can be used in combination with graphs. To determine the full ...
Sjoerd C. de Vries's user avatar
29 votes

Plot 3D model of DNA in Mathematica

This was supposed to be a comment to Jason's answer, but it got a bit long. But wouldn't it be cool if you could just input a DNA sequence and have a plot? ... take that little snippet and paste it ...
J. M.'s persistent exhaustion's user avatar

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