Hot answers tagged

61 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 ...
user avatar
  • 111k
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 ...
user avatar
  • 87.1k
41 votes

Python-style plots in Mathematica

Styling closer to your example, using The Toad's colors: ...
user avatar
  • 265k
34 votes
Accepted

How to write Morse code into Plot Dashing?

First define the Morse code (from rosettacode.org with corrections by @evanb) ...
user avatar
  • 31k
29 votes
Accepted

Thickness of logarithmic tick marks

Reproduced in v.10.0.0 under Win7 x64. In versions 8.0.4 and 9.0.1 the behavior differs in details but the bug is also present: only major logarithmic frame ticks change their thickness, but not minor ...
user avatar
23 votes

How to make figures in a casual, old-fashioned style

If you want grungy diagrams, you could always pass your graphics through JPEG export at a high level of compression, then re-import: ...
user avatar
  • 20.5k
19 votes
Accepted

How to use an image as a plot background

One can use Prolog to create a background for a Plot. ...
user avatar
  • 27.1k
17 votes
Accepted

Creating a Hexagonal Lattice with VoronoiMesh

Here is what I was suggesting in comments: ...
user avatar
  • 61.6k
17 votes
Accepted

PlotStyle like ocean waves?

You can get a little bit of sparkling by using a high Specularity coefficient, but the result tends to look more like shiny plastic than water. ...
user avatar
  • 83.6k
16 votes
Accepted

How to make PlotMarkers constructed from Graphics track plot style?

Though I was expecting to need something fancy I stumbled upon a simple solution: ...
user avatar
  • 265k
15 votes
Accepted

What are the default Frame / Axes styles and how can I find them?

Hunting through the stylesheets is effective, but does not necessarily give you the current value being used if it has been modified. Instead, use ...
user avatar
  • 33.3k
15 votes
Accepted

Customize ColorData function

If you inspect the InputForm of the "ColorFunction" property for ...
user avatar
  • 350k
15 votes
Accepted

A Smooth and Round Voronoi Mesh

1 + 4 We can discretize the rounded Polygon objects and then add the negative of the mesh through Prolog. ...
user avatar
  • 33.2k
14 votes
Accepted

Mathematica 12.3.1 CapForm does not work with ContourStyle anymore?

Dashing was extended in 12.3. As such, you need to specify the cap type as part of the dashing spec. i.e., ...
user avatar
  • 2,751
14 votes
Accepted

What is a numeric value of PlotStyle?

The syntax PlotStyle -> n is an abbreviation for using the indexed color scheme: PlotStyle -> ColorData[Number]. There are ...
user avatar
  • 7,462
13 votes

Graph: Coloring parallel edges individually

Update 3: With the new-in-version-12.1 function EdgeTaggedGraph we can style and label edges individually in multi-graphs: ...
user avatar
  • 350k
13 votes
Accepted

How can I create a help button that looks more "professional"?

Why not just use the graphic in the question, or any other images that you like: Use ImageSize to control the final size of the button: An alternative, that I use ...
user avatar
13 votes

Creating a Hexagonal Lattice with VoronoiMesh

If you are not completely attached to Voronoi, you might consider tiling with hexagons and then perturbing their coordinates. GraphicsComplex makes it work. Define ...
user avatar
  • 14.9k
13 votes

PlotStyle like ocean waves?

Rotate it around and you'll see that M is "not there yet" as @J.M. notes. From just about any point of view, it cannot really model sunlight reflecting off the surface. (If M can, then I can'...
user avatar
  • 220k
12 votes

Set the style of a cell

I don't know if any of them can be callled documented but I know three ways to do this: mentioned above: FrontEndToken way: ...
user avatar
  • 133k
12 votes
Accepted

Using different style on segments of a plot

MeshShading ...
user avatar
  • 350k
12 votes
Accepted

Style in Graphics or Graphics3D?

In Graphics and Graphics3D Style behaves mostly as a grouping construct like ...
user avatar
  • 265k
12 votes

How to create parabolic mesh?

Unfortunately, I don't know how to completely fix that plotting artifact at "z" axis. ...
user avatar
  • 6,403
12 votes

How to create parabolic mesh?

Update: Better mesh grid This code, while using the parametrization in my original answer that removes the glitch at the z-axis, better reproduces the mesh in the OP's figure. One problem all the ...
user avatar
  • 220k
12 votes

How to share stylesheets (with a preview)?

Preview Notebooks / Extra Paclet Features I decided it was worth it to add some extra features to this thing as it's a good example of what paclets can do for you. First off, I added a little ...
user avatar
  • 45.6k
11 votes
Accepted

How to print $\odot$ without it being cropped? (\[CircleDot] symbol)

The circle is not cropped when used in a Subscript: Subscript["M", "⊙"] Thus, by using this answer you can easily do: <...
user avatar
  • 8,427
11 votes
Accepted

How to retrieve current FaceForm?

I believe you want "FrontFaceColor" which can be found as a specification in this list: ...
user avatar
  • 265k
11 votes
Accepted

Highlighting pattern strings in a large text

There is another way that is on my machine almost 500x faster then your solution. The idea is to look how Mathematica represents colored strings and use this directly. When we colorize an input ...
user avatar
  • 111k
11 votes

Guidelines for planning custom GUI in Mathematica

Things to keep in mind when developing complex GUI in Mathematica: Wolfram System general issues: Styles management/inheritance system (StyleSheets and friend) It is complicated, full of exceptions ...
11 votes

Replicating a PlotStyle from Trees, Maps, and Theorems

Try the following: (if you don't understand what an option does, leave a comment - but please look in the documentation center first) ...
user avatar
  • 25.3k

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