Questions tagged [style]

Questions about applying a consistent look or form to Mathematica output, including use of the built-in styling constructs (Style, PlotStyle, etc). For questions specific to styling in notebooks with stylesheet properties please use the [stylesheet] tag.

Filter by
Sorted by
Tagged with
7
votes
2answers
606 views

Shortest way to make a checkerboard pattern

I'm looking for the shortest (in terms of characters) code snippet to make an n-square checkerboard. Here's my first try (comes in at 72 characters): ...
1
vote
1answer
37 views

Add (rainbow) colors to Ruleplot[]

I'm using Ruleplot[] to plot the rules of my cellular automota. I'm using multiple 'colors' (= number of states $k$ ) and I want to color them a different color than the default grayscale. The ...
1
vote
2answers
29 views

Clear Style to standard output expressions in the same cell

I would like to reset an expression in a Standar Output inside a Cell. For example, ...
3
votes
1answer
42 views

How to use two separate colours for two lines in a single 'Plot' within the 'With' command?

'''With[{k = {1, 10}}, Plot[k*x^2, {x, 0, 1}]]''' I want to use two separate colours for two k values. How to do that? Thanks in advance.
4
votes
2answers
79 views

How to change vertex color and vertex size at the same time of Graph

How to change color and size at the same time of some vertices of a graph? I am trying to do it more than an hour but nothing seems to work. I can do it either for color or for size but not both at ...
1
vote
2answers
80 views

How to pass arguments and options of a function when using Map?

Suppose I have a list in which I need to map a function to a list. Also suppose that function takes several arguments and even more options (such as styling). How would I pass all arguments and ...
0
votes
1answer
42 views

How to combine FontWeight option with Text[]?

