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
0
votes
0answers
23 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 ...
1
vote
1answer
37 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
72 views

Scaling and Stretching a Mesh

I have a Voronoi mesh, given by ...
2
votes
1answer
24 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 ...
6
votes
1answer
77 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
21 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
96 views

VoronoiMesh as a Graph

I want to draw the following graph using VoronoiMesh. For example, since ...
1
vote
1answer
49 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 ...
11
votes
2answers
517 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
33 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
176 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
159 views

Selecting Edges and Corners in a Mesh

Consider the following VoronoiMesh obtained after a few iterations of Lloyd's relaxation algorithm ...
10
votes
3answers
713 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
115 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
72 views

Dynamic Delimiter in Manipulate

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

Aligning Checkboxes in Manipulate

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

Grid Centring around Divider

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

Colouring cells in a Voronoi mesh [closed]

Consider the following code ...
3
votes
1answer
71 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
80 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
136 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
35 views

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

Using the following code, ...
2
votes
1answer
52 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
87 views

`PlotLegends` not showing correct colour

I want to make a Plot with a styled line, as follows: ...
7
votes
0answers
70 views

How to distribute styles with packages?

I want to define some named styles with StyleData and StyleDefinitions that are either entirely new or inherit from default ...
5
votes
2answers
62 views

Color Specified Edges and Vertices

Is there a more efficient way to code the specifying of selected vertices and edges than listing them separately as shown below? ...
1
vote
3answers
45 views

Highlight largest value in each column of `Table // TableForm`

I am exploring colossally abundant numbers; in particular the set of specific 'critical epsilon values'. I table the function DivisorSigma[1, n]/n^(1 + \[Epsilon]) ...
2
votes
1answer
42 views

Repeat PlotStyle for different functions [closed]

I am trying to plot a helicoid using Plot3D. I would like all the functions that make it up to appear the same. I am curious if there is a way I can do that ...
8
votes
1answer
91 views

How to fine tune the style of IntervalMarkers -> “Bands”?

In Mathematica 12 I can use ListPlot to visualize uncertainty of tabulated data as bands. For example: ...
5
votes
1answer
147 views

Customize ColorData function

I am trying to customize the color data ColorData["AvocadoColors"] I want to make color data function of the gradient starting from the green to the white ...
10
votes
1answer
197 views

How to emulate LaTeX Theorem environment with a Mathematica Style?

( This has probably been asked before, but I found no Q/A's ) ( Update: Changed Title 28/6 ) Mathematica has the Style 'DisplayFormulaNumbered', I want to find / create something like 'TextNumbered' (...
0
votes
1answer
57 views

Specify position of button

This might go against the spirit of Mathematica, but I would like to create the button, but I do not want that button to be grouped with the code that generated it. In fact, the code that generates it ...
2
votes
0answers
37 views

How to undo “do this for all notebooks” when offered to revert or keep updated styling of older styled notebooks?

Check out this old question: How to stop V10 asking to continue with updated styling each time I open a new notebook Cool, right? But what if you checked "do this for all notebooks", naively ...
2
votes
1answer
75 views

How to Print[“x=”,x] with Style? [closed]

How to Print a text and a value with the same Style?, for example {Bold, Blue, 22} a=4 Style["The number is ", a , Blue, 22] ...
2
votes
3answers
235 views

How do I display multiple objects on one output line?

I am using WriteString to avoid automatic line change. But it seems like the it does not work with Style, like the following <...
0
votes
1answer
56 views

Automatic indentation of text and equations depending on Style

I have a rule when writing text and equations. Starting from the Section environment, each text/equation that sits inside Section...
0
votes
0answers
32 views

How to graph a text as a function of some arbitrary parameters?

I'm trying to graph a text in a couple of plots I have. I want to be able to edit the text depending on the values I choose (rho0, zp, zm, temp, ion, and perm) and show them at some point in my plot (...
5
votes
1answer
106 views

What happened to the Style 'Subchapter' in Mathematica 12.0?

The Style 'Subchapter' is no longer available in the Style Menu in Mathematica 12.0. Is it somewhere hidden perhaps? I want to continue styling notebooks as I did in Mma 11.3 and before. Any ...
0
votes
1answer
86 views

Plot3D and PlotStyle in v12

I'm plotting a surface with Plot3D, and I'm using PlotStyle -> Opacity[0.8] to get a little transparency. Unfortunately, this option seems to be getting pushed ...
4
votes
2answers
143 views

How do I add into a text cell a reference to a numbered function?

I have a document with lots of numbered equations in their own cells (which I numbered through Format->Style->DisplayFormulaNumbered). I also have lots of ...
1
vote
1answer
76 views

Coloring edges by weight and changing color but keeping shape for CommunityGraphPlot using PlotTheme->“Marketing”

(Apologies, but I cannot share the data that I am using for these graphs.) I am finding communities in my data set by using CommunityGraphPlot, and the results looks pretty good: ...
1
vote
1answer
69 views

ErrorListPlot with a different color for each element of the list

I would like to plot a list with ErrorListPlot but each dot with a different color like the example in the ListPlot's documentation : ...
1
vote
2answers
185 views

Why do I get different symbols (a) with the same FontFace (Cambria Math)?

When I create an equation in MS Office, it uses Cambria Math, and I get the following when I use variable 'a'. When I try to use Mathematica to create graphics for my files, I can try to use ...
5
votes
1answer
120 views

All the group formatting available in Mathematica

I was wondering how many pre-defined group formatting style there is in Mathematica. From Format -> Style, one see that we can go from ...
3
votes
2answers
207 views

Distance between axes and tick labels

A similar question has been axed before in the context of a Framed plot: see here. My plot is unframed so I wasn't able to apply the answer to the other question. I create a histogram with the code ...
3
votes
2answers
145 views

Print integer number fraction as string of numerator and denominator

I want to convert an integer number fraction as text with a certain font, size and color: Example: ...
1
vote
0answers
35 views

Generic symbols vs Generic functions arguments [closed]

I've got a lot recursion relation that takes multiple hours at a time to run. I'm looking for some subtle reasons why it takes so long, and hoping to be able to reduce the time it takes for the more ...
2
votes
2answers
97 views

Grouping of BarChart and BarChart labels

Thanks to m_goldberg remarks here, the following BarChart was obtained: ...
2
votes
1answer
81 views

Correct my use of BarChart labels

I need to make a good bar chart based on the table below (the number of nodes with its probability of falling correspond to each OF): Thanks to kglr I got the necessary BarChart: ...
3
votes
1answer
225 views

Limited line style for differentiating curves in the plot

Question 1 I have a plot which consists of six curves, and I wanted to differentiate these line without using any color. I the only option that I left with is to use different line style. After ...

1 2 3 4 5 6