Does anyone know how to combine the FontWeight option with Text[] items in Mathematica? It works fine with Style[], according the documentation. However when I feed this to Text[] (to then feed into ...
4
votes
1answer
116 views

Error band in the legend

I want to plot multiple data sets having error bands with legends such that the style of error band is also reflected in the corresponding legend. So for e.g. let's say I have the following two data ...
8
votes
3answers
833 views

How can I replicate the pseudo-3D style of this excel plot?

I have the following code: ...
1
vote
2answers
50 views

ColorFunction or PlotStyle Based on List

I am plotting the values of a continuous, but complicated function Energy[x_] via ListLinePlot. Another function ...
1
vote
1answer
42 views

Rewrite ListPlot using Graphics while perserving point color?

I have a lot of data points, and I have noticed that plotting using Graphics is usually much quicker than plotting with ListPlot. The problem is I am trying to color the data points based off some ...
3
votes
1answer
46 views

Plots dashed when I don't specify them to be dashed?

I was plotting a function (F here) with selected values, and just wanted the plot to be solid lines with the selected colors specified with PlotStyle: ...
1
vote
1answer
55 views

Merging (Joining) Formatted Row Labels to an Existing Styled and Formatted Grid

From a previous question and with the help of kglr a grid containing a data matrix with column labels was properly formatted and created Controlling label alignment/spacing in large grids Having this ...
1
vote
1answer
27 views

PlotStyle in ParametricPlot3D getting applied to all curves

Consider ...
0
votes
2answers
42 views

How to align TableForm entries at the decimal point and give it two-digit right-side floating point precision for monetary amounts?

My question essentially asks everything but I shall rephrase it to make certain it is well understood. 1. How to print all entries in rows of a column so that they align perfectly at the decimal ...
0
votes
3answers
38 views

How to use “Style” properly with “ListPointPlot3D”?

Using MMA 12.0 on a Windows 10 machine. I am trying to plot a list of points in a 3D plot. Each point has a different weight which I want to show using different point sizes. The points are also in ...
2
votes
0answers
31 views

Text in Grid cells not aligning correctly and how to style them all with single rule

This is the entire module that contains all code to output with a Print[Grid[data, rules]] statement. I have all cells arranged in stacked rows in a convenient <...
1
vote
0answers
22 views

Style options to make initialization cells appear like regular cells?

I find the discontinuous grey rectangles around those cells to be distracting. Any way I can make them look like regular cells?
4
votes
2answers
71 views

How to style the frame of the a button?

For certain Appearance options of Button you can control the Background, but how does one ...
13
votes
1answer
196 views

Control grain size of stipple shading

Mathematica 12.1 introduced a number of amazing shaders such as StippleShading. Is there a way to control the grain size of ...
9
votes
0answers
180 views

The dark side of Mathematica

I know that there are (at least one: Where can I find a dark stylesheet for mathematica?) previous posts about how to change the appearance of Mathematica, but they haven't been much of a help for me. ...
6
votes
2answers
96 views

Alternate Background color by row in a Grid in the presence of SpanFromAbove

I have some rows I want to put into a Grid: ...
3
votes
4answers
223 views

How to remove style from a styled number?

For example, I have a number with style like so: Style[1, Red, 20] How do I remove its style, so it returns to its inner value 1...
0
votes
2answers
65 views

Making the solutions of a ParametricNDSolveValue show up as different colours?

I am having a bit of trouble when it comes to plotting the solution of a system of non-linear ODE's. I write ...
1
vote
0answers
31 views

Is it possible to define custom sound style (or instrument)?

For example, you can specify the style or instrument as "Violin" in a SoundNote like: SoundNote[0, 1, "Violin"] Here ...
3
votes
1answer
65 views

Automatically generating and labelling controls in Manipulate

Consider the following code ...
0
votes
0answers
24 views

Is it possible to have a gradient in the background colour of a TextGrid?

This question seems to imply that it is not possible. However, it is about six years old. I wonder if more recent versions of Mathematica make graded backgrounds ...
2
votes
1answer
56 views

Inactivate Controls within Manipulate

Given a certain Control object (checkbox, for example) within a Manipulate environment, my goal is to define another control ...
2
votes
2answers
88 views

Scaling and Stretching a Mesh

I have a Voronoi mesh, given by ...
2
votes
1answer
50 views

Stylesheet control of system panel font colors?

I'm trying to make a custom dark mode stylesheet, and I started with Kuba's great DarkPackage. The issue is how to deal with text in panels (you can barely see the white-on-white text, unless you ...
7
votes
1answer
156 views

Plotting: Change colour scheme and line thickness at the same time

Some stylistic attributes of plots are independent of colour, e.g. thickness, dashing, etc. I can make the lines thick in this plot without having to specify a separate style for each line: ...
0
votes
0answers
22 views

Are there potential concerns with leaving a plot style blank, when plotting multiple curves?

Suppose I had the following command Plot[{x,x^2,x^3},{x,0,5}] If I wanted to apply a plot style to x and ...
4
votes
2answers
119 views

VoronoiMesh as a Graph

I want to draw the following graph using VoronoiMesh. For example, since ...
2
votes
1answer
104 views

Typesetting LaTeX in a text cell

I recently started trying to use stylesheets and different cell types to organize and explain my logic. Often I try to type equations into my text cells to explain what I'm doing, but this can be ...
12
votes
2answers
601 views

A Smooth and Round Voronoi Mesh

I want the edges of a VoronoiMesh to be smooth and round. I have found the following code from this answer ...
1
vote
1answer
45 views

Combining Labled with LabelStyle

I try to add a Style to my Labled plot. However, when I combine Labled with Label Style, I do not succeed. ...
9
votes
1answer
196 views

How to share stylesheets (with a preview)?

I have never understood how to easily generate an image preview for a given stylesheet. I also am unclear on how to easily share one. So I'm looking for an implementation or good 3rd party solution ...
3
votes
2answers
185 views

Selecting Edges and Corners in a Mesh

Consider the following VoronoiMesh obtained after a few iterations of Lloyd's relaxation algorithm ...
11
votes
3answers
831 views

Creating a Hexagonal Lattice with VoronoiMesh

I want to create a hexagonal lattice using VoronoiMesh. One can achieve that with the following code, where L=5, ...
7
votes
1answer
122 views

Quick way to preview and tweak styles?

I find the old stylesheet UI clunky and hard to use: FrontEndExecute @ FrontEndToken @ "EditStyleDefinitions" There's also the clunky style previewer as well: ...
1
vote
1answer
82 views

Dynamic Delimiter in Manipulate

Consider the following ...
1
vote
1answer
85 views

Aligning Checkboxes in Manipulate

Consider the following code ...
6
votes
1answer
131 views

Grid Centring around Divider

Consider the following Grid ...
2
votes
1answer
78 views

Colouring cells in a Voronoi mesh [closed]

Consider the following code ...
3
votes
1answer
117 views

How to change the font in LineLegend?

Is it possible to change the font in LineLegend? In fact, I need a mathematical font (like Times) in this part.
4
votes
1answer
86 views

Is it possible to get current thickness for every Line, Polygon, Circle object in a plot?

When exporting Mathematica graphics to raster formats with high resolution the common problem is that thickness for such objects as Line, ...
2
votes
1answer
143 views

Grid with equation numbers

Is it possible to have a grid with DisplayFormulaNumbered in mathematica journal stylesheet so i would have something like this
0
votes
0answers
37 views

How to modify the horizontal ticks in a LogLinearPlot? [duplicate]

Using the following code, ...
2
votes
1answer
64 views

Is there a way to set the ItemNumbered to increment i instead of numbers?

I am trying to get a cell style like the following: i) ii) iii) instead of(if I can have both at the same time better): ...
7
votes
1answer
111 views

`PlotLegends` not showing correct colour

I want to make a Plot with a styled line, as follows: ...

1
2 3 4 5
